org.jlense.uiworks.perspectives Extension Point

Identifier: org.jlense.uiworks.perspectives

Description: This extension point is used to add perspective factories to the workbench. A perspective factory is used to define the initial layout and visible action sets for a perspective. The user can select a perspective by invoking the "Open" submenu of the "Perspective" menu.

Configuration Markup:

   <!ELEMENT perspective (description?)>
   <!ATTLIST perspective
      id     CDATA #REQUIRED
      name   CDATA #REQUIRED
      class  CDATA #REQUIRED
      icon   CDATA #IMPLIED
    <!ELEMENT description (#PCDATA)>

  • id - a unique name that will be used to identify this perspective.
  • name - a translatable name that will be used in the workbench window menu bar to represent this perspective.
  • class - a fully qualified name of the class that implements org.jlense.uiworks.workbench.IPerspectiveFactory interface.
  • icon - a relative name of the icon that will be associated with this perspective.
  • description - an optional subelement whose body should contain text providing short description of the perspective.

The following is an example of a perspective extension:

   <extension point="org.jlense.uiworks.perspectives">

API Information: The value of the class attribute must be the fully qualified name of a class that implements org.jlense.uiworks.workbench.IPerspectiveFactory. The class must supply the initial layout for a perspective when asked by the workbench.

The product.ini file is used to define the default perspective. The default perspective is the first perspective which appears when the product is launched after install. It is also used when the user opens a page or window with no specified perspective. The default perspective is defined as a property within the product.ini, as shown below. The user may also override this perspective from the workbench perspectives preference page.

defaultPerspectiveId = org.eclipse.ui.resourcePerspective

The perspectives which appear in the "Open" menu are shortcuts for perspective selection. This set is defined by the active perspective itself, and extensions made through the perspectiveExtensions extension point.

Supplied Implementation: The workbench provides a "Resource Perspective". Additional perspectives may be added by plug-ins. They are selected using the Open submenu of the Perspective menu.