Java Reference
In-Depth Information
The model derived from the wizard has a canvas named mindmap, a node
for our
Topic
element, two connections, and three labels. Each corresponds to an
element in the figure gallery. For now, we don't modify what the wizard has pro-
duced because we first want to get through the entire process. Later, we'll come
back and refine the graphical definition.
4.3.2 Mindmap Tooling Definition
Similar to the process of examining the domain model to produce a starter
graphical definition, a wizard enables you to create a tooling definition model,
as seen in Figure 4-4. Begin again by right-clicking the diagrams folder and nav-
igating to
New
Tooling Definition Model
; name it
mindmap.gmftool
, locate the
mindmap.ecore
model, and select
Map
as the
Diagram Element
. The wizard should correctly determine the required tooling: a
node tool for the
Topic
element, and link tools for both the
Relationship
element
and the subtopics relationship within
Topic
. Deselect the link suggested for the
parent reference.
→
Other
→
Models
→
Figure 4-4
Tooling Definition Wizard
With the tooling model open in its editor, you can see that the wizard created
a single tool group and creation tools for each of these. We might want to create
separate groups for links and nodes, but for now we'll leave the model as is.
Search WWH ::
Custom Search