org.eclipse.xtext.xtend2.ui.launching
Class JavaElementDelegateAdapterFactory

java.lang.Object
  extended by org.eclipse.xtext.xtend2.ui.launching.JavaElementDelegateAdapterFactory
All Implemented Interfaces:
org.eclipse.core.runtime.IAdapterFactory

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

Author:
Sven Efftinge - Initial contribution and API, Sebastian Zarnekow - Use intermediate delegate to not interfere with JDTs adapters

Constructor Summary
JavaElementDelegateAdapterFactory()
           
 
Method Summary
 java.lang.Object getAdapter(java.lang.Object adaptableObject, java.lang.Class adapterType)
          Returns an object which is an instance of the given class associated with the given object.
 java.lang.Class[] getAdapterList()
          Returns the collection of adapter types handled by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaElementDelegateAdapterFactory

public JavaElementDelegateAdapterFactory()
Method Detail

getAdapter

public java.lang.Object getAdapter(java.lang.Object adaptableObject,
                                   java.lang.Class adapterType)
Description copied from interface: org.eclipse.core.runtime.IAdapterFactory
Returns an object which is an instance of the given class associated with the given object. Returns null if no such object can be found.

Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdapterFactory
Parameters:
adaptableObject - the adaptable object being queried (usually an instance of IAdaptable)
adapterType - the type of adapter to look up
Returns:
a object castable to the given adapter type, or null if this adapter factory does not have an adapter of the given type for the given object

getAdapterList

public java.lang.Class[] getAdapterList()
Description copied from interface: org.eclipse.core.runtime.IAdapterFactory
Returns the collection of adapter types handled by this factory.

This method is generally used by an adapter manager to discover which adapter types are supported, in advance of dispatching any actual getAdapter requests.

Specified by:
getAdapterList in interface org.eclipse.core.runtime.IAdapterFactory
Returns:
the collection of adapter types