Class EObjModelHandler
java.lang.Object
org.eclipse.e4.ui.workbench.modeling.ModelHandlerBase
org.eclipse.e4.ui.workbench.modeling.EObjModelHandler
- All Implemented Interfaces:
IAdapterFactory
- Since:
- 1.0
- Restriction:
- This class is not intended to be referenced by clients.
-
Field Summary
Fields inherited from interface org.eclipse.core.runtime.IAdapterFactory
SERVICE_PROPERTY_ADAPTABLE_CLASS, SERVICE_PROPERTY_ADAPTER_NAMES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
getAdapter
(Object adaptableObject, Class<T> adapterType) Returns an object which is an instance of the given class associated with the given object.Class<?>[]
Returns the collection of adapter types handled by this factory.Object[]
getChildren
(Object element, String id) getProperty
(Object element, String id) String[]
getPropIds
(Object element) void
setProperty
(Object element, String id, Object value)
-
Constructor Details
-
EObjModelHandler
public EObjModelHandler()
-
-
Method Details
-
getAdapter
Description copied from interface:IAdapterFactory
Returns an object which is an instance of the given class associated with the given object. Returnsnull
if no such object can be found.- Specified by:
getAdapter
in interfaceIAdapterFactory
- Parameters:
adaptableObject
- the adaptable object being queried (usually an instance ofIAdaptable
)adapterType
- the type of adapter to look up- Returns:
- a object of the given adapter type, or
null
if this adapter factory does not have an adapter of the given type for the given object
-
getAdapterList
Description copied from interface:IAdapterFactory
Returns the collection of adapter types handled by this factory.This method is generally used by an adapter manager to discover which adapter types are supported, in advance of dispatching any actual
getAdapter
requests.The default implementation collects the required classes from the
AdapterTypes
annotation, if that is not used implementors must override this method.- Specified by:
getAdapterList
in interfaceIAdapterFactory
- Returns:
- the collection of adapter types
-
getChildren
- Overrides:
getChildren
in classModelHandlerBase
-
getProperty
- Overrides:
getProperty
in classModelHandlerBase
-
getPropIds
- Overrides:
getPropIds
in classModelHandlerBase
-
setProperty
- Overrides:
setProperty
in classModelHandlerBase
-