Working Sets
Identifier:
com.sodius.mdw.platform.model.workingSets
Since:
MDWorkbench 3.0.0
Description:
This extension is used to add new working sets for a specific metamodel.
A working set enables to define a point of view on metamodel contents.
A working set is used to group together some semantically related elements.
It can also be used to hide a subset of elements that are considered as non relevant
for some particular modeling activity.
You may define a working set to group Types or Features.
Configuration Markup:
<!ELEMENT extension (typeWorkingSet* , featureWorkingSet*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
- point - a fully qualified identifier of the target extension point
- id - an optional identifier of the extension instance
- name - an optional name of the extension instance
<!ELEMENT typeWorkingSet (group+)>
<!ATTLIST typeWorkingSet
id CDATA #REQUIRED
name CDATA #REQUIRED
metamodel CDATA #REQUIRED
defaultExclude (true | false)
icon CDATA #IMPLIED
ordered (true | false) >
A working set to group the types of a metamodel.
- id - a unique name that will be used to identify this working set
- name - a translatable name that will be used in the UI for this working set
- metamodel - the id of the metamodel this working set is applies to (e.g. "uml21")
- defaultExclude - if true, all types not explicitly referenced in group elements will be hidden. If false, such elements would appear in a self-created "Others" group.
- icon - a relative name of the icon that will be used to display this working set
- ordered - if true, all groups will be alphabetically sorted in the UI. If false, the extension elements order is preserved.
<!ELEMENT featureWorkingSet (group+)>
<!ATTLIST featureWorkingSet
id CDATA #REQUIRED
name CDATA #REQUIRED
metamodel CDATA #REQUIRED
defaultExclude (true | false)
icon CDATA #IMPLIED
ordered (true | false) >
A working set to group the features of a metamodel.
- id - a unique name that will be used to identify this working set
- name - a translatable name that will be used in the UI for this working set
- metamodel - the id of the metamodel this working set is applies to (e.g. "uml21")
- defaultExclude - if true, all features not explicitly referenced in group elements will be hidden. If false, such elements would appear in a self-created "Others" group.
- icon - a relative name of the icon that will be used to display this working set
- ordered - if true, all groups will be alphabetically sorted in the UI. If false, the extension elements order is preserved.
<!ELEMENT group ((group | element)*)>
<!ATTLIST group
name CDATA #REQUIRED
layout (none|top|bottom)
ordered (true | false) >
a group of elements. A working set must contain at least one group. A group may contain other groups and elements.
- name - a translatable name that will be used in the UI for this group
- layout - an optional constraint for the layout display of this group. Enables to force this group to appear on top or bottom of the parent contents.
- ordered - if true, all owned groups and elements will be alphabetically sorted in the UI. If false, the extension elements order is preserved.
<!ELEMENT element EMPTY>
<!ATTLIST element
name CDATA #REQUIRED>
a leaf element of the working set, that references either a metamodel type or a feature
- name - the name of the type (e.g. "MyClass") or qualified name of the feature (e.g. "MyClass.myFeature")
Examples:
Following is an example of a Type working set extension:
<extension
point=
"com.sodius.mdw.platform.model.workingSets"
>
<typeWorkingSet
id=
"com.sodius.mdw.metamodel.uml21.metamodelPackagesWorkingSet"
metamodel=
"uml21"
name=
"Metamodel Packages"
>
<group name=
"Structure.Classes"
>
<element name=
"Association"
/>
<element name=
"Class"
/>
</group>
<group name=
"Structure.Components"
>
<element name=
"Component"
/>
<element name=
"Connector"
/>
</group>
</typeWorkingSet>
</extension>
</extension>
SODIUS