Java Reference
In-Depth Information
Using the helper in the editor, or by manually entering into the plugin.xml
tab itself, contribute the following to the org.eclipse.ui.perspectives
and perspectiveExtensions extension-points.
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="%_UI_Perspective_label"
icon="icons/wizard.gif"
class="org.eclipse.requirements.ui.RequirementsPerspective"
id="org.eclipse.requirements.perspective">
<description>%_UI_Perspective_description</description>
</perspective>
</extension>
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.requirements.perspective">
<perspectiveShortcut id="org.eclipse.ui.resourcePerspective"/>
<newWizardShortcut id="org.eclipse.requirements.ui.wizards.id"/>
<actionSet id="org.eclipse.jdt.ui.JavaActionSet"/>
<actionSet id="org.eclipse.debug.ui.launchActionSet"/>
<viewShortcut id="org.eclipse.search.ui.views.SearchView"/>
</perspectiveExtension>
</extension>
We've specified a RequirementsProjectWizard and a Requirements-
Perspective in our manifest that we need to implement. The implementations
for each class are not covered here, but are provided in the sample projects.
Consult the Eclipse help system for additional information on wizards and per-
spectives; their details fall outside the scope of this topic. The important infor-
mation required is the wizard category ID that we can use with our generator
models in Section 8.1.3, “Generation Models.”
Preferences
Our generated diagram preferences are each given their own root in the
Preferences dialog, but we want them all to fall under a general Requirements
category that will eventually contain more general preferences. To provide a
common category each diagram can leverage, we'll define a contribution to the
org.eclipse.ui.preferencePages extension-point as follows.
<extension point="org.eclipse.ui.preferencePages">
<page
class="org.eclipse.requirements.preferences.
RequirementsGeneralPreferencePage"
id="org.eclipse.requirements.preferences.category"
Search WWH ::




Custom Search