Java Reference
In-Depth Information
Along with these properties, this section of the generator model has provider
priority elements. By default, many of these are set to Lowest priority, which,
unfortunately, might not allow them to be activated at runtime. For example, set
the Validation Decorator Provider Priority to Medium if you aren't
seeing decorators for audit violations. For metrics, set the Metric Provider
Priority to something higher than Lowest . As mentioned in the runtime sec-
tion, these providers are part of an extensibility framework that gives custom
providers priority over the default or generated providers, according to the exe-
cution strategy that the service defines.
Creation Wizard Category ID and Icon Path
By default, GMF generates the Diagram Creation Wizard, sets it to the org.
eclipse.ui.Examples category, and provides a standard icon. If you want to
put your wizard in a custom category, specify it here, but be sure to use a valid
category ID. Otherwise, you might find your wizard in the “Other” category.
Similarly, you can provide an alternative relative path to use a different icon.
If you'd prefer to reuse the EMF wizard icon for the diagram wizard, enter
{reuseEMFIcon} in the field. Note that this also impacts the file icon used in
the navigator. Of course, you could just replace the generated icon with one you
prefer and leave the filename and path set to the default.
Editing Domain ID
A unique identifier for the diagram is its editing domain, which uses its own
resource set. Generated diagrams are given an instance of an editing domain for
each open editor, so, by default, they cannot share instances of model elements
that are open in another open diagram. You can alter the generated code so that
several diagrams can share a single domain model instance.
Visual ID
The Visual ID is a number used to represent a diagram metaelement where vari-
ous types are being edited within a single editor. Generally, you do not need to
modify this value except when using a shared editing domain, as described earlier.
Without Domain
You can generate diagrams where no underlying domain model is mapped, in
which case this property is true . This is useful when you want to experiment
with notations or refine your figures.
Search WWH ::




Custom Search