public class DatashareContainerAdapterFactory extends AbstractSharedObjectContainerAdapterFactory
ADD_ADAPTER_ERROR_CODE, ADD_ADAPTER_ERROR_MESSAGE
Constructor and Description |
---|
DatashareContainerAdapterFactory() |
Modifier and Type | Method and Description |
---|---|
protected ISharedObject |
createAdapter(ISharedObjectContainer container,
Class adapterType,
ID adapterID)
Create an adapter instance that implements
ISharedObject and
adapterType. |
Class[] |
getAdapterList() |
createAdapterID, createAdapterProperties, getContainerAdapter, getSharedObjectAdapter
getAdapter
protected ISharedObject createAdapter(ISharedObjectContainer container, Class adapterType, ID adapterID)
AbstractSharedObjectContainerAdapterFactory
ISharedObject
and
adapterType. The resulting instance must implement both
ISharedObject
and adapterTypecreateAdapter
in class AbstractSharedObjectContainerAdapterFactory
container
- the container that will contain the new adapter instanceadapterType
- the adapter type. The returned value must implement this
interfaceadapterID
- the ID to use for the new adapterAbstractSharedObjectContainerAdapterFactory.getSharedObjectAdapter(ISharedObjectContainer, Class)
will also return nullpublic Class[] getAdapterList()
getAdapterList
in interface org.eclipse.core.runtime.IAdapterFactory
getAdapterList
in class AbstractSharedObjectContainerAdapterFactory
Copyright © 2017 Eclipse Foundation. All rights reserved.