Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
org.blueberry.ui.perspectives
Perspectives

Perspectives

Identifier:
org.blueberry.ui.perspective

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 Perspective" submenu of the "Window" menu.

Configuration Markup:

<!ELEMENT extension (perspective*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>

  • point - a fully qualified identifier of the target extension point
  • id - an optional identifier of the extension instance
  • name - an optional name of the extension instance

<!ELEMENT perspective (description? , keywordReference*)>

<!ATTLIST perspective

id    CDATA #REQUIRED

name  CDATA #REQUIRED

class CDATA #REQUIRED

icon  CDATA #IMPLIED

fixed (true | false) >

  • 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 berry::IPerspectiveFactory interface.
  • icon - a relative name of the icon that will be associated with this perspective.
  • fixed - indicates whether the layout of the perspective is fixed. If true, then views created by the perspective factory are not closeable, and cannot be moved. The default is false.

<!ELEMENT description (#PCDATA)>

an optional subelement whose body should contain text providing a short description of the perspective.



Examples:
The following is an example of a perspective extension:


   <extension
        point="org.blueberry.ui.perspectives">
        <perspective
            id="org.blueberry.ui.resourcePerspective"
            name="Resource"
            class="berry::ResourcePerspective"
            icon="resources/MyIcon.gif">
        </perspective>
    </extension>

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


Copyright (c) 2002, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html