Java Reference
In-Depth Information
Synchronized
This property determines the behavior of the diagram at runtime with respect to
the state of its corresponding domain model. A synchronized diagram (default)
updates automatically to reflect changes in the underlying domain model
instance. For example, a package diagram node that contains classes will be
updated automatically to reflect the addition of new classes to the package auto-
matically. Note that default generated code from GMF does not synchronize a
diagram when changes are made in another editing domain until the changes are
saved—for example, if the model is also open in the EMF-generated editor and
is modified but not yet saved. It's also possible to share the same editing domain
among diagram editors that operate on the same underlying domain model, as is
often the case with UML diagramming tools. You can find the process for accom-
plishing this on the GMF wiki. Section 4.4.6, “Integrating EMF and GMF
Editors,” covers sharing EMF and GMF editors when both use the same editing
domain.
You can initially create a nonsynchronized diagram using the initialize dia-
gram action for a given domain model, but it will not be updated to reflect
changes in the model. More specifically, canonical updates occur, but the creation
of new diagram elements that correspond to newly created elements in the under-
lying domain model does not occur. Labels and compartment items for existing
diagram elements will reflect changes in their underlying domain properties.
You can also take a mixed approach, in which some diagrams are synchro-
nized and others are not; this is another common use case for UML diagramming
tools.
Units
This property refers to the unit of measure used to render the diagram in the dis-
play. The valid values are Himetric and Pixel . A Himetric unit is equal to
1/100 mm on any display. A Pixel can vary depending on the display resolution.
Validation Decorators and Validation Enabled
When validation is enabled for use with diagram audits and metrics, validation
decorators can also be enabled to allow decoration of diagram elements. Setting
Validation Enabled to true causes the generation of _ ValidationProvider
and _ MarkerNavigationProvider classes for invoking the EMF validation
framework and providing resource markers, respectively. Setting Validation
Decorators to true causes the _ ValidationDecoratorProvider class to be
generated, which handles decorating diagram elements with validation errors.
Search WWH ::




Custom Search