Java Reference
In-Depth Information
hierarchy because the provided method in the accessor returns an instance of the
figure (as long as the custom figure declares such a method). Custom figures can
be nested within other figures or can have other figures nested within them using
provided accessor methods.
Consider the case of a label figure within another figure, such as a rectangle.
A Figure Descriptor element is created in the Gallery and contains a
Rectangle figure and a Child Access element with a reference to the nested
Label figure. Generated figure code will contain a getter of the same name as
the value of the Child Access element's accessor property. By default, this will
be getFigure plus the name of the referenced child Figure .
Figure 11-2
Graphical definition model—canvas
The graphical definition model has its own code-generation templates, which
are invoked either during the creation/recreation of the GMF generator model or
to generate a standalone figures plug-in. The model and its code-generation tem-
plates are found in the org.eclipse.gmf.graphdef and org.eclipse.
gmf.graphdef.codegen plug-ins, respectively. Also found in the org.
eclipse.gmf.graphdef plug-in are some standard models that contain figure
Search WWH ::




Custom Search