Class CaptureAdapterFactory

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

    public class CaptureAdapterFactory
    extends java.lang.Object
    implements org.eclipse.core.runtime.IAdapterFactory
    Factory for Designer Props for EE/EEM files.
    Author:
    Christopher Mindus
    • 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 TypeMethodDescription
      <T> TgetAdapter​(java.lang.Object adaptableObject, java.lang.Class<T> 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.
      static voidinitialize()
      Initializes the adapter factory.
      • Methods inherited from class java.lang.Object

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

      • initialize

        public static final void initialize()
        Initializes the adapter factory.
      • getAdapterList

        public java.lang.Class<?>[] getAdapterList()
        Returns the collection of adapter types handled by this factory.
        Specified by:
        getAdapterList in interface org.eclipse.core.runtime.IAdapterFactory
      • getAdapter

        public <T> T getAdapter​(java.lang.Object adaptableObject,
                                java.lang.Class<T> adapterType)
        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.