Class AbstractContainerAdapterFactory

    • Constructor Detail

      • AbstractContainerAdapterFactory

        public AbstractContainerAdapterFactory()
    • Method Detail

      • getAdapter

        public <T> T getAdapter​(Object adaptableObject,
                                Class<T> adapterType)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdapterFactory
      • getContainerAdapter

        protected abstract Object getContainerAdapter​(IContainer container,
                                                      Class adapterType)
        Method called by implementation of getAdapter(Object, Class) if the adaptableObject is an instance of IContainer. Subclasses should implement to return the proper container adapter object based upon the given adapterType.
        container - the IContainer adaptable object provided to the adapter. Will not be null.
        adapterType - the type (interface) of the adapter on the given container. Will not be null
        Object the container adapter instance. May be null.
      • getAdapterList

        public abstract Class<?>[] getAdapterList()
        Specified by:
        getAdapterList in interface org.eclipse.core.runtime.IAdapterFactory