com.ibm.jdg2e.simplemodel.adapters
Class LocationAdapterFactory

java.lang.Object
  extended bycom.ibm.jdg2e.simplemodel.adapters.LocationAdapterFactory
All Implemented Interfaces:
org.eclipse.core.runtime.IAdapterFactory

public class LocationAdapterFactory
extends java.lang.Object
implements org.eclipse.core.runtime.IAdapterFactory

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

ADAPTABLE_LIST

static java.lang.Class[] ADAPTABLE_LIST
Types that this adapter factory can support: IPropertySource and IWorkbenchAdapter

Constructor Detail

LocationAdapterFactory

public LocationAdapterFactory()
Method Detail

getAdapter

public java.lang.Object getAdapter(java.lang.Object adaptableObject,
                                   java.lang.Class adapterType)
Return requested adapter for 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.

Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdapterFactory
See Also:
IAdapterFactory.getAdapter(java.lang.Object, java.lang.Class)

getAdapterList

public java.lang.Class[] getAdapterList()
Identifies the types that this adapter factory can support.

Specified by:
getAdapterList in interface org.eclipse.core.runtime.IAdapterFactory
See Also:
IAdapterFactory.getAdapterList()