Action Managers

As explained in architecture views are implemented by instances of ViewManager interface.

These managers are declared in extension point .

        <!ELEMENT extension (viewmanager)>
        <!ATTLIST extension
                point CDATA #REQUIRED
                id    CDATA #REQUIRED
                name  CDATA #IMPLIED>
  • point - must contain
  • id - a required unique identifier of this ViewManager.
  • name - an optional name of the extension instance

Extension point contains one and exactly one viewmanager tag:

        <!ELEMENT viewmanager (requires*)>
        <!ATTLIST viewmanager
                class CDATA #REQUIRED
                label CDATA #REQUIRED
                icon CDATA #IMPLIED>
  • class - the fully qualified name of the class that implements ViewManager interface.
  • label - a label that identifies this type of view. This label is used on buttons on toolbar.
  • icon - an icon that identifies this type of view on toolbar.

viewmanager may contain a list of requires tags that specifies required features.

        <!ELEMENT requires (#EMPTY)>
        <!ATTLIST requires
                feature CDATA #REQUIRED>
  • feature - the name of a feature that is required to be enabled on project, for this plugin to be enabled.

If any of the required features is disabled on project, view manager will be skipped.

You can use this extension point to add new specific view types. There is currently fiew implementations of ViewManagers:

  • JspGenericViewManager: this manager enables managing JSP views.
  • StaticFileGenericViewManager: this manager enables to manage simple static file views.