Class ServerApplicationUiAdapterFactory

java.lang.Object
com.e1c.g5.dt.internal.applications.wst.ui.ServerApplicationUiAdapterFactory
All Implemented Interfaces:
org.eclipse.core.runtime.IAdapterFactory

public class ServerApplicationUiAdapterFactory extends Object implements org.eclipse.core.runtime.IAdapterFactory
Supplies UI adapters for server applications.

Supports the following:

  • IProject to IProjectFilter conversion - it does not really matter which project is adapted: the result is always the same and just allows to obtain the same filter instance that tests for the project to be the "Servers" project hosting instances of standalone servers. This is just a tricky way to obtain ServerProjectFilter. This is usefull for main navigator pane.
  • IServerApplication and IServerArtifact to IWorkbenchAdapter conversion - supplied workbench adapter is capable of providing UI content for instances of both interfaces. This is essential to display standalone server application and standalone server itself (correspondinly) in Applications view. See ServerApplicationWorkbenchAdapter.
  • Constructor Details

    • ServerApplicationUiAdapterFactory

      public ServerApplicationUiAdapterFactory()
  • Method Details

    • getAdapter

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

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