Java Reference
In-Depth Information
Domain File Extension
This is the file extension registered with the associated domain generator model.
It is used for the pop-up menu UI contribution that invokes the generated dia-
gram initialization feature, the New Diagram Wizard, and so on.
Domain Gen Model
This is a reference to the domain generator model. It is used primarily for the
domain model element property tester, which requires knowing the accessor
methods for the classes.
Dynamic Templates and Template Directory
When the Dynamic Templates property is set to true , the path specified in the
Template Directory invokes the dynamic (custom) templates located there
when diagram code is generated. Note that the path should begin from the work-
space root, so templates located in a /templates directory of plug-in org.
eclipse.demo would be entered as /org.eclipse.demo/templates . Also,
it is possible to enter any valid Uniform Resource Identifier (URI) into this
field—for example, file:/c:/path , platform:/resource/org.eclipse.
dsl.mindmap/templates .
Model ID
By default, this is the value of the domain model name that identifies the gener-
ated diagram. As with the file extension property, this value should be unique to
the environment. If multiple diagrams are defined for a single domain model,
alter this property to make it unique; by default, it gets the same value as the
first one.
This property creates the IDs and other names used to identify the diagram
elements, such as the globalActionHandlerProviders extension-point con-
tributions. It also identifies related diagrams when using the Shortcuts
Provided For property (discussed later).
Package Name Prefix
As you can guess, this property forms the base package for generated diagram
code.
Same File for Diagram and Model
By default, GMF creates a diagram in its own resource and references domain
elements stored in a separate file. This is the preferred method, where domain
Search WWH ::




Custom Search