Java Reference
In-Depth Information
command to create both the domain (semantic) element and the view element
that references it. Using the command infrastructure in GMF ensures that undo
and redo are handled in a generic fashion and eliminates the need for orphan ele-
ment creation.
Figure 10-47
Element creation
Now let's consider the mouse click on the diagram surface, which is covered
by Figures 10-48 and 10-49. First, we see that the compound command loaded
into the creation tool is executed to create the domain and notation view ele-
ments. Note that the domain element is created first and then passed to the
ViewService for notation element creation, leveraging the registered provider
and corresponding ViewFactory .
Search WWH ::




Custom Search