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)
IAdapterFactory
null
if
no such object can be found.getAdapter
in interface IAdapterFactory
adaptableObject
- 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 IAdapterFactory
public Object[] getChildren(Object element, String id)
getChildren
in class ModelHandlerBase
public Object getProperty(Object element, String id)
getProperty
in class ModelHandlerBase
public String[] getPropIds(Object element)
getPropIds
in class ModelHandlerBase
public 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.