Class ECPProjectAdapterFactory

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdapterFactory

    public class ECPProjectAdapterFactory
    extends java.lang.Object
    implements org.eclipse.core.runtime.IAdapterFactory
    Author:
    Eike Stepper
    • Field Summary

      • Fields inherited from interface org.eclipse.core.runtime.IAdapterFactory

        SERVICE_PROPERTY_ADAPTABLE_CLASS, SERVICE_PROPERTY_ADAPTER_NAMES
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T adapt​(java.lang.Object adaptable, java.lang.Class<T> adapterType)
      Adapt the given adaptable to the given type.
      java.lang.Object getAdapter​(java.lang.Object adaptable, java.lang.Class adapterType)
      java.lang.Class[] getAdapterList()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ECPProjectAdapterFactory

        public ECPProjectAdapterFactory()
    • Method Detail

      • getAdapterList

        public java.lang.Class[] getAdapterList()
        Specified by:
        getAdapterList in interface org.eclipse.core.runtime.IAdapterFactory
        See Also:
        IAdapterFactory.getAdapterList()
      • getAdapter

        public java.lang.Object getAdapter​(java.lang.Object adaptable,
                                           java.lang.Class adapterType)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdapterFactory
        See Also:
        IAdapterFactory.getAdapter(java.lang.Object, java.lang.Class)
      • adapt

        public static <T> T adapt​(java.lang.Object adaptable,
                                  java.lang.Class<T> adapterType)
        Adapt the given adaptable to the given type.
        Type Parameters:
        T - the type of the adapter
        Parameters:
        adaptable - an adaptable
        adapterType - the target type
        Returns:
        an object of type if supported or null