java.lang.Objectcom.ibm.jdg2e.simplemodel.adapters.LocationAdapterFactory
Returns ILocation adapters. Support for IWorkbenchAdapter
and IPropertySource is provided. This code is referenced by the
org.eclipse.core.runtime.adapters extension.
| Field Summary | |
|---|---|
(package private) static java.lang.Class[] |
ADAPTABLE_LIST
Types that this adapter factory can support: IPropertySource and IWorkbenchAdapter |
| Constructor Summary | |
|---|---|
LocationAdapterFactory()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getAdapter(java.lang.Object adaptableObject,
java.lang.Class adapterType)
Return requested adapter for ILocation. |
java.lang.Class[] |
getAdapterList()
Identifies the types that this adapter factory can support. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static java.lang.Class[] ADAPTABLE_LIST
IPropertySource and IWorkbenchAdapter
| Constructor Detail |
public LocationAdapterFactory()
| Method Detail |
public java.lang.Object getAdapter(java.lang.Object adaptableObject,
java.lang.Class adapterType)
ILocation.
Implementing IWorkbenchAdapter allows the getLabel() method to be used for the properties dialog title.
Returning an implementation of IPropertySource allows the selected Location to share data in the Property View.
getAdapter in interface org.eclipse.core.runtime.IAdapterFactoryIAdapterFactory.getAdapter(java.lang.Object, java.lang.Class)public java.lang.Class[] getAdapterList()
getAdapterList in interface org.eclipse.core.runtime.IAdapterFactoryIAdapterFactory.getAdapterList()