org.jlense.uiworks.perspectiveExtensions

Plug-ins can add action sets, views, and various shortcuts to existing perspectives by contributing to the org.jlense.uiworks.perspectiveExtensions extension point.

The contributions that can be defined for new perspectives (action sets, wizard entries, view layout, and view shortcuts) can also be supplied for an existing perspective. One important difference is that these contributions are specified in the plugin.xml markup instead of configuring them into an IPageLayout.

The following markup shows how JLedger adds view shortcuts and a wizard to the default perspective.

<extension point="org.jlense.uiworks.perspectiveExtensions">
    <perspectiveExtension targetID="org.jlense.uiworks.OutlookPerspective">
        <viewShortcut id="org.jledger.ui.accounts.AccountsView" />
        <viewShortcut id="org.jledger.ui.gl.GeneralLedgerView" />
        <viewShortcut id="org.jledger.ui.reports.ReportsView" />
        <viewShortcut id="org.jledger.ui.ar.AccountReceivableView" />
        <viewShortcut id="org.jledger.ui.ap.AccountsPayableView" />

        <newWizardShortcut id="org.jledger.ui.accounts.NewAccountWizard"/>
    </perspectiveExtension>
</extension>