Class ServerApplicationWorkbenchAdapter

java.lang.Object
org.eclipse.ui.model.WorkbenchAdapter
com.e1c.g5.dt.internal.applications.wst.ui.ServerApplicationWorkbenchAdapter
All Implemented Interfaces:
org.eclipse.ui.model.IWorkbenchAdapter, org.eclipse.ui.model.IWorkbenchAdapter2, org.eclipse.ui.model.IWorkbenchAdapter3

public class ServerApplicationWorkbenchAdapter extends org.eclipse.ui.model.WorkbenchAdapter
Provides UI representation for server applications.

This is supposed to be used with ApplicationsLabelProvider that is relying on IWorkbenchAdapters to provide an actual implementation for specific application types.

The implementation supports the following items:

Label and icon are determined the following way:
  • Application's and artifact's names are used for the label.
  • For application, module's type is used as icon identifier.
  • For artifact, server's type is used as icon identifier.
For more information about icons handling see ImageResource.
  • Constructor Details

    • ServerApplicationWorkbenchAdapter

      public ServerApplicationWorkbenchAdapter()
  • Method Details

    • getLabel

      public String getLabel(Object object)
      Specified by:
      getLabel in interface org.eclipse.ui.model.IWorkbenchAdapter
      Overrides:
      getLabel in class org.eclipse.ui.model.WorkbenchAdapter
    • getImageDescriptor

      public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(Object object)
      Specified by:
      getImageDescriptor in interface org.eclipse.ui.model.IWorkbenchAdapter
      Overrides:
      getImageDescriptor in class org.eclipse.ui.model.WorkbenchAdapter