public class EObjModelHandler extends ModelHandlerBase implements IAdapterFactory
| Constructor and Description |
|---|
EObjModelHandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAdapter(Object adaptableObject,
Class 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) |
Object |
getProperty(Object element,
String id) |
String[] |
getPropIds(Object element) |
void |
setProperty(Object element,
String id,
Object value) |
public Object getAdapter(Object adaptableObject, Class adapterType)
IAdapterFactorynull if
no such object can be found.getAdapter in interface IAdapterFactoryadaptableObject - the adaptable object being queried
(usually an instance of IAdaptable)adapterType - the type of adapter to look upnull if this adapter factory
does not have an adapter of the given type for the
given objectpublic Class[] getAdapterList()
IAdapterFactory
This method is generally used by an adapter manager
to discover which adapter types are supported, in advance
of dispatching any actual getAdapter requests.
getAdapterList in interface IAdapterFactorypublic Object[] getChildren(Object element, String id)
getChildren in class ModelHandlerBasepublic Object getProperty(Object element, String id)
getProperty in class ModelHandlerBasepublic String[] getPropIds(Object element)
getPropIds in class ModelHandlerBasepublic void setProperty(Object element, String id, Object value)
setProperty in class ModelHandlerBase
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.