public abstract class AbstractContainerAdapterFactory
extends java.lang.Object
implements org.eclipse.core.runtime.IAdapterFactory
IAdapterFactory
interface. Subclasses may be created as appropriate.Constructor and Description |
---|
AbstractContainerAdapterFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAdapter(java.lang.Object adaptableObject,
java.lang.Class adapterType) |
abstract java.lang.Class[] |
getAdapterList() |
protected abstract java.lang.Object |
getContainerAdapter(IContainer container,
java.lang.Class adapterType)
Method called by implementation of
getAdapter(Object, Class) if the
adaptableObject is an instance of IContainer . |
public java.lang.Object getAdapter(java.lang.Object adaptableObject, java.lang.Class adapterType)
getAdapter
in interface org.eclipse.core.runtime.IAdapterFactory
protected abstract java.lang.Object getContainerAdapter(IContainer container, java.lang.Class adapterType)
getAdapter(Object, Class)
if the
adaptableObject is an instance of IContainer
. Subclasses should implement to
return the proper container adapter object based upon the given adapterType.container
- the IContainer adaptable object provided to the adapter. Will not be null
.adapterType
- the type (interface) of the adapter on the given container. Will not be null
null
.public abstract java.lang.Class[] getAdapterList()
getAdapterList
in interface org.eclipse.core.runtime.IAdapterFactory