Java Reference
In-Depth Information
extends the provided org.eclipse.gmf.runtime.diagram.ui.
resources.editor.ide.wizards.EditorCreationWizard .
<extension point="org.eclipse.ui.newWizards">
<wizard
category="org.eclipse.ui.Examples"
class=
"org.eclipse.mindmap.diagram.wizards.MindmapDiagramCreationWizard"
icon="icons/obj16/MindmapDiagramFile.gif"
id="org.eclipse.mindmap.diagram.wizards.MindmapCreationWizardID"
name="%newWizardName">
<description>%newWizardDesc</description>
</wizard>
</extension>
You can see the implementation of the wizard in the provided sample code.
Basically, the wizard provides a location and name selection page, with the option
of separating the diagram and domain model into distinct files. By default, the two
models are persisted into the same file, which our MindmapDiagramEditor ini-
tializes and opens.
If we launch the runtime workbench and test our diagram thus far, we can
see that we can create a diagram using this wizard and add Topic elements to
the diagram. We cannot set any properties yet, so we'll configure those next.
10.8.2 Configuring the Properties View
To configure a properties view for our diagram, we leverage the platform's
tabbed properties extension-points. As shown shortly, org.eclipse.ui.
views.properties.tabbed propertyContributor , propertyTabs , and
propertySections extension-points are used to provide basic domain model
properties for our diagram.
For the propertyTab contribution, we assign the org.eclipse.
mindmap.diagram contributor ID that will be referenced in the remaining con-
tributions. A propertyTab element in the domain category is declared, for
which we'll configure a propertyContributor here:
<extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
<propertyTabs contributorId="org.eclipse.mindmap.diagram">
<propertyTab
category="domain"
id="property.tab.domain"
label="%tab.domain"/>
</propertyTabs>
</extension>
Search WWH ::




Custom Search