Java Reference
In-Depth Information
the basics, and then we iterate through several enhancements, including layout
and advanced figures.
4.3.1 Mindmap Graphical Definition
Building on Section 3.3, “Developing the Mindmap Domain Model,” you should
have a mindmap DSL project and the generated EMF plug-ins from the mindmap
domain model in your workspace. We put our GMF models in the diagrams
folder, so begin by right-clicking that folder and selecting
New
→
Other
→
Models
Graphical Definition Model
and naming it
mindmap.gmfgraph
. If
you're not using the DSL Toolkit, you'll find the standard GMF wizard in
New
→
→
Simple Graphical Definition
Model
. Use
Find in Workspace
to quickly locate our mindmap.ecore model and
select
Map
as the
Diagram Element
. The next page of the wizard presents ele-
ments discovered within the domain model and a guess at what would be appro-
priate for each: node, link, label, or nothing. Make the dialog look like Figure
4-3 so that we'll create a node for the
Topic
element with a label for its name
attribute and link for subtopics, and a link for the
Relationship
element with
labels for its name and type. Finally, click
Finish
.
Other
→
Graphical Modeling Framework
→
Figure 4-3
Graphical Definition Wizard
Search WWH ::
Custom Search