Java Reference
In-Depth Information
Although we do not cover this in detail, you might have noticed while using
GMF that a fair amount of validation takes place when transforming to the gen-
erator model. If you look at the gmfmap.ecore model in the org.eclipse.
gmf.map plug-in, you will notice a number of OCL constraints defined for ele-
ments in the model.
The root of the model is the Mapping element, which can take a number of
elements as children: Top Node Reference , Link Mapping , Canvas
Mapping , Audit Container , Metric Container , and Generic Style
Selector . GMF does not yet leverage the Generic Style Selector .
Figure 11-7 shows the mapping model, to aid in the discussion that follows.
Figure 11-7
Mapping model
11.3.1 Canvas Mapping
The Canvas Mapping element is required and represents the diagram canvas.
The mapping wizard populates this element with the selected Domain Model
( EPackage ), its root Element ( EClass ), the Diagram Canvas from a graphi-
cal definition model, and the Palette from the tooling definition model. GMF
does not yet use the Menu and Toolbar Contributions elements.
Search WWH ::




Custom Search