org.eclipse.emf.ecp.cdo.internal.core
Class ECPProjectAdapterFactory
java.lang.Object
org.eclipse.emf.ecp.cdo.internal.core.ECPProjectAdapterFactory
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdapterFactory
public class ECPProjectAdapterFactory
- extends Object
- implements org.eclipse.core.runtime.IAdapterFactory
- Author:
- Eike Stepper
ECPProjectAdapterFactory
public ECPProjectAdapterFactory()
getAdapterList
public Class[] getAdapterList()
-
- Specified by:
getAdapterList
in interface org.eclipse.core.runtime.IAdapterFactory
- See Also:
IAdapterFactory.getAdapterList()
getAdapter
public Object getAdapter(Object adaptable,
Class adapterType)
-
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdapterFactory
- See Also:
IAdapterFactory.getAdapter(java.lang.Object, java.lang.Class)
adapt
public static <T> T adapt(Object adaptable,
Class<T> adapterType)
- Adapt the given adaptable to the given type.
- Type Parameters:
T
- the type of the adapter- Parameters:
adaptable
- an adaptableadapterType
- the target type
- Returns:
- an object of type if supported or null
Copyright © 2014. All Rights Reserved.