Views

com.onaro.client.dashboard.ui.views

SANscreen 4.0

This extension point is used to define additional views for the workbench. A view is a visual component within a workbench page. It is typically used to navigate a hierarchy of information (like the workspace), open an editor, or display properties for the active editor. The user can make a view visible from the Window > Show View menu or close it from the view local title bar.

In order to reduce the visual clutter in the Show View Dialog, views should be grouped using categories.

<!ELEMENT extension (category | view)*>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT category EMPTY>

<!ATTLIST category

id             CDATA #REQUIRED

name           CDATA #REQUIRED

parentCategory CDATA #IMPLIED>


<!ELEMENT view (description?)>

<!ATTLIST view

id            CDATA #REQUIRED

name          CDATA #REQUIRED

category      CDATA #IMPLIED

class         CDATA #REQUIRED

icon          CDATA #IMPLIED

allowMultiple (true | false) >


<!ELEMENT description (#PCDATA)>

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



The following is an example of the extension point:

   

<extension point=

"com.onaro.client.dashboard.ui.views"

>

<category id=

"com.xyz.views.XYZviews"

name=

"XYZ"

/>

<view id=

"com.xyz.views.XYZView"

name=

"XYZ View"

category=

"com.xyz.views.XYZviews"

class=

"com.xyz.views.XYZView"

icon=

"icons/XYZ.gif"

/>

</extension>

The value of the class attribute must be a fully qualified name of the class that implements com.onaro.client.leekuihama.ui.IViewPart. It is common practice to subclass com.onaro.client.leekuihama.ui.part.ViewPart when developing a new view.