Class EObjModelHandler
- java.lang.Object
-
- org.eclipse.e4.ui.workbench.modeling.ModelHandlerBase
-
- org.eclipse.e4.ui.workbench.modeling.EObjModelHandler
-
- All Implemented Interfaces:
IAdapterFactory
public class EObjModelHandler extends ModelHandlerBase implements 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
Constructors Constructor Description EObjModelHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetAdapter(Object adaptableObject, Class<T> adapterType)Returns an object which is an instance of the given class associated with the given object.Class<?>[]getAdapterList()Returns the collection of adapter types handled by this factory.Object[]getChildren(Object element, String id)ObjectgetProperty(Object element, String id)String[]getPropIds(Object element)voidsetProperty(Object element, String id, Object value)
-
-
-
Method Detail
-
getAdapter
public <T> T getAdapter(Object adaptableObject, Class<T> adapterType)
Description copied from interface:IAdapterFactoryReturns an object which is an instance of the given class associated with the given object. Returnsnullif no such object can be found.- Specified by:
getAdapterin 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
nullif this adapter factory does not have an adapter of the given type for the given object
-
getAdapterList
public Class<?>[] getAdapterList()
Description copied from interface:IAdapterFactoryReturns 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
getAdapterrequests.- Specified by:
getAdapterListin interfaceIAdapterFactory- Returns:
- the collection of adapter types
-
getChildren
public Object[] getChildren(Object element, String id)
- Overrides:
getChildrenin classModelHandlerBase
-
getProperty
public Object getProperty(Object element, String id)
- Overrides:
getPropertyin classModelHandlerBase
-
getPropIds
public String[] getPropIds(Object element)
- Overrides:
getPropIdsin classModelHandlerBase
-
setProperty
public void setProperty(Object element, String id, Object value)
- Overrides:
setPropertyin classModelHandlerBase
-
-