Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2015-03-27 15:31:34 +0000
committerptessier2015-04-17 06:58:51 +0000
commit2e1b77941b550ada44eb34a005aab451eec08e4f (patch)
tree8ccfd15a961a601d6cd105aea12d09f43f5ca66c /plugins
parente492ddc90ea33db7371e0eb35a9a3a022ad08ed8 (diff)
downloadorg.eclipse.papyrus-2e1b77941b550ada44eb34a005aab451eec08e4f.tar.gz
org.eclipse.papyrus-2e1b77941b550ada44eb34a005aab451eec08e4f.tar.xz
org.eclipse.papyrus-2e1b77941b550ada44eb34a005aab451eec08e4f.zip
Bug 463290 - Papyrus diagram shall be expanded with new visual graphical
notation Change-Id: I1a988a133c8799d1cff5356e3717a2140f530502 Bug 463290 - Papyrus diagram shall be expanded with new visual graphical notation Change-Id: Idfcd4c49f9bb45f8d6567d06a717aafff1f82c74 Bug 463290 - Papyrus diagram shall be expanded with new visual graphical notation update Metamodel Change-Id: Iaa47a0d1d1b472c8246cc8fd8118166124aa6cd9 Bug 463290 - Papyrus diagram shall be expanded with new visual graphical notation remove plugins Change-Id: Ia1fbd849957def00b1d90c4718b15f5ad63fa848 Bug 463290 - Papyrus diagram shall be expanded with new visual graphical notation First Version of the metamodel to expand diagram Change-Id: Iebd87ed949447e21a0e0e588dc9d8f035d6a65db Bug 463290 - Papyrus diagram shall be expanded with new visual graphical notation forgotten files Change-Id: I68d52398e920de3bdb65081e30a70434f62fb854
Diffstat (limited to 'plugins')
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.classpath7
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.project28
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/META-INF/MANIFEST.MF16
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/about.html28
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/build.properties10
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateCompartmentLibrary_compartments_Compartments.gifbin0 -> 223 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_CompartmentLibrary.gifbin0 -> 223 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_Library.gifbin0 -> 223 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_RepresentationLibrary.gifbin0 -> 223 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_usages_UseContext.gifbin0 -> 223 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateRepresentationLibrary_representations_GmftBasedRepresentation.gifbin0 -> 223 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateRepresentationLibrary_representations_Representation.gifbin0 -> 223 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateUseContext_gmftRepresentations_GmftBasedRepresentation.gifbin0 -> 223 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/CompartmentLibrary.gifbin0 -> 129 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Compartments.gifbin0 -> 129 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/DiagramExpansion.gifbin0 -> 129 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/GmftBasedRepresentation.gifbin0 -> 129 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Library.gifbin0 -> 129 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Representation.gifbin0 -> 129 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/RepresentationLibrary.gifbin0 -> 129 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/UseContext.gifbin0 -> 129 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/plugin.properties58
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/plugin.xml22
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/CompartmentLibraryItemProvider.java145
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/CompartmentsItemProvider.java255
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/DiagramExpansionItemProvider.java182
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/ExpansionModelItemProviderAdapterFactory.java343
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/GmftBasedRepresentationItemProvider.java132
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/LibraryItemProvider.java160
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/RepresentationItemProvider.java279
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/RepresentationLibraryItemProvider.java150
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/UseContextItemProvider.java248
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/expansion/expansionmodel/provider/ExpansionModelEditPlugin.java89
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.classpath7
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.project28
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/META-INF/MANIFEST.MF19
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/about.html28
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/build.properties10
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/icons/full/obj16/ExpansionModelModelFile.gifbin0 -> 346 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/icons/full/wizban/NewExpansionModel.gifbin0 -> 2462 bytes
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/plugin.properties53
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/plugin.xml36
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelActionBarContributor.java425
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelEditor.java1820
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelModelWizard.java630
-rw-r--r--plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/expansion/expansionmodel/presentation/ExpansionModelEditorPlugin.java91
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/.classpath1
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF7
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.di2
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.notation273
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.uml153
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.di2
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.notation571
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.uml191
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/expansionModel.ecore126
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/expansionModel.genmodel65
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml8
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/CompartmentKind.java215
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/CompartmentLibrary.java40
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Compartments.java153
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/DiagramExpansion.java59
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelFactory.java96
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelPackage.java1191
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/GmftBasedRepresentation.java50
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Library.java50
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Representation.java180
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/RepresentationKind.java328
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/RepresentationLibrary.java40
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/UseContext.java115
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/CompartmentLibraryImpl.java150
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/CompartmentsImpl.java368
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/DiagramExpansionImpl.java189
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/ExpansionModelFactoryImpl.java236
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/ExpansionModelPackageImpl.java703
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/GmftBasedRepresentationImpl.java162
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/LibraryImpl.java163
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/RepresentationImpl.java422
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/RepresentationLibraryImpl.java150
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/UseContextImpl.java312
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/util/ExpansionModelAdapterFactory.java246
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/util/ExpansionModelSwitch.java260
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/IBorderItemWithLocator.java27
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java21
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/providers/CustomAbstractViewProvider.java27
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.project28
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.project28
-rw-r--r--plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/META-INF/MANIFEST.MF3
-rw-r--r--plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-gmf/org/eclipse/papyrus/gmf/diagram/common/provider/CustomAbstractEditPartProvider.java3
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/META-INF/MANIFEST.MF10
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/plugin.xml66
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BDD.expansionmodel13
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration1026
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/IDRegistry.java17
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/command/CreateDynamicCompartmentViewCommand.java83
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/dnd/AddedElementDropStrategy.java126
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/editpart/DynamicAroundBoderItemEditPart.java219
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/editpart/DynamicBorderItemNameEditPart.java685
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/editpart/DynamicListCompartmentEditPart.java80
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/editpart/DynamicXYCompartmentEditPart.java117
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/factory/BlockClassifierViewFactory.java105
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/factory/OperationPortViewFactory.java52
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/policy/DynamicCompartmentCreatorEditPolicy.java257
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/provider/BDDViewProvider.java155
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/provider/BddEditPartProvider.java100
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/provider/DynamicCompartmentPolicyProvider.java81
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.common/resources/SysML14UMLClassDiagram.elementtypesconfigurations462
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/model/SysML.elementtypesconfigurations963
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/AutomaticCompartmentLayoutManager.java6
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/RoundedCompartmentFigure.java21
109 files changed, 16917 insertions, 440 deletions
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.classpath b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.classpath
new file mode 100644
index 00000000000..a0c6dd9cee8
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.project b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.project
new file mode 100644
index 00000000000..f3f5d526a87
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.infra.gmfdiag.expansion.edit</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/META-INF/MANIFEST.MF b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..9d35edd3f54
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/META-INF/MANIFEST.MF
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.papyrus.infra.gmfdiag.expansion.edit;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-ClassPath: .
+Bundle-Activator: org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider.ExpansionModelEditPlugin$Implementation
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Export-Package: org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider,
+ org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.papyrus.infra.gmfdiag.common;visibility:=reexport,
+ org.eclipse.emf.edit;visibility:=reexport
+Bundle-ActivationPolicy: lazy
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/about.html b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/about.html
new file mode 100644
index 00000000000..209103075a7
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>November 14, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/build.properties b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/build.properties
new file mode 100644
index 00000000000..061672eb20e
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/build.properties
@@ -0,0 +1,10 @@
+#
+
+bin.includes = .,\
+ icons/,\
+ META-INF/,\
+ plugin.xml,\
+ plugin.properties
+jars.compile.order = .
+source.. = src/
+output.. = bin/
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateCompartmentLibrary_compartments_Compartments.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateCompartmentLibrary_compartments_Compartments.gif
new file mode 100644
index 00000000000..61e5d4d4826
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateCompartmentLibrary_compartments_Compartments.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_CompartmentLibrary.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_CompartmentLibrary.gif
new file mode 100644
index 00000000000..0ccdfdc5f88
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_CompartmentLibrary.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_Library.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_Library.gif
new file mode 100644
index 00000000000..2120258b595
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_Library.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_RepresentationLibrary.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_RepresentationLibrary.gif
new file mode 100644
index 00000000000..0c81e8e0889
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_libraries_RepresentationLibrary.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_usages_UseContext.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_usages_UseContext.gif
new file mode 100644
index 00000000000..d7c738ef53b
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateDiagramExpansion_usages_UseContext.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateRepresentationLibrary_representations_GmftBasedRepresentation.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateRepresentationLibrary_representations_GmftBasedRepresentation.gif
new file mode 100644
index 00000000000..1aa8543afec
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateRepresentationLibrary_representations_GmftBasedRepresentation.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateRepresentationLibrary_representations_Representation.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateRepresentationLibrary_representations_Representation.gif
new file mode 100644
index 00000000000..15a02fb1e7e
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateRepresentationLibrary_representations_Representation.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateUseContext_gmftRepresentations_GmftBasedRepresentation.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateUseContext_gmftRepresentations_GmftBasedRepresentation.gif
new file mode 100644
index 00000000000..a8d9588da75
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/ctool16/CreateUseContext_gmftRepresentations_GmftBasedRepresentation.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/CompartmentLibrary.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/CompartmentLibrary.gif
new file mode 100644
index 00000000000..be22463d291
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/CompartmentLibrary.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Compartments.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Compartments.gif
new file mode 100644
index 00000000000..7c2aaac84ee
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Compartments.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/DiagramExpansion.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/DiagramExpansion.gif
new file mode 100644
index 00000000000..33a997a1606
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/DiagramExpansion.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/GmftBasedRepresentation.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/GmftBasedRepresentation.gif
new file mode 100644
index 00000000000..b1f8afa4766
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/GmftBasedRepresentation.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Library.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Library.gif
new file mode 100644
index 00000000000..739ebbfa6ac
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Library.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Representation.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Representation.gif
new file mode 100644
index 00000000000..106881e5d9b
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/Representation.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/RepresentationLibrary.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/RepresentationLibrary.gif
new file mode 100644
index 00000000000..8a5c70cbd74
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/RepresentationLibrary.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/UseContext.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/UseContext.gif
new file mode 100644
index 00000000000..134551bff7e
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/icons/full/obj16/UseContext.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/plugin.properties b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/plugin.properties
new file mode 100644
index 00000000000..3a321500c7e
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/plugin.properties
@@ -0,0 +1,58 @@
+#
+
+pluginName = ExpansionModel Edit Support
+providerName = www.example.org
+
+_UI_CreateChild_text = {0}
+_UI_CreateChild_text2 = {1} {0}
+_UI_CreateChild_text3 = {1}
+_UI_CreateChild_tooltip = Create New {0} Under {1} Feature
+_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}.
+_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.
+
+_UI_PropertyDescriptor_description = The {0} of the {1}
+
+_UI_Representation_type = Representation
+_UI_Compartments_type = Compartments
+_UI_RepresentationLibrary_type = Representation Library
+_UI_Library_type = Library
+_UI_CompartmentLibrary_type = Compartment Library
+_UI_UseContext_type = Use Context
+_UI_DiagramExpansion_type = Diagram Expansion
+_UI_Unknown_type = Object
+
+_UI_Unknown_datatype= Value
+
+_UI_Representation_editPartQualifiedName_feature = Edit Part Qualified Name
+_UI_Representation_kind_feature = Kind
+_UI_Representation_graphicalElementType_feature = Graphical Element Type
+_UI_Representation_compartments_feature = Compartments
+_UI_Representation_reusedId_feature = Reused Id
+_UI_Compartments_hint_feature = Hint
+_UI_Compartments_children_feature = Children
+_UI_Compartments_kind_feature = Kind
+_UI_Library_name_feature = Name
+_UI_CompartmentLibrary_compartments_feature = Compartments
+_UI_UseContext_diagramType_feature = Diagram Type
+_UI_UseContext_representations_feature = Representations
+_UI_UseContext_name_feature = Name
+_UI_DiagramExpansion_usages_feature = Usages
+_UI_DiagramExpansion_libraries_feature = Libraries
+_UI_Unknown_feature = Unspecified
+
+_UI_RepresentationKind_shape_literal = shape
+_UI_RepresentationKind_label_literal = label
+_UI_RepresentationKind_link_literal = link
+_UI_RepresentationKind_borderItem_literal = borderItem
+_UI_RepresentationKind_borderItemLabel_literal = borderItemLabel
+_UI_RepresentationKind_custom_literal = custom
+_UI_CompartmentKind_list_literal = list
+_UI_CompartmentKind_xy_literal = xy
+_UI_RepresentationLibrary_representations_feature = Representations
+_UI_Representation_name_feature = Name
+_UI_Compartments_name_feature = Name
+_UI_Compartments_editPartQualifiedName_feature = Edit Part Qualified Name
+_UI_GmftBasedRepresentation_type = Gmft Based Representation
+_UI_UseContext_gmftRepresentations_feature = Gmft Representations
+_UI_GmftBasedRepresentation_reusedId_feature = Reused Id
+_UI_Representation_viewFactory_feature = View Factory
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/plugin.xml b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/plugin.xml
new file mode 100644
index 00000000000..0aa7763b046
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/plugin.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+
+<!--
+-->
+
+<plugin>
+
+ <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
+ <!-- @generated expansionModel -->
+ <factory
+ uri="http:///expansionmodel.ecore"
+ class="org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider.ExpansionModelItemProviderAdapterFactory"
+ supportedTypes=
+ "org.eclipse.emf.edit.provider.IEditingDomainItemProvider
+ org.eclipse.emf.edit.provider.IStructuredItemContentProvider
+ org.eclipse.emf.edit.provider.ITreeItemContentProvider
+ org.eclipse.emf.edit.provider.IItemLabelProvider
+ org.eclipse.emf.edit.provider.IItemPropertySource"/>
+ </extension>
+
+</plugin>
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/CompartmentLibraryItemProvider.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/CompartmentLibraryItemProvider.java
new file mode 100644
index 00000000000..a23876dd3c4
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/CompartmentLibraryItemProvider.java
@@ -0,0 +1,145 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelFactory;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CompartmentLibraryItemProvider extends LibraryItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompartmentLibraryItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(ExpansionModelPackage.Literals.COMPARTMENT_LIBRARY__COMPARTMENTS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns CompartmentLibrary.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/CompartmentLibrary"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((CompartmentLibrary)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_CompartmentLibrary_type") :
+ getString("_UI_CompartmentLibrary_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(CompartmentLibrary.class)) {
+ case ExpansionModelPackage.COMPARTMENT_LIBRARY__COMPARTMENTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (ExpansionModelPackage.Literals.COMPARTMENT_LIBRARY__COMPARTMENTS,
+ ExpansionModelFactory.eINSTANCE.createCompartments()));
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/CompartmentsItemProvider.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/CompartmentsItemProvider.java
new file mode 100644
index 00000000000..63a9c3860b5
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/CompartmentsItemProvider.java
@@ -0,0 +1,255 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider.ExpansionModelEditPlugin;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CompartmentsItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompartmentsItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addHintPropertyDescriptor(object);
+ addChildrenPropertyDescriptor(object);
+ addKindPropertyDescriptor(object);
+ addNamePropertyDescriptor(object);
+ addEditPartQualifiedNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Hint feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addHintPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Compartments_hint_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Compartments_hint_feature", "_UI_Compartments_type"),
+ ExpansionModelPackage.Literals.COMPARTMENTS__HINT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Children feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addChildrenPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Compartments_children_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Compartments_children_feature", "_UI_Compartments_type"),
+ ExpansionModelPackage.Literals.COMPARTMENTS__CHILDREN,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Kind feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addKindPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Compartments_kind_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Compartments_kind_feature", "_UI_Compartments_type"),
+ ExpansionModelPackage.Literals.COMPARTMENTS__KIND,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Compartments_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Compartments_name_feature", "_UI_Compartments_type"),
+ ExpansionModelPackage.Literals.COMPARTMENTS__NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Edit Part Qualified Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addEditPartQualifiedNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Compartments_editPartQualifiedName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Compartments_editPartQualifiedName_feature", "_UI_Compartments_type"),
+ ExpansionModelPackage.Literals.COMPARTMENTS__EDIT_PART_QUALIFIED_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Compartments.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Compartments"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Compartments)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Compartments_type") :
+ getString("_UI_Compartments_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(Compartments.class)) {
+ case ExpansionModelPackage.COMPARTMENTS__HINT:
+ case ExpansionModelPackage.COMPARTMENTS__KIND:
+ case ExpansionModelPackage.COMPARTMENTS__NAME:
+ case ExpansionModelPackage.COMPARTMENTS__EDIT_PART_QUALIFIED_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ExpansionModelEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/DiagramExpansionItemProvider.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/DiagramExpansionItemProvider.java
new file mode 100644
index 00000000000..9540df65c20
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/DiagramExpansionItemProvider.java
@@ -0,0 +1,182 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelFactory;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider.ExpansionModelEditPlugin;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DiagramExpansionItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DiagramExpansionItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(ExpansionModelPackage.Literals.DIAGRAM_EXPANSION__USAGES);
+ childrenFeatures.add(ExpansionModelPackage.Literals.DIAGRAM_EXPANSION__LIBRARIES);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns DiagramExpansion.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/DiagramExpansion"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DiagramExpansion_type");
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(DiagramExpansion.class)) {
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__USAGES:
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__LIBRARIES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (ExpansionModelPackage.Literals.DIAGRAM_EXPANSION__USAGES,
+ ExpansionModelFactory.eINSTANCE.createUseContext()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (ExpansionModelPackage.Literals.DIAGRAM_EXPANSION__LIBRARIES,
+ ExpansionModelFactory.eINSTANCE.createRepresentationLibrary()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (ExpansionModelPackage.Literals.DIAGRAM_EXPANSION__LIBRARIES,
+ ExpansionModelFactory.eINSTANCE.createCompartmentLibrary()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ExpansionModelEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/ExpansionModelItemProviderAdapterFactory.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/ExpansionModelItemProviderAdapterFactory.java
new file mode 100644
index 00000000000..ee260d74187
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/ExpansionModelItemProviderAdapterFactory.java
@@ -0,0 +1,343 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.util.ExpansionModelAdapterFactory;
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExpansionModelItemProviderAdapterFactory extends ExpansionModelAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RepresentationItemProvider representationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createRepresentationAdapter() {
+ if (representationItemProvider == null) {
+ representationItemProvider = new RepresentationItemProvider(this);
+ }
+
+ return representationItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CompartmentsItemProvider compartmentsItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createCompartmentsAdapter() {
+ if (compartmentsItemProvider == null) {
+ compartmentsItemProvider = new CompartmentsItemProvider(this);
+ }
+
+ return compartmentsItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RepresentationLibraryItemProvider representationLibraryItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createRepresentationLibraryAdapter() {
+ if (representationLibraryItemProvider == null) {
+ representationLibraryItemProvider = new RepresentationLibraryItemProvider(this);
+ }
+
+ return representationLibraryItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CompartmentLibraryItemProvider compartmentLibraryItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createCompartmentLibraryAdapter() {
+ if (compartmentLibraryItemProvider == null) {
+ compartmentLibraryItemProvider = new CompartmentLibraryItemProvider(this);
+ }
+
+ return compartmentLibraryItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected UseContextItemProvider useContextItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createUseContextAdapter() {
+ if (useContextItemProvider == null) {
+ useContextItemProvider = new UseContextItemProvider(this);
+ }
+
+ return useContextItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected GmftBasedRepresentationItemProvider gmftBasedRepresentationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createGmftBasedRepresentationAdapter() {
+ if (gmftBasedRepresentationItemProvider == null) {
+ gmftBasedRepresentationItemProvider = new GmftBasedRepresentationItemProvider(this);
+ }
+
+ return gmftBasedRepresentationItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DiagramExpansionItemProvider diagramExpansionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDiagramExpansionAdapter() {
+ if (diagramExpansionItemProvider == null) {
+ diagramExpansionItemProvider = new DiagramExpansionItemProvider(this);
+ }
+
+ return diagramExpansionItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (representationItemProvider != null) representationItemProvider.dispose();
+ if (compartmentsItemProvider != null) compartmentsItemProvider.dispose();
+ if (representationLibraryItemProvider != null) representationLibraryItemProvider.dispose();
+ if (compartmentLibraryItemProvider != null) compartmentLibraryItemProvider.dispose();
+ if (useContextItemProvider != null) useContextItemProvider.dispose();
+ if (gmftBasedRepresentationItemProvider != null) gmftBasedRepresentationItemProvider.dispose();
+ if (diagramExpansionItemProvider != null) diagramExpansionItemProvider.dispose();
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/GmftBasedRepresentationItemProvider.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/GmftBasedRepresentationItemProvider.java
new file mode 100644
index 00000000000..8ce58db0b95
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/GmftBasedRepresentationItemProvider.java
@@ -0,0 +1,132 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class GmftBasedRepresentationItemProvider extends RepresentationItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public GmftBasedRepresentationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addReusedIdPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Reused Id feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addReusedIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GmftBasedRepresentation_reusedId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GmftBasedRepresentation_reusedId_feature", "_UI_GmftBasedRepresentation_type"),
+ ExpansionModelPackage.Literals.GMFT_BASED_REPRESENTATION__REUSED_ID,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns GmftBasedRepresentation.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/GmftBasedRepresentation"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((GmftBasedRepresentation)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_GmftBasedRepresentation_type") :
+ getString("_UI_GmftBasedRepresentation_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(GmftBasedRepresentation.class)) {
+ case ExpansionModelPackage.GMFT_BASED_REPRESENTATION__REUSED_ID:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/LibraryItemProvider.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/LibraryItemProvider.java
new file mode 100644
index 00000000000..20baa8c4410
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/LibraryItemProvider.java
@@ -0,0 +1,160 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library;
+
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider.ExpansionModelEditPlugin;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class LibraryItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public LibraryItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Library_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Library_name_feature", "_UI_Library_type"),
+ ExpansionModelPackage.Literals.LIBRARY__NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Library.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Library"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Library)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Library_type") :
+ getString("_UI_Library_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(Library.class)) {
+ case ExpansionModelPackage.LIBRARY__NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ExpansionModelEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/RepresentationItemProvider.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/RepresentationItemProvider.java
new file mode 100644
index 00000000000..903862ef585
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/RepresentationItemProvider.java
@@ -0,0 +1,279 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation;
+
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider.ExpansionModelEditPlugin;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class RepresentationItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RepresentationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addEditPartQualifiedNamePropertyDescriptor(object);
+ addKindPropertyDescriptor(object);
+ addGraphicalElementTypePropertyDescriptor(object);
+ addCompartmentsPropertyDescriptor(object);
+ addNamePropertyDescriptor(object);
+ addViewFactoryPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Edit Part Qualified Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addEditPartQualifiedNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Representation_editPartQualifiedName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Representation_editPartQualifiedName_feature", "_UI_Representation_type"),
+ ExpansionModelPackage.Literals.REPRESENTATION__EDIT_PART_QUALIFIED_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Kind feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addKindPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Representation_kind_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Representation_kind_feature", "_UI_Representation_type"),
+ ExpansionModelPackage.Literals.REPRESENTATION__KIND,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Graphical Element Type feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addGraphicalElementTypePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Representation_graphicalElementType_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Representation_graphicalElementType_feature", "_UI_Representation_type"),
+ ExpansionModelPackage.Literals.REPRESENTATION__GRAPHICAL_ELEMENT_TYPE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Compartments feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addCompartmentsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Representation_compartments_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Representation_compartments_feature", "_UI_Representation_type"),
+ ExpansionModelPackage.Literals.REPRESENTATION__COMPARTMENTS,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Representation_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Representation_name_feature", "_UI_Representation_type"),
+ ExpansionModelPackage.Literals.REPRESENTATION__NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the View Factory feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addViewFactoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Representation_viewFactory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Representation_viewFactory_feature", "_UI_Representation_type"),
+ ExpansionModelPackage.Literals.REPRESENTATION__VIEW_FACTORY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Representation.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Representation"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Representation)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Representation_type") :
+ getString("_UI_Representation_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(Representation.class)) {
+ case ExpansionModelPackage.REPRESENTATION__EDIT_PART_QUALIFIED_NAME:
+ case ExpansionModelPackage.REPRESENTATION__KIND:
+ case ExpansionModelPackage.REPRESENTATION__GRAPHICAL_ELEMENT_TYPE:
+ case ExpansionModelPackage.REPRESENTATION__NAME:
+ case ExpansionModelPackage.REPRESENTATION__VIEW_FACTORY:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ExpansionModelEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/RepresentationLibraryItemProvider.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/RepresentationLibraryItemProvider.java
new file mode 100644
index 00000000000..fa155ca9270
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/RepresentationLibraryItemProvider.java
@@ -0,0 +1,150 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelFactory;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class RepresentationLibraryItemProvider extends LibraryItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RepresentationLibraryItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(ExpansionModelPackage.Literals.REPRESENTATION_LIBRARY__REPRESENTATIONS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns RepresentationLibrary.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/RepresentationLibrary"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((RepresentationLibrary)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_RepresentationLibrary_type") :
+ getString("_UI_RepresentationLibrary_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(RepresentationLibrary.class)) {
+ case ExpansionModelPackage.REPRESENTATION_LIBRARY__REPRESENTATIONS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (ExpansionModelPackage.Literals.REPRESENTATION_LIBRARY__REPRESENTATIONS,
+ ExpansionModelFactory.eINSTANCE.createRepresentation()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (ExpansionModelPackage.Literals.REPRESENTATION_LIBRARY__REPRESENTATIONS,
+ ExpansionModelFactory.eINSTANCE.createGmftBasedRepresentation()));
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/UseContextItemProvider.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/UseContextItemProvider.java
new file mode 100644
index 00000000000..3cfc7536b5e
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/provider/UseContextItemProvider.java
@@ -0,0 +1,248 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelFactory;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext;
+
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider.ExpansionModelEditPlugin;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class UseContextItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UseContextItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addDiagramTypePropertyDescriptor(object);
+ addRepresentationsPropertyDescriptor(object);
+ addNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Diagram Type feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addDiagramTypePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_UseContext_diagramType_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_UseContext_diagramType_feature", "_UI_UseContext_type"),
+ ExpansionModelPackage.Literals.USE_CONTEXT__DIAGRAM_TYPE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Representations feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRepresentationsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_UseContext_representations_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_UseContext_representations_feature", "_UI_UseContext_type"),
+ ExpansionModelPackage.Literals.USE_CONTEXT__REPRESENTATIONS,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_UseContext_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_UseContext_name_feature", "_UI_UseContext_type"),
+ ExpansionModelPackage.Literals.USE_CONTEXT__NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(ExpansionModelPackage.Literals.USE_CONTEXT__GMFT_REPRESENTATIONS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns UseContext.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/UseContext"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((UseContext)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_UseContext_type") :
+ getString("_UI_UseContext_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(UseContext.class)) {
+ case ExpansionModelPackage.USE_CONTEXT__DIAGRAM_TYPE:
+ case ExpansionModelPackage.USE_CONTEXT__NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case ExpansionModelPackage.USE_CONTEXT__GMFT_REPRESENTATIONS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (ExpansionModelPackage.Literals.USE_CONTEXT__GMFT_REPRESENTATIONS,
+ ExpansionModelFactory.eINSTANCE.createGmftBasedRepresentation()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ExpansionModelEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/expansion/expansionmodel/provider/ExpansionModelEditPlugin.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/expansion/expansionmodel/provider/ExpansionModelEditPlugin.java
new file mode 100644
index 00000000000..f249aa6bf20
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src/org/eclipse/papyrus/infra/gmfdiag/expansion/expansionmodel/provider/ExpansionModelEditPlugin.java
@@ -0,0 +1,89 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the ExpansionModel edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class ExpansionModelEditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final ExpansionModelEditPlugin INSTANCE = new ExpansionModelEditPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelEditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.classpath b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.classpath
new file mode 100644
index 00000000000..a0c6dd9cee8
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.project b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.project
new file mode 100644
index 00000000000..28ffbba4a5a
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.infra.gmfdiag.expansion.editor</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/META-INF/MANIFEST.MF b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..ee4fb0501d5
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/META-INF/MANIFEST.MF
@@ -0,0 +1,19 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.papyrus.infra.gmfdiag.expansion.editor;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-ClassPath: .
+Bundle-Activator: org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.presentation.ExpansionModelEditorPlugin$Implementation
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Export-Package: org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation,
+ org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.presentation
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.core.resources;visibility:=reexport,
+ org.eclipse.papyrus.infra.gmfdiag.expansion.edit;visibility:=reexport,
+ org.eclipse.emf.ecore.xmi;visibility:=reexport,
+ org.eclipse.emf.edit.ui;visibility:=reexport,
+ org.eclipse.ui.ide;visibility:=reexport
+Bundle-ActivationPolicy: lazy
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/about.html b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/about.html
new file mode 100644
index 00000000000..209103075a7
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>November 14, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/build.properties b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/build.properties
new file mode 100644
index 00000000000..0f81e49d110
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/build.properties
@@ -0,0 +1,10 @@
+#
+
+bin.includes = .,\
+ icons/,\
+ META-INF/,\
+ plugin.xml,\
+ plugin.properties
+jars.compile.order = .
+source.. = src/
+output.. = bin
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/icons/full/obj16/ExpansionModelModelFile.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/icons/full/obj16/ExpansionModelModelFile.gif
new file mode 100644
index 00000000000..557e65ee0a5
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/icons/full/obj16/ExpansionModelModelFile.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/icons/full/wizban/NewExpansionModel.gif b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/icons/full/wizban/NewExpansionModel.gif
new file mode 100644
index 00000000000..71581772c88
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/icons/full/wizban/NewExpansionModel.gif
Binary files differ
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/plugin.properties b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/plugin.properties
new file mode 100644
index 00000000000..d7a03a8a9c2
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/plugin.properties
@@ -0,0 +1,53 @@
+#
+
+pluginName = ExpansionModel Editor
+providerName = www.example.org
+
+_UI_ExpansionModelEditor_menu = &ExpansionModel Editor
+
+_UI_CreateChild_menu_item = &New Child
+_UI_CreateSibling_menu_item = N&ew Sibling
+
+_UI_ShowPropertiesView_menu_item = Show &Properties View
+_UI_RefreshViewer_menu_item = &Refresh
+
+_UI_SelectionPage_label = Selection
+_UI_ParentPage_label = Parent
+_UI_ListPage_label = List
+_UI_TreePage_label = Tree
+_UI_TablePage_label = Table
+_UI_TreeWithColumnsPage_label = Tree with Columns
+_UI_ObjectColumn_label = Object
+_UI_SelfColumn_label = Self
+
+_UI_NoObjectSelected = Selected Nothing
+_UI_SingleObjectSelected = Selected Object: {0}
+_UI_MultiObjectSelected = Selected {0} Objects
+
+_UI_OpenEditorError_label = Open Editor
+
+_UI_Wizard_category = Example EMF Model Creation Wizards
+
+_UI_CreateModelError_message = Problems encountered in file "{0}"
+
+_UI_ExpansionModelModelWizard_label = ExpansionModel Model
+_UI_ExpansionModelModelWizard_description = Create a new ExpansionModel model
+
+_UI_ExpansionModelEditor_label = ExpansionModel Model Editor
+
+_UI_ExpansionModelEditorFilenameDefaultBase = My
+_UI_ExpansionModelEditorFilenameExtensions = expansionmodel
+
+_UI_Wizard_label = New
+
+_WARN_FilenameExtension = The file name must end in ''.{0}''
+_WARN_FilenameExtensions = The file name must have one of the following extensions: {0}
+
+_UI_ModelObject = &Model Object
+_UI_XMLEncoding = &XML Encoding
+_UI_XMLEncodingChoices = UTF-8 ASCII UTF-16 UTF-16BE UTF-16LE ISO-8859-1
+_UI_Wizard_initial_object_description = Select a model object to create
+
+_UI_FileConflict_label = File Conflict
+_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes?
+
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/plugin.xml b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/plugin.xml
new file mode 100644
index 00000000000..ffc6bd2d80a
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/plugin.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+
+<!--
+-->
+
+<plugin>
+
+ <extension point="org.eclipse.ui.newWizards">
+ <!-- @generated expansionModel -->
+ <category
+ id="org.eclipse.emf.ecore.Wizard.category.ID"
+ name="%_UI_Wizard_category"/>
+ <wizard
+ id="org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation.ExpansionModelModelWizardID"
+ name="%_UI_ExpansionModelModelWizard_label"
+ class="org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation.ExpansionModelModelWizard"
+ category="org.eclipse.emf.ecore.Wizard.category.ID"
+ icon="icons/full/obj16/ExpansionModelModelFile.gif">
+ <description>%_UI_ExpansionModelModelWizard_description</description>
+ <selection class="org.eclipse.core.resources.IResource"/>
+ </wizard>
+ </extension>
+
+ <extension point="org.eclipse.ui.editors">
+ <!-- @generated expansionModel -->
+ <editor
+ id="org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation.ExpansionModelEditorID"
+ name="%_UI_ExpansionModelEditor_label"
+ icon="icons/full/obj16/ExpansionModelModelFile.gif"
+ extensions="expansionmodel"
+ class="org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation.ExpansionModelEditor"
+ contributorClass="org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation.ExpansionModelActionBarContributor">
+ </editor>
+ </extension>
+</plugin>
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelActionBarContributor.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelActionBarContributor.java
new file mode 100644
index 00000000000..0da9d0c468b
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelActionBarContributor.java
@@ -0,0 +1,425 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.emf.common.ui.viewer.IViewerProvider;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.edit.domain.IEditingDomainProvider;
+
+import org.eclipse.emf.edit.ui.action.ControlAction;
+import org.eclipse.emf.edit.ui.action.CreateChildAction;
+import org.eclipse.emf.edit.ui.action.CreateSiblingAction;
+import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor;
+import org.eclipse.emf.edit.ui.action.LoadResourceAction;
+import org.eclipse.emf.edit.ui.action.ValidateAction;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.ActionContributionItem;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.IContributionManager;
+import org.eclipse.jface.action.IMenuListener;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.action.SubContributionItem;
+
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.ISelectionProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.Viewer;
+
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.presentation.ExpansionModelEditorPlugin;
+
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.PartInitException;
+
+/**
+ * This is the action bar contributor for the ExpansionModel model editor.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExpansionModelActionBarContributor
+ extends EditingDomainActionBarContributor
+ implements ISelectionChangedListener {
+ /**
+ * This keeps track of the active editor.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IEditorPart activeEditorPart;
+
+ /**
+ * This keeps track of the current selection provider.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ISelectionProvider selectionProvider;
+
+ /**
+ * This action opens the Properties view.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IAction showPropertiesViewAction =
+ new Action(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) {
+ @Override
+ public void run() {
+ try {
+ getPage().showView("org.eclipse.ui.views.PropertySheet");
+ }
+ catch (PartInitException exception) {
+ ExpansionModelEditorPlugin.INSTANCE.log(exception);
+ }
+ }
+ };
+
+ /**
+ * This action refreshes the viewer of the current editor if the editor
+ * implements {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IAction refreshViewerAction =
+ new Action(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) {
+ @Override
+ public boolean isEnabled() {
+ return activeEditorPart instanceof IViewerProvider;
+ }
+
+ @Override
+ public void run() {
+ if (activeEditorPart instanceof IViewerProvider) {
+ Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer();
+ if (viewer != null) {
+ viewer.refresh();
+ }
+ }
+ }
+ };
+
+ /**
+ * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor
+ * generated for the current selection by the item provider.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<IAction> createChildActions;
+
+ /**
+ * This is the menu manager into which menu contribution items should be added for CreateChild actions.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IMenuManager createChildMenuManager;
+
+ /**
+ * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} corresponding to each descriptor
+ * generated for the current selection by the item provider.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<IAction> createSiblingActions;
+
+ /**
+ * This is the menu manager into which menu contribution items should be added for CreateSibling actions.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IMenuManager createSiblingMenuManager;
+
+ /**
+ * This creates an instance of the contributor.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelActionBarContributor() {
+ super(ADDITIONS_LAST_STYLE);
+ loadResourceAction = new LoadResourceAction();
+ validateAction = new ValidateAction();
+ controlAction = new ControlAction();
+ }
+
+ /**
+ * This adds Separators for editor additions to the tool bar.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void contributeToToolBar(IToolBarManager toolBarManager) {
+ toolBarManager.add(new Separator("expansionmodel-settings"));
+ toolBarManager.add(new Separator("expansionmodel-additions"));
+ }
+
+ /**
+ * This adds to the menu bar a menu and some separators for editor additions,
+ * as well as the sub-menus for object creation items.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void contributeToMenu(IMenuManager menuManager) {
+ super.contributeToMenu(menuManager);
+
+ IMenuManager submenuManager = new MenuManager(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ExpansionModelEditor_menu"), "org.eclipse.papyrus.infra.gmfdiag.common.expansionmodelMenuID");
+ menuManager.insertAfter("additions", submenuManager);
+ submenuManager.add(new Separator("settings"));
+ submenuManager.add(new Separator("actions"));
+ submenuManager.add(new Separator("additions"));
+ submenuManager.add(new Separator("additions-end"));
+
+ // Prepare for CreateChild item addition or removal.
+ //
+ createChildMenuManager = new MenuManager(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item"));
+ submenuManager.insertBefore("additions", createChildMenuManager);
+
+ // Prepare for CreateSibling item addition or removal.
+ //
+ createSiblingMenuManager = new MenuManager(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item"));
+ submenuManager.insertBefore("additions", createSiblingMenuManager);
+
+ // Force an update because Eclipse hides empty menus now.
+ //
+ submenuManager.addMenuListener
+ (new IMenuListener() {
+ public void menuAboutToShow(IMenuManager menuManager) {
+ menuManager.updateAll(true);
+ }
+ });
+
+ addGlobalActions(submenuManager);
+ }
+
+ /**
+ * When the active editor changes, this remembers the change and registers with it as a selection provider.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void setActiveEditor(IEditorPart part) {
+ super.setActiveEditor(part);
+ activeEditorPart = part;
+
+ // Switch to the new selection provider.
+ //
+ if (selectionProvider != null) {
+ selectionProvider.removeSelectionChangedListener(this);
+ }
+ if (part == null) {
+ selectionProvider = null;
+ }
+ else {
+ selectionProvider = part.getSite().getSelectionProvider();
+ selectionProvider.addSelectionChangedListener(this);
+
+ // Fake a selection changed event to update the menus.
+ //
+ if (selectionProvider.getSelection() != null) {
+ selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection()));
+ }
+ }
+ }
+
+ /**
+ * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener},
+ * handling {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and siblings
+ * that can be added to the selected object and updating the menus accordingly.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void selectionChanged(SelectionChangedEvent event) {
+ // Remove any menu items for old selection.
+ //
+ if (createChildMenuManager != null) {
+ depopulateManager(createChildMenuManager, createChildActions);
+ }
+ if (createSiblingMenuManager != null) {
+ depopulateManager(createSiblingMenuManager, createSiblingActions);
+ }
+
+ // Query the new selection for appropriate new child/sibling descriptors
+ //
+ Collection<?> newChildDescriptors = null;
+ Collection<?> newSiblingDescriptors = null;
+
+ ISelection selection = event.getSelection();
+ if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) {
+ Object object = ((IStructuredSelection)selection).getFirstElement();
+
+ EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain();
+
+ newChildDescriptors = domain.getNewChildDescriptors(object, null);
+ newSiblingDescriptors = domain.getNewChildDescriptors(null, object);
+ }
+
+ // Generate actions for selection; populate and redraw the menus.
+ //
+ createChildActions = generateCreateChildActions(newChildDescriptors, selection);
+ createSiblingActions = generateCreateSiblingActions(newSiblingDescriptors, selection);
+
+ if (createChildMenuManager != null) {
+ populateManager(createChildMenuManager, createChildActions, null);
+ createChildMenuManager.update(true);
+ }
+ if (createSiblingMenuManager != null) {
+ populateManager(createSiblingMenuManager, createSiblingActions, null);
+ createSiblingMenuManager.update(true);
+ }
+ }
+
+ /**
+ * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in <code>descriptors</code>,
+ * and returns the collection of these actions.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<IAction> generateCreateChildActions(Collection<?> descriptors, ISelection selection) {
+ Collection<IAction> actions = new ArrayList<IAction>();
+ if (descriptors != null) {
+ for (Object descriptor : descriptors) {
+ actions.add(new CreateChildAction(activeEditorPart, selection, descriptor));
+ }
+ }
+ return actions;
+ }
+
+ /**
+ * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in <code>descriptors</code>,
+ * and returns the collection of these actions.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<IAction> generateCreateSiblingActions(Collection<?> descriptors, ISelection selection) {
+ Collection<IAction> actions = new ArrayList<IAction>();
+ if (descriptors != null) {
+ for (Object descriptor : descriptors) {
+ actions.add(new CreateSiblingAction(activeEditorPart, selection, descriptor));
+ }
+ }
+ return actions;
+ }
+
+ /**
+ * This populates the specified <code>manager</code> with {@link org.eclipse.jface.action.ActionContributionItem}s
+ * based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection,
+ * by inserting them before the specified contribution item <code>contributionID</code>.
+ * If <code>contributionID</code> is <code>null</code>, they are simply added.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void populateManager(IContributionManager manager, Collection<? extends IAction> actions, String contributionID) {
+ if (actions != null) {
+ for (IAction action : actions) {
+ if (contributionID != null) {
+ manager.insertBefore(contributionID, action);
+ }
+ else {
+ manager.add(action);
+ }
+ }
+ }
+ }
+
+ /**
+ * This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.ActionContributionItem}s
+ * based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void depopulateManager(IContributionManager manager, Collection<? extends IAction> actions) {
+ if (actions != null) {
+ IContributionItem[] items = manager.getItems();
+ for (int i = 0; i < items.length; i++) {
+ // Look into SubContributionItems
+ //
+ IContributionItem contributionItem = items[i];
+ while (contributionItem instanceof SubContributionItem) {
+ contributionItem = ((SubContributionItem)contributionItem).getInnerItem();
+ }
+
+ // Delete the ActionContributionItems with matching action.
+ //
+ if (contributionItem instanceof ActionContributionItem) {
+ IAction action = ((ActionContributionItem)contributionItem).getAction();
+ if (actions.contains(action)) {
+ manager.remove(contributionItem);
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * This populates the pop-up menu before it appears.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void menuAboutToShow(IMenuManager menuManager) {
+ super.menuAboutToShow(menuManager);
+ MenuManager submenuManager = null;
+
+ submenuManager = new MenuManager(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item"));
+ populateManager(submenuManager, createChildActions, null);
+ menuManager.insertBefore("edit", submenuManager);
+
+ submenuManager = new MenuManager(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item"));
+ populateManager(submenuManager, createSiblingActions, null);
+ menuManager.insertBefore("edit", submenuManager);
+ }
+
+ /**
+ * This inserts global actions before the "additions-end" separator.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void addGlobalActions(IMenuManager menuManager) {
+ menuManager.insertAfter("additions-end", new Separator("ui-actions"));
+ menuManager.insertAfter("ui-actions", showPropertiesViewAction);
+
+ refreshViewerAction.setEnabled(refreshViewerAction.isEnabled());
+ menuManager.insertAfter("ui-actions", refreshViewerAction);
+
+ super.addGlobalActions(menuManager);
+ }
+
+ /**
+ * This ensures that a delete action will clean up all references to deleted objects.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected boolean removeAllReferencesOnDelete() {
+ return true;
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelEditor.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelEditor.java
new file mode 100644
index 00000000000..ded0f879321
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelEditor.java
@@ -0,0 +1,1820 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation;
+
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.EventObject;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceChangeEvent;
+import org.eclipse.core.resources.IResourceChangeListener;
+import org.eclipse.core.resources.IResourceDelta;
+import org.eclipse.core.resources.IResourceDeltaVisitor;
+import org.eclipse.core.resources.ResourcesPlugin;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+
+import org.eclipse.jface.action.IMenuListener;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.IStatusLineManager;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
+
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.dialogs.ProgressMonitorDialog;
+
+import org.eclipse.jface.util.LocalSelectionTransfer;
+
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.ISelectionProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ListViewer;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.jface.viewers.TableLayout;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.viewers.Viewer;
+
+import org.eclipse.swt.SWT;
+
+import org.eclipse.swt.custom.CTabFolder;
+
+import org.eclipse.swt.dnd.DND;
+import org.eclipse.swt.dnd.FileTransfer;
+import org.eclipse.swt.dnd.Transfer;
+
+import org.eclipse.swt.events.ControlAdapter;
+import org.eclipse.swt.events.ControlEvent;
+
+import org.eclipse.swt.graphics.Point;
+
+import org.eclipse.swt.layout.FillLayout;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.Tree;
+import org.eclipse.swt.widgets.TreeColumn;
+
+import org.eclipse.ui.IActionBars;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IPartListener;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.PartInitException;
+
+import org.eclipse.ui.dialogs.SaveAsDialog;
+
+import org.eclipse.ui.ide.IGotoMarker;
+
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.ui.part.MultiPageEditorPart;
+
+import org.eclipse.ui.views.contentoutline.ContentOutline;
+import org.eclipse.ui.views.contentoutline.ContentOutlinePage;
+import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
+
+import org.eclipse.ui.views.properties.IPropertySheetPage;
+import org.eclipse.ui.views.properties.PropertySheet;
+import org.eclipse.ui.views.properties.PropertySheetPage;
+
+import org.eclipse.emf.common.command.BasicCommandStack;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.common.command.CommandStack;
+import org.eclipse.emf.common.command.CommandStackListener;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.ui.MarkerHelper;
+import org.eclipse.emf.common.ui.ViewerPane;
+
+import org.eclipse.emf.common.ui.editor.ProblemEditorPart;
+
+import org.eclipse.emf.common.ui.viewer.IViewerProvider;
+
+import org.eclipse.emf.common.util.BasicDiagnostic;
+import org.eclipse.emf.common.util.Diagnostic;
+import org.eclipse.emf.common.util.URI;
+
+
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+
+import org.eclipse.emf.ecore.util.EContentAdapter;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.edit.domain.IEditingDomainProvider;
+
+import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;
+
+import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory;
+
+import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor;
+
+import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor;
+
+import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter;
+import org.eclipse.emf.edit.ui.dnd.LocalTransfer;
+import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter;
+
+import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;
+import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
+import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider;
+
+import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper;
+import org.eclipse.emf.edit.ui.util.EditUIUtil;
+
+import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.provider.ExpansionModelItemProviderAdapterFactory;
+
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.presentation.ExpansionModelEditorPlugin;
+
+import org.eclipse.ui.actions.WorkspaceModifyOperation;
+
+
+/**
+ * This is an example of a ExpansionModel model editor.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExpansionModelEditor
+ extends MultiPageEditorPart
+ implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker {
+ /**
+ * This keeps track of the editing domain that is used to track all changes to the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AdapterFactoryEditingDomain editingDomain;
+
+ /**
+ * This is the one adapter factory used for providing views of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory adapterFactory;
+
+ /**
+ * This is the content outline page.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IContentOutlinePage contentOutlinePage;
+
+ /**
+ * This is a kludge...
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IStatusLineManager contentOutlineStatusLineManager;
+
+ /**
+ * This is the content outline page's viewer.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TreeViewer contentOutlineViewer;
+
+ /**
+ * This is the property sheet page.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected List<PropertySheetPage> propertySheetPages = new ArrayList<PropertySheetPage>();
+
+ /**
+ * This is the viewer that shadows the selection in the content outline.
+ * The parent relation must be correctly defined for this to work.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TreeViewer selectionViewer;
+
+ /**
+ * This inverts the roll of parent and child in the content provider and show parents as a tree.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TreeViewer parentViewer;
+
+ /**
+ * This shows how a tree view works.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TreeViewer treeViewer;
+
+ /**
+ * This shows how a list view works.
+ * A list viewer doesn't support icons.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ListViewer listViewer;
+
+ /**
+ * This shows how a table view works.
+ * A table can be used as a list with icons.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TableViewer tableViewer;
+
+ /**
+ * This shows how a tree view with columns works.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TreeViewer treeViewerWithColumns;
+
+ /**
+ * This keeps track of the active viewer pane, in the book.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ViewerPane currentViewerPane;
+
+ /**
+ * This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content outline viewer.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Viewer currentViewer;
+
+ /**
+ * This listens to which ever viewer is active.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ISelectionChangedListener selectionChangedListener;
+
+ /**
+ * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this editor.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<ISelectionChangedListener> selectionChangedListeners = new ArrayList<ISelectionChangedListener>();
+
+ /**
+ * This keeps track of the selection of the editor as a whole.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ISelection editorSelection = StructuredSelection.EMPTY;
+
+ /**
+ * The MarkerHelper is responsible for creating workspace resource markers presented
+ * in Eclipse's Problems View.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MarkerHelper markerHelper = new EditUIMarkerHelper();
+
+ /**
+ * This listens for when the outline becomes active
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IPartListener partListener =
+ new IPartListener() {
+ public void partActivated(IWorkbenchPart p) {
+ if (p instanceof ContentOutline) {
+ if (((ContentOutline)p).getCurrentPage() == contentOutlinePage) {
+ getActionBarContributor().setActiveEditor(ExpansionModelEditor.this);
+
+ setCurrentViewer(contentOutlineViewer);
+ }
+ }
+ else if (p instanceof PropertySheet) {
+ if (propertySheetPages.contains(((PropertySheet)p).getCurrentPage())) {
+ getActionBarContributor().setActiveEditor(ExpansionModelEditor.this);
+ handleActivate();
+ }
+ }
+ else if (p == ExpansionModelEditor.this) {
+ handleActivate();
+ }
+ }
+ public void partBroughtToTop(IWorkbenchPart p) {
+ // Ignore.
+ }
+ public void partClosed(IWorkbenchPart p) {
+ // Ignore.
+ }
+ public void partDeactivated(IWorkbenchPart p) {
+ // Ignore.
+ }
+ public void partOpened(IWorkbenchPart p) {
+ // Ignore.
+ }
+ };
+
+ /**
+ * Resources that have been removed since last activation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Resource> removedResources = new ArrayList<Resource>();
+
+ /**
+ * Resources that have been changed since last activation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Resource> changedResources = new ArrayList<Resource>();
+
+ /**
+ * Resources that have been saved.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Resource> savedResources = new ArrayList<Resource>();
+
+ /**
+ * Map to store the diagnostic associated with a resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Map<Resource, Diagnostic> resourceToDiagnosticMap = new LinkedHashMap<Resource, Diagnostic>();
+
+ /**
+ * Controls whether the problem indication should be updated.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected boolean updateProblemIndication = true;
+
+ /**
+ * Adapter used to update the problem indication when resources are demanded loaded.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EContentAdapter problemIndicationAdapter =
+ new EContentAdapter() {
+ @Override
+ public void notifyChanged(Notification notification) {
+ if (notification.getNotifier() instanceof Resource) {
+ switch (notification.getFeatureID(Resource.class)) {
+ case Resource.RESOURCE__IS_LOADED:
+ case Resource.RESOURCE__ERRORS:
+ case Resource.RESOURCE__WARNINGS: {
+ Resource resource = (Resource)notification.getNotifier();
+ Diagnostic diagnostic = analyzeResourceProblems(resource, null);
+ if (diagnostic.getSeverity() != Diagnostic.OK) {
+ resourceToDiagnosticMap.put(resource, diagnostic);
+ }
+ else {
+ resourceToDiagnosticMap.remove(resource);
+ }
+
+ if (updateProblemIndication) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ public void run() {
+ updateProblemIndication();
+ }
+ });
+ }
+ break;
+ }
+ }
+ }
+ else {
+ super.notifyChanged(notification);
+ }
+ }
+
+ @Override
+ protected void setTarget(Resource target) {
+ basicSetTarget(target);
+ }
+
+ @Override
+ protected void unsetTarget(Resource target) {
+ basicUnsetTarget(target);
+ resourceToDiagnosticMap.remove(target);
+ if (updateProblemIndication) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ public void run() {
+ updateProblemIndication();
+ }
+ });
+ }
+ }
+ };
+
+ /**
+ * This listens for workspace changes.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IResourceChangeListener resourceChangeListener =
+ new IResourceChangeListener() {
+ public void resourceChanged(IResourceChangeEvent event) {
+ IResourceDelta delta = event.getDelta();
+ try {
+ class ResourceDeltaVisitor implements IResourceDeltaVisitor {
+ protected ResourceSet resourceSet = editingDomain.getResourceSet();
+ protected Collection<Resource> changedResources = new ArrayList<Resource>();
+ protected Collection<Resource> removedResources = new ArrayList<Resource>();
+
+ public boolean visit(IResourceDelta delta) {
+ if (delta.getResource().getType() == IResource.FILE) {
+ if (delta.getKind() == IResourceDelta.REMOVED ||
+ delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) {
+ Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);
+ if (resource != null) {
+ if (delta.getKind() == IResourceDelta.REMOVED) {
+ removedResources.add(resource);
+ }
+ else if (!savedResources.remove(resource)) {
+ changedResources.add(resource);
+ }
+ }
+ }
+ return false;
+ }
+
+ return true;
+ }
+
+ public Collection<Resource> getChangedResources() {
+ return changedResources;
+ }
+
+ public Collection<Resource> getRemovedResources() {
+ return removedResources;
+ }
+ }
+
+ final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();
+ delta.accept(visitor);
+
+ if (!visitor.getRemovedResources().isEmpty()) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ public void run() {
+ removedResources.addAll(visitor.getRemovedResources());
+ if (!isDirty()) {
+ getSite().getPage().closeEditor(ExpansionModelEditor.this, false);
+ }
+ }
+ });
+ }
+
+ if (!visitor.getChangedResources().isEmpty()) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ public void run() {
+ changedResources.addAll(visitor.getChangedResources());
+ if (getSite().getPage().getActiveEditor() == ExpansionModelEditor.this) {
+ handleActivate();
+ }
+ }
+ });
+ }
+ }
+ catch (CoreException exception) {
+ ExpansionModelEditorPlugin.INSTANCE.log(exception);
+ }
+ }
+ };
+
+ /**
+ * Handles activation of the editor or it's associated views.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void handleActivate() {
+ // Recompute the read only state.
+ //
+ if (editingDomain.getResourceToReadOnlyMap() != null) {
+ editingDomain.getResourceToReadOnlyMap().clear();
+
+ // Refresh any actions that may become enabled or disabled.
+ //
+ setSelection(getSelection());
+ }
+
+ if (!removedResources.isEmpty()) {
+ if (handleDirtyConflict()) {
+ getSite().getPage().closeEditor(ExpansionModelEditor.this, false);
+ }
+ else {
+ removedResources.clear();
+ changedResources.clear();
+ savedResources.clear();
+ }
+ }
+ else if (!changedResources.isEmpty()) {
+ changedResources.removeAll(savedResources);
+ handleChangedResources();
+ changedResources.clear();
+ savedResources.clear();
+ }
+ }
+
+ /**
+ * Handles what to do with changed resources on activation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void handleChangedResources() {
+ if (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict())) {
+ if (isDirty()) {
+ changedResources.addAll(editingDomain.getResourceSet().getResources());
+ }
+ editingDomain.getCommandStack().flush();
+
+ updateProblemIndication = false;
+ for (Resource resource : changedResources) {
+ if (resource.isLoaded()) {
+ resource.unload();
+ try {
+ resource.load(Collections.EMPTY_MAP);
+ }
+ catch (IOException exception) {
+ if (!resourceToDiagnosticMap.containsKey(resource)) {
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
+ }
+ }
+ }
+ }
+
+ if (AdapterFactoryEditingDomain.isStale(editorSelection)) {
+ setSelection(StructuredSelection.EMPTY);
+ }
+
+ updateProblemIndication = true;
+ updateProblemIndication();
+ }
+ }
+
+ /**
+ * Updates the problems indication with the information described in the specified diagnostic.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void updateProblemIndication() {
+ if (updateProblemIndication) {
+ BasicDiagnostic diagnostic =
+ new BasicDiagnostic
+ (Diagnostic.OK,
+ "org.eclipse.papyrus.infra.gmfdiag.expansion.editor",
+ 0,
+ null,
+ new Object [] { editingDomain.getResourceSet() });
+ for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
+ if (childDiagnostic.getSeverity() != Diagnostic.OK) {
+ diagnostic.add(childDiagnostic);
+ }
+ }
+
+ int lastEditorPage = getPageCount() - 1;
+ if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
+ ((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);
+ if (diagnostic.getSeverity() != Diagnostic.OK) {
+ setActivePage(lastEditorPage);
+ }
+ }
+ else if (diagnostic.getSeverity() != Diagnostic.OK) {
+ ProblemEditorPart problemEditorPart = new ProblemEditorPart();
+ problemEditorPart.setDiagnostic(diagnostic);
+ problemEditorPart.setMarkerHelper(markerHelper);
+ try {
+ addPage(++lastEditorPage, problemEditorPart, getEditorInput());
+ setPageText(lastEditorPage, problemEditorPart.getPartName());
+ setActivePage(lastEditorPage);
+ showTabs();
+ }
+ catch (PartInitException exception) {
+ ExpansionModelEditorPlugin.INSTANCE.log(exception);
+ }
+ }
+
+ if (markerHelper.hasMarkers(editingDomain.getResourceSet())) {
+ markerHelper.deleteMarkers(editingDomain.getResourceSet());
+ if (diagnostic.getSeverity() != Diagnostic.OK) {
+ try {
+ markerHelper.createMarkers(diagnostic);
+ }
+ catch (CoreException exception) {
+ ExpansionModelEditorPlugin.INSTANCE.log(exception);
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Shows a dialog that asks if conflicting changes should be discarded.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected boolean handleDirtyConflict() {
+ return
+ MessageDialog.openQuestion
+ (getSite().getShell(),
+ getString("_UI_FileConflict_label"),
+ getString("_WARN_FileConflict"));
+ }
+
+ /**
+ * This creates a model editor.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelEditor() {
+ super();
+ initializeEditingDomain();
+ }
+
+ /**
+ * This sets up the editing domain for the model editor.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void initializeEditingDomain() {
+ // Create an adapter factory that yields item providers.
+ //
+ adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
+
+ adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new ExpansionModelItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
+
+ // Create the command stack that will notify this editor as commands are executed.
+ //
+ BasicCommandStack commandStack = new BasicCommandStack();
+
+ // Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus.
+ //
+ commandStack.addCommandStackListener
+ (new CommandStackListener() {
+ public void commandStackChanged(final EventObject event) {
+ getContainer().getDisplay().asyncExec
+ (new Runnable() {
+ public void run() {
+ firePropertyChange(IEditorPart.PROP_DIRTY);
+
+ // Try to select the affected objects.
+ //
+ Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand();
+ if (mostRecentCommand != null) {
+ setSelectionToViewer(mostRecentCommand.getAffectedObjects());
+ }
+ for (Iterator<PropertySheetPage> i = propertySheetPages.iterator(); i.hasNext(); ) {
+ PropertySheetPage propertySheetPage = i.next();
+ if (propertySheetPage.getControl().isDisposed()) {
+ i.remove();
+ }
+ else {
+ propertySheetPage.refresh();
+ }
+ }
+ }
+ });
+ }
+ });
+
+ // Create the editing domain with a special command stack.
+ //
+ editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>());
+ }
+
+ /**
+ * This is here for the listener to be able to call it.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void firePropertyChange(int action) {
+ super.firePropertyChange(action);
+ }
+
+ /**
+ * This sets the selection into whichever viewer is active.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSelectionToViewer(Collection<?> collection) {
+ final Collection<?> theSelection = collection;
+ // Make sure it's okay.
+ //
+ if (theSelection != null && !theSelection.isEmpty()) {
+ Runnable runnable =
+ new Runnable() {
+ public void run() {
+ // Try to select the items in the current content viewer of the editor.
+ //
+ if (currentViewer != null) {
+ currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
+ }
+ }
+ };
+ getSite().getShell().getDisplay().asyncExec(runnable);
+ }
+ }
+
+ /**
+ * This returns the editing domain as required by the {@link IEditingDomainProvider} interface.
+ * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain}
+ * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EditingDomain getEditingDomain() {
+ return editingDomain;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object [] getElements(Object object) {
+ Object parent = super.getParent(object);
+ return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object [] getChildren(Object object) {
+ Object parent = super.getParent(object);
+ return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean hasChildren(Object object) {
+ Object parent = super.getParent(object);
+ return parent != null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getParent(Object object) {
+ return null;
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCurrentViewerPane(ViewerPane viewerPane) {
+ if (currentViewerPane != viewerPane) {
+ if (currentViewerPane != null) {
+ currentViewerPane.showFocus(false);
+ }
+ currentViewerPane = viewerPane;
+ }
+ setCurrentViewer(currentViewerPane.getViewer());
+ }
+
+ /**
+ * This makes sure that one content viewer, either for the current page or the outline view, if it has focus,
+ * is the current one.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCurrentViewer(Viewer viewer) {
+ // If it is changing...
+ //
+ if (currentViewer != viewer) {
+ if (selectionChangedListener == null) {
+ // Create the listener on demand.
+ //
+ selectionChangedListener =
+ new ISelectionChangedListener() {
+ // This just notifies those things that are affected by the section.
+ //
+ public void selectionChanged(SelectionChangedEvent selectionChangedEvent) {
+ setSelection(selectionChangedEvent.getSelection());
+ }
+ };
+ }
+
+ // Stop listening to the old one.
+ //
+ if (currentViewer != null) {
+ currentViewer.removeSelectionChangedListener(selectionChangedListener);
+ }
+
+ // Start listening to the new one.
+ //
+ if (viewer != null) {
+ viewer.addSelectionChangedListener(selectionChangedListener);
+ }
+
+ // Remember it.
+ //
+ currentViewer = viewer;
+
+ // Set the editors selection based on the current viewer's selection.
+ //
+ setSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection());
+ }
+ }
+
+ /**
+ * This returns the viewer as required by the {@link IViewerProvider} interface.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Viewer getViewer() {
+ return currentViewer;
+ }
+
+ /**
+ * This creates a context menu for the viewer and adds a listener as well registering the menu for extension.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createContextMenuFor(StructuredViewer viewer) {
+ MenuManager contextMenu = new MenuManager("#PopUp");
+ contextMenu.add(new Separator("additions"));
+ contextMenu.setRemoveAllWhenShown(true);
+ contextMenu.addMenuListener(this);
+ Menu menu= contextMenu.createContextMenu(viewer.getControl());
+ viewer.getControl().setMenu(menu);
+ getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));
+
+ int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
+ Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance(), LocalSelectionTransfer.getTransfer(), FileTransfer.getInstance() };
+ viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer));
+ viewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, viewer));
+ }
+
+ /**
+ * This is the method called to load a resource into the editing domain's resource set based on the editor's input.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createModel() {
+ URI resourceURI = EditUIUtil.getURI(getEditorInput());
+ Exception exception = null;
+ Resource resource = null;
+ try {
+ // Load the resource through the editing domain.
+ //
+ resource = editingDomain.getResourceSet().getResource(resourceURI, true);
+ }
+ catch (Exception e) {
+ exception = e;
+ resource = editingDomain.getResourceSet().getResource(resourceURI, false);
+ }
+
+ Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
+ if (diagnostic.getSeverity() != Diagnostic.OK) {
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
+ }
+ editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
+ }
+
+ /**
+ * Returns a diagnostic describing the errors and warnings listed in the resource
+ * and the specified exception (if any).
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) {
+ if (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) {
+ BasicDiagnostic basicDiagnostic =
+ new BasicDiagnostic
+ (Diagnostic.ERROR,
+ "org.eclipse.papyrus.infra.gmfdiag.expansion.editor",
+ 0,
+ getString("_UI_CreateModelError_message", resource.getURI()),
+ new Object [] { exception == null ? (Object)resource : exception });
+ basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));
+ return basicDiagnostic;
+ }
+ else if (exception != null) {
+ return
+ new BasicDiagnostic
+ (Diagnostic.ERROR,
+ "org.eclipse.papyrus.infra.gmfdiag.expansion.editor",
+ 0,
+ getString("_UI_CreateModelError_message", resource.getURI()),
+ new Object[] { exception });
+ }
+ else {
+ return Diagnostic.OK_INSTANCE;
+ }
+ }
+
+ /**
+ * This is the method used by the framework to install your own controls.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void createPages() {
+ // Creates the model from the editor input
+ //
+ createModel();
+
+ // Only creates the other pages if there is something that can be edited
+ //
+ if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {
+ // Create a page for the selection tree view.
+ //
+ {
+ ViewerPane viewerPane =
+ new ViewerPane(getSite().getPage(), ExpansionModelEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ Tree tree = new Tree(composite, SWT.MULTI);
+ TreeViewer newTreeViewer = new TreeViewer(tree);
+ return newTreeViewer;
+ }
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
+ viewerPane.createControl(getContainer());
+
+ selectionViewer = (TreeViewer)viewerPane.getViewer();
+ selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
+
+ selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
+ selectionViewer.setInput(editingDomain.getResourceSet());
+ selectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
+ viewerPane.setTitle(editingDomain.getResourceSet());
+
+ new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);
+
+ createContextMenuFor(selectionViewer);
+ int pageIndex = addPage(viewerPane.getControl());
+ setPageText(pageIndex, getString("_UI_SelectionPage_label"));
+ }
+
+ // Create a page for the parent tree view.
+ //
+ {
+ ViewerPane viewerPane =
+ new ViewerPane(getSite().getPage(), ExpansionModelEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ Tree tree = new Tree(composite, SWT.MULTI);
+ TreeViewer newTreeViewer = new TreeViewer(tree);
+ return newTreeViewer;
+ }
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
+ viewerPane.createControl(getContainer());
+
+ parentViewer = (TreeViewer)viewerPane.getViewer();
+ parentViewer.setAutoExpandLevel(30);
+ parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory));
+ parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
+
+ createContextMenuFor(parentViewer);
+ int pageIndex = addPage(viewerPane.getControl());
+ setPageText(pageIndex, getString("_UI_ParentPage_label"));
+ }
+
+ // This is the page for the list viewer
+ //
+ {
+ ViewerPane viewerPane =
+ new ViewerPane(getSite().getPage(), ExpansionModelEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new ListViewer(composite);
+ }
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
+ viewerPane.createControl(getContainer());
+ listViewer = (ListViewer)viewerPane.getViewer();
+ listViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
+ listViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
+
+ createContextMenuFor(listViewer);
+ int pageIndex = addPage(viewerPane.getControl());
+ setPageText(pageIndex, getString("_UI_ListPage_label"));
+ }
+
+ // This is the page for the tree viewer
+ //
+ {
+ ViewerPane viewerPane =
+ new ViewerPane(getSite().getPage(), ExpansionModelEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TreeViewer(composite);
+ }
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
+ viewerPane.createControl(getContainer());
+ treeViewer = (TreeViewer)viewerPane.getViewer();
+ treeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
+ treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
+
+ new AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory);
+
+ createContextMenuFor(treeViewer);
+ int pageIndex = addPage(viewerPane.getControl());
+ setPageText(pageIndex, getString("_UI_TreePage_label"));
+ }
+
+ // This is the page for the table viewer.
+ //
+ {
+ ViewerPane viewerPane =
+ new ViewerPane(getSite().getPage(), ExpansionModelEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TableViewer(composite);
+ }
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
+ viewerPane.createControl(getContainer());
+ tableViewer = (TableViewer)viewerPane.getViewer();
+
+ Table table = tableViewer.getTable();
+ TableLayout layout = new TableLayout();
+ table.setLayout(layout);
+ table.setHeaderVisible(true);
+ table.setLinesVisible(true);
+
+ TableColumn objectColumn = new TableColumn(table, SWT.NONE);
+ layout.addColumnData(new ColumnWeightData(3, 100, true));
+ objectColumn.setText(getString("_UI_ObjectColumn_label"));
+ objectColumn.setResizable(true);
+
+ TableColumn selfColumn = new TableColumn(table, SWT.NONE);
+ layout.addColumnData(new ColumnWeightData(2, 100, true));
+ selfColumn.setText(getString("_UI_SelfColumn_label"));
+ selfColumn.setResizable(true);
+
+ tableViewer.setColumnProperties(new String [] {"a", "b"});
+ tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
+ tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
+
+ createContextMenuFor(tableViewer);
+ int pageIndex = addPage(viewerPane.getControl());
+ setPageText(pageIndex, getString("_UI_TablePage_label"));
+ }
+
+ // This is the page for the table tree viewer.
+ //
+ {
+ ViewerPane viewerPane =
+ new ViewerPane(getSite().getPage(), ExpansionModelEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TreeViewer(composite);
+ }
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
+ viewerPane.createControl(getContainer());
+
+ treeViewerWithColumns = (TreeViewer)viewerPane.getViewer();
+
+ Tree tree = treeViewerWithColumns.getTree();
+ tree.setLayoutData(new FillLayout());
+ tree.setHeaderVisible(true);
+ tree.setLinesVisible(true);
+
+ TreeColumn objectColumn = new TreeColumn(tree, SWT.NONE);
+ objectColumn.setText(getString("_UI_ObjectColumn_label"));
+ objectColumn.setResizable(true);
+ objectColumn.setWidth(250);
+
+ TreeColumn selfColumn = new TreeColumn(tree, SWT.NONE);
+ selfColumn.setText(getString("_UI_SelfColumn_label"));
+ selfColumn.setResizable(true);
+ selfColumn.setWidth(200);
+
+ treeViewerWithColumns.setColumnProperties(new String [] {"a", "b"});
+ treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
+ treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
+
+ createContextMenuFor(treeViewerWithColumns);
+ int pageIndex = addPage(viewerPane.getControl());
+ setPageText(pageIndex, getString("_UI_TreeWithColumnsPage_label"));
+ }
+
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ public void run() {
+ setActivePage(0);
+ }
+ });
+ }
+
+ // Ensures that this editor will only display the page's tab
+ // area if there are more than one page
+ //
+ getContainer().addControlListener
+ (new ControlAdapter() {
+ boolean guard = false;
+ @Override
+ public void controlResized(ControlEvent event) {
+ if (!guard) {
+ guard = true;
+ hideTabs();
+ guard = false;
+ }
+ }
+ });
+
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ public void run() {
+ updateProblemIndication();
+ }
+ });
+ }
+
+ /**
+ * If there is just one page in the multi-page editor part,
+ * this hides the single tab at the bottom.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void hideTabs() {
+ if (getPageCount() <= 1) {
+ setPageText(0, "");
+ if (getContainer() instanceof CTabFolder) {
+ ((CTabFolder)getContainer()).setTabHeight(1);
+ Point point = getContainer().getSize();
+ getContainer().setSize(point.x, point.y + 6);
+ }
+ }
+ }
+
+ /**
+ * If there is more than one page in the multi-page editor part,
+ * this shows the tabs at the bottom.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void showTabs() {
+ if (getPageCount() > 1) {
+ setPageText(0, getString("_UI_SelectionPage_label"));
+ if (getContainer() instanceof CTabFolder) {
+ ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT);
+ Point point = getContainer().getSize();
+ getContainer().setSize(point.x, point.y - 6);
+ }
+ }
+ }
+
+ /**
+ * This is used to track the active viewer.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void pageChange(int pageIndex) {
+ super.pageChange(pageIndex);
+
+ if (contentOutlinePage != null) {
+ handleContentOutlineSelection(contentOutlinePage.getSelection());
+ }
+ }
+
+ /**
+ * This is how the framework determines which interfaces we implement.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("rawtypes")
+ @Override
+ public Object getAdapter(Class key) {
+ if (key.equals(IContentOutlinePage.class)) {
+ return showOutlineView() ? getContentOutlinePage() : null;
+ }
+ else if (key.equals(IPropertySheetPage.class)) {
+ return getPropertySheetPage();
+ }
+ else if (key.equals(IGotoMarker.class)) {
+ return this;
+ }
+ else {
+ return super.getAdapter(key);
+ }
+ }
+
+ /**
+ * This accesses a cached version of the content outliner.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IContentOutlinePage getContentOutlinePage() {
+ if (contentOutlinePage == null) {
+ // The content outline is just a tree.
+ //
+ class MyContentOutlinePage extends ContentOutlinePage {
+ @Override
+ public void createControl(Composite parent) {
+ super.createControl(parent);
+ contentOutlineViewer = getTreeViewer();
+ contentOutlineViewer.addSelectionChangedListener(this);
+
+ // Set up the tree viewer.
+ //
+ contentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
+ contentOutlineViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
+ contentOutlineViewer.setInput(editingDomain.getResourceSet());
+
+ // Make sure our popups work.
+ //
+ createContextMenuFor(contentOutlineViewer);
+
+ if (!editingDomain.getResourceSet().getResources().isEmpty()) {
+ // Select the root object in the view.
+ //
+ contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
+ }
+ }
+
+ @Override
+ public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) {
+ super.makeContributions(menuManager, toolBarManager, statusLineManager);
+ contentOutlineStatusLineManager = statusLineManager;
+ }
+
+ @Override
+ public void setActionBars(IActionBars actionBars) {
+ super.setActionBars(actionBars);
+ getActionBarContributor().shareGlobalActions(this, actionBars);
+ }
+ }
+
+ contentOutlinePage = new MyContentOutlinePage();
+
+ // Listen to selection so that we can handle it is a special way.
+ //
+ contentOutlinePage.addSelectionChangedListener
+ (new ISelectionChangedListener() {
+ // This ensures that we handle selections correctly.
+ //
+ public void selectionChanged(SelectionChangedEvent event) {
+ handleContentOutlineSelection(event.getSelection());
+ }
+ });
+ }
+
+ return contentOutlinePage;
+ }
+
+ /**
+ * This accesses a cached version of the property sheet.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IPropertySheetPage getPropertySheetPage() {
+ PropertySheetPage propertySheetPage =
+ new ExtendedPropertySheetPage(editingDomain) {
+ @Override
+ public void setSelectionToViewer(List<?> selection) {
+ ExpansionModelEditor.this.setSelectionToViewer(selection);
+ ExpansionModelEditor.this.setFocus();
+ }
+
+ @Override
+ public void setActionBars(IActionBars actionBars) {
+ super.setActionBars(actionBars);
+ getActionBarContributor().shareGlobalActions(this, actionBars);
+ }
+ };
+ propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
+ propertySheetPages.add(propertySheetPage);
+
+ return propertySheetPage;
+ }
+
+ /**
+ * This deals with how we want selection in the outliner to affect the other views.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void handleContentOutlineSelection(ISelection selection) {
+ if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) {
+ Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator();
+ if (selectedElements.hasNext()) {
+ // Get the first selected element.
+ //
+ Object selectedElement = selectedElements.next();
+
+ // If it's the selection viewer, then we want it to select the same selection as this selection.
+ //
+ if (currentViewerPane.getViewer() == selectionViewer) {
+ ArrayList<Object> selectionList = new ArrayList<Object>();
+ selectionList.add(selectedElement);
+ while (selectedElements.hasNext()) {
+ selectionList.add(selectedElements.next());
+ }
+
+ // Set the selection to the widget.
+ //
+ selectionViewer.setSelection(new StructuredSelection(selectionList));
+ }
+ else {
+ // Set the input to the widget.
+ //
+ if (currentViewerPane.getViewer().getInput() != selectedElement) {
+ currentViewerPane.getViewer().setInput(selectedElement);
+ currentViewerPane.setTitle(selectedElement);
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * This is for implementing {@link IEditorPart} and simply tests the command stack.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isDirty() {
+ return ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded();
+ }
+
+ /**
+ * This is for implementing {@link IEditorPart} and simply saves the model file.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void doSave(IProgressMonitor progressMonitor) {
+ // Save only resources that have actually changed.
+ //
+ final Map<Object, Object> saveOptions = new HashMap<Object, Object>();
+ saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
+ saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED);
+
+ // Do the work within an operation because this is a long running activity that modifies the workbench.
+ //
+ WorkspaceModifyOperation operation =
+ new WorkspaceModifyOperation() {
+ // This is the method that gets invoked when the operation runs.
+ //
+ @Override
+ public void execute(IProgressMonitor monitor) {
+ // Save the resources to the file system.
+ //
+ boolean first = true;
+ for (Resource resource : editingDomain.getResourceSet().getResources()) {
+ if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) {
+ try {
+ long timeStamp = resource.getTimeStamp();
+ resource.save(saveOptions);
+ if (resource.getTimeStamp() != timeStamp) {
+ savedResources.add(resource);
+ }
+ }
+ catch (Exception exception) {
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
+ }
+ first = false;
+ }
+ }
+ }
+ };
+
+ updateProblemIndication = false;
+ try {
+ // This runs the options, and shows progress.
+ //
+ new ProgressMonitorDialog(getSite().getShell()).run(true, false, operation);
+
+ // Refresh the necessary state.
+ //
+ ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();
+ firePropertyChange(IEditorPart.PROP_DIRTY);
+ }
+ catch (Exception exception) {
+ // Something went wrong that shouldn't.
+ //
+ ExpansionModelEditorPlugin.INSTANCE.log(exception);
+ }
+ updateProblemIndication = true;
+ updateProblemIndication();
+ }
+
+ /**
+ * This returns whether something has been persisted to the URI of the specified resource.
+ * The implementation uses the URI converter from the editor's resource set to try to open an input stream.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected boolean isPersisted(Resource resource) {
+ boolean result = false;
+ try {
+ InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI());
+ if (stream != null) {
+ result = true;
+ stream.close();
+ }
+ }
+ catch (IOException e) {
+ // Ignore
+ }
+ return result;
+ }
+
+ /**
+ * This always returns true because it is not currently supported.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isSaveAsAllowed() {
+ return true;
+ }
+
+ /**
+ * This also changes the editor's input.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void doSaveAs() {
+ SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());
+ saveAsDialog.open();
+ IPath path = saveAsDialog.getResult();
+ if (path != null) {
+ IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
+ if (file != null) {
+ doSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file));
+ }
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void doSaveAs(URI uri, IEditorInput editorInput) {
+ (editingDomain.getResourceSet().getResources().get(0)).setURI(uri);
+ setInputWithNotify(editorInput);
+ setPartName(editorInput.getName());
+ IProgressMonitor progressMonitor =
+ getActionBars().getStatusLineManager() != null ?
+ getActionBars().getStatusLineManager().getProgressMonitor() :
+ new NullProgressMonitor();
+ doSave(progressMonitor);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void gotoMarker(IMarker marker) {
+ List<?> targetObjects = markerHelper.getTargetObjects(editingDomain, marker);
+ if (!targetObjects.isEmpty()) {
+ setSelectionToViewer(targetObjects);
+ }
+ }
+
+ /**
+ * This is called during startup.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void init(IEditorSite site, IEditorInput editorInput) {
+ setSite(site);
+ setInputWithNotify(editorInput);
+ setPartName(editorInput.getName());
+ site.setSelectionProvider(this);
+ site.getPage().addPartListener(partListener);
+ ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void setFocus() {
+ if (currentViewerPane != null) {
+ currentViewerPane.setFocus();
+ }
+ else {
+ getControl(getActivePage()).setFocus();
+ }
+ }
+
+ /**
+ * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addSelectionChangedListener(ISelectionChangedListener listener) {
+ selectionChangedListeners.add(listener);
+ }
+
+ /**
+ * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeSelectionChangedListener(ISelectionChangedListener listener) {
+ selectionChangedListeners.remove(listener);
+ }
+
+ /**
+ * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ISelection getSelection() {
+ return editorSelection;
+ }
+
+ /**
+ * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection.
+ * Calling this result will notify the listeners.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSelection(ISelection selection) {
+ editorSelection = selection;
+
+ for (ISelectionChangedListener listener : selectionChangedListeners) {
+ listener.selectionChanged(new SelectionChangedEvent(this, selection));
+ }
+ setStatusLineManager(selection);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatusLineManager(ISelection selection) {
+ IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ?
+ contentOutlineStatusLineManager : getActionBars().getStatusLineManager();
+
+ if (statusLineManager != null) {
+ if (selection instanceof IStructuredSelection) {
+ Collection<?> collection = ((IStructuredSelection)selection).toList();
+ switch (collection.size()) {
+ case 0: {
+ statusLineManager.setMessage(getString("_UI_NoObjectSelected"));
+ break;
+ }
+ case 1: {
+ String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());
+ statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text));
+ break;
+ }
+ default: {
+ statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size())));
+ break;
+ }
+ }
+ }
+ else {
+ statusLineManager.setMessage("");
+ }
+ }
+ }
+
+ /**
+ * This looks up a string in the plugin's plugin.properties file.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static String getString(String key) {
+ return ExpansionModelEditorPlugin.INSTANCE.getString(key);
+ }
+
+ /**
+ * This looks up a string in plugin.properties, making a substitution.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static String getString(String key, Object s1) {
+ return ExpansionModelEditorPlugin.INSTANCE.getString(key, new Object [] { s1 });
+ }
+
+ /**
+ * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void menuAboutToShow(IMenuManager menuManager) {
+ ((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EditingDomainActionBarContributor getActionBarContributor() {
+ return (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IActionBars getActionBars() {
+ return getActionBarContributor().getActionBars();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AdapterFactory getAdapterFactory() {
+ return adapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void dispose() {
+ updateProblemIndication = false;
+
+ ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
+
+ getSite().getPage().removePartListener(partListener);
+
+ adapterFactory.dispose();
+
+ if (getActionBarContributor().getActiveEditor() == this) {
+ getActionBarContributor().setActiveEditor(null);
+ }
+
+ for (PropertySheetPage propertySheetPage : propertySheetPages) {
+ propertySheetPage.dispose();
+ }
+
+ if (contentOutlinePage != null) {
+ contentOutlinePage.dispose();
+ }
+
+ super.dispose();
+ }
+
+ /**
+ * Returns whether the outline view should be presented to the user.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected boolean showOutlineView() {
+ return true;
+ }
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelModelWizard.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelModelWizard.java
new file mode 100644
index 00000000000..eb39a7d2997
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/presentation/ExpansionModelModelWizard.java
@@ -0,0 +1,630 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.presentation;
+
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.MissingResourceException;
+import java.util.StringTokenizer;
+
+import org.eclipse.emf.common.CommonPlugin;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EClassifier;
+
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+
+import org.eclipse.jface.dialogs.MessageDialog;
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardPage;
+
+import org.eclipse.swt.SWT;
+
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.ModifyEvent;
+
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+
+import org.eclipse.ui.actions.WorkspaceModifyOperation;
+
+import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
+
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.ui.part.ISetSelectionTarget;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelFactory;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider.ExpansionModelEditPlugin;
+
+
+import org.eclipse.core.runtime.Path;
+
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+
+import org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.presentation.ExpansionModelEditorPlugin;
+
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PartInitException;
+
+
+/**
+ * This is a simple wizard for creating a new model file.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExpansionModelModelWizard extends Wizard implements INewWizard {
+ /**
+ * The supported extensions for created files.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<String> FILE_EXTENSIONS =
+ Collections.unmodifiableList(Arrays.asList(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ExpansionModelEditorFilenameExtensions").split("\\s*,\\s*")));
+
+ /**
+ * A formatted list of supported file extensions, suitable for display.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final String FORMATTED_FILE_EXTENSIONS =
+ ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ExpansionModelEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", ");
+
+ /**
+ * This caches an instance of the model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExpansionModelPackage expansionModelPackage = ExpansionModelPackage.eINSTANCE;
+
+ /**
+ * This caches an instance of the model factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExpansionModelFactory expansionModelFactory = expansionModelPackage.getExpansionModelFactory();
+
+ /**
+ * This is the file creation page.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExpansionModelModelWizardNewFileCreationPage newFileCreationPage;
+
+ /**
+ * This is the initial object creation page.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExpansionModelModelWizardInitialObjectCreationPage initialObjectCreationPage;
+
+ /**
+ * Remember the selection during initialization for populating the default container.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IStructuredSelection selection;
+
+ /**
+ * Remember the workbench during initialization.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IWorkbench workbench;
+
+ /**
+ * Caches the names of the types that can be created as the root object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected List<String> initialObjectNames;
+
+ /**
+ * This just records the information.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ this.workbench = workbench;
+ this.selection = selection;
+ setWindowTitle(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
+ setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(ExpansionModelEditorPlugin.INSTANCE.getImage("full/wizban/NewExpansionModel")));
+ }
+
+ /**
+ * Returns the names of the types that can be created as the root object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<String> getInitialObjectNames() {
+ if (initialObjectNames == null) {
+ initialObjectNames = new ArrayList<String>();
+ for (EClassifier eClassifier : expansionModelPackage.getEClassifiers()) {
+ if (eClassifier instanceof EClass) {
+ EClass eClass = (EClass)eClassifier;
+ if (!eClass.isAbstract()) {
+ initialObjectNames.add(eClass.getName());
+ }
+ }
+ }
+ Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
+ }
+ return initialObjectNames;
+ }
+
+ /**
+ * Create a new model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EObject createInitialModel() {
+ EClass eClass = (EClass)expansionModelPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName());
+ EObject rootObject = expansionModelFactory.create(eClass);
+ return rootObject;
+ }
+
+ /**
+ * Do the work after everything is specified.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean performFinish() {
+ try {
+ // Remember the file.
+ //
+ final IFile modelFile = getModelFile();
+
+ // Do the work within an operation.
+ //
+ WorkspaceModifyOperation operation =
+ new WorkspaceModifyOperation() {
+ @Override
+ protected void execute(IProgressMonitor progressMonitor) {
+ try {
+ // Create a resource set
+ //
+ ResourceSet resourceSet = new ResourceSetImpl();
+
+ // Get the URI of the model file.
+ //
+ URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);
+
+ // Create a resource for this file.
+ //
+ Resource resource = resourceSet.createResource(fileURI);
+
+ // Add the initial model object to the contents.
+ //
+ EObject rootObject = createInitialModel();
+ if (rootObject != null) {
+ resource.getContents().add(rootObject);
+ }
+
+ // Save the contents of the resource to the file system.
+ //
+ Map<Object, Object> options = new HashMap<Object, Object>();
+ options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
+ resource.save(options);
+ }
+ catch (Exception exception) {
+ ExpansionModelEditorPlugin.INSTANCE.log(exception);
+ }
+ finally {
+ progressMonitor.done();
+ }
+ }
+ };
+
+ getContainer().run(false, false, operation);
+
+ // Select the new file resource in the current view.
+ //
+ IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();
+ IWorkbenchPage page = workbenchWindow.getActivePage();
+ final IWorkbenchPart activePart = page.getActivePart();
+ if (activePart instanceof ISetSelectionTarget) {
+ final ISelection targetSelection = new StructuredSelection(modelFile);
+ getShell().getDisplay().asyncExec
+ (new Runnable() {
+ public void run() {
+ ((ISetSelectionTarget)activePart).selectReveal(targetSelection);
+ }
+ });
+ }
+
+ // Open an editor on the new file.
+ //
+ try {
+ page.openEditor
+ (new FileEditorInput(modelFile),
+ workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());
+ }
+ catch (PartInitException exception) {
+ MessageDialog.openError(workbenchWindow.getShell(), ExpansionModelEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage());
+ return false;
+ }
+
+ return true;
+ }
+ catch (Exception exception) {
+ ExpansionModelEditorPlugin.INSTANCE.log(exception);
+ return false;
+ }
+ }
+
+ /**
+ * This is the one page of the wizard.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public class ExpansionModelModelWizardNewFileCreationPage extends WizardNewFileCreationPage {
+ /**
+ * Pass in the selection.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelModelWizardNewFileCreationPage(String pageId, IStructuredSelection selection) {
+ super(pageId, selection);
+ }
+
+ /**
+ * The framework calls this to see if the file is correct.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected boolean validatePage() {
+ if (super.validatePage()) {
+ String extension = new Path(getFileName()).getFileExtension();
+ if (extension == null || !FILE_EXTENSIONS.contains(extension)) {
+ String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension";
+ setErrorMessage(ExpansionModelEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));
+ return false;
+ }
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IFile getModelFile() {
+ return ResourcesPlugin.getWorkspace().getRoot().getFile(getContainerFullPath().append(getFileName()));
+ }
+ }
+
+ /**
+ * This is the page where the type of object to create is selected.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public class ExpansionModelModelWizardInitialObjectCreationPage extends WizardPage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Combo initialObjectField;
+
+ /**
+ * @generated
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ */
+ protected List<String> encodings;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Combo encodingField;
+
+ /**
+ * Pass in the selection.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelModelWizardInitialObjectCreationPage(String pageId) {
+ super(pageId);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createControl(Composite parent) {
+ Composite composite = new Composite(parent, SWT.NONE);
+ {
+ GridLayout layout = new GridLayout();
+ layout.numColumns = 1;
+ layout.verticalSpacing = 12;
+ composite.setLayout(layout);
+
+ GridData data = new GridData();
+ data.verticalAlignment = GridData.FILL;
+ data.grabExcessVerticalSpace = true;
+ data.horizontalAlignment = GridData.FILL;
+ composite.setLayoutData(data);
+ }
+
+ Label containerLabel = new Label(composite, SWT.LEFT);
+ {
+ containerLabel.setText(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ModelObject"));
+
+ GridData data = new GridData();
+ data.horizontalAlignment = GridData.FILL;
+ containerLabel.setLayoutData(data);
+ }
+
+ initialObjectField = new Combo(composite, SWT.BORDER);
+ {
+ GridData data = new GridData();
+ data.horizontalAlignment = GridData.FILL;
+ data.grabExcessHorizontalSpace = true;
+ initialObjectField.setLayoutData(data);
+ }
+
+ for (String objectName : getInitialObjectNames()) {
+ initialObjectField.add(getLabel(objectName));
+ }
+
+ if (initialObjectField.getItemCount() == 1) {
+ initialObjectField.select(0);
+ }
+ initialObjectField.addModifyListener(validator);
+
+ Label encodingLabel = new Label(composite, SWT.LEFT);
+ {
+ encodingLabel.setText(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_XMLEncoding"));
+
+ GridData data = new GridData();
+ data.horizontalAlignment = GridData.FILL;
+ encodingLabel.setLayoutData(data);
+ }
+ encodingField = new Combo(composite, SWT.BORDER);
+ {
+ GridData data = new GridData();
+ data.horizontalAlignment = GridData.FILL;
+ data.grabExcessHorizontalSpace = true;
+ encodingField.setLayoutData(data);
+ }
+
+ for (String encoding : getEncodings()) {
+ encodingField.add(encoding);
+ }
+
+ encodingField.select(0);
+ encodingField.addModifyListener(validator);
+
+ setPageComplete(validatePage());
+ setControl(composite);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ModifyListener validator =
+ new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ setPageComplete(validatePage());
+ }
+ };
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected boolean validatePage() {
+ return getInitialObjectName() != null && getEncodings().contains(encodingField.getText());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void setVisible(boolean visible) {
+ super.setVisible(visible);
+ if (visible) {
+ if (initialObjectField.getItemCount() == 1) {
+ initialObjectField.clearSelection();
+ encodingField.setFocus();
+ }
+ else {
+ encodingField.clearSelection();
+ initialObjectField.setFocus();
+ }
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getInitialObjectName() {
+ String label = initialObjectField.getText();
+
+ for (String name : getInitialObjectNames()) {
+ if (getLabel(name).equals(label)) {
+ return name;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEncoding() {
+ return encodingField.getText();
+ }
+
+ /**
+ * Returns the label for the specified type name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected String getLabel(String typeName) {
+ try {
+ return ExpansionModelEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type");
+ }
+ catch(MissingResourceException mre) {
+ ExpansionModelEditorPlugin.INSTANCE.log(mre);
+ }
+ return typeName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<String> getEncodings() {
+ if (encodings == null) {
+ encodings = new ArrayList<String>();
+ for (StringTokenizer stringTokenizer = new StringTokenizer(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens(); ) {
+ encodings.add(stringTokenizer.nextToken());
+ }
+ }
+ return encodings;
+ }
+ }
+
+ /**
+ * The framework calls this to create the contents of the wizard.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void addPages() {
+ // Create a page, set the title, and the initial model file name.
+ //
+ newFileCreationPage = new ExpansionModelModelWizardNewFileCreationPage("Whatever", selection);
+ newFileCreationPage.setTitle(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ExpansionModelModelWizard_label"));
+ newFileCreationPage.setDescription(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ExpansionModelModelWizard_description"));
+ newFileCreationPage.setFileName(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ExpansionModelEditorFilenameDefaultBase") + "." + FILE_EXTENSIONS.get(0));
+ addPage(newFileCreationPage);
+
+ // Try and get the resource selection to determine a current directory for the file dialog.
+ //
+ if (selection != null && !selection.isEmpty()) {
+ // Get the resource...
+ //
+ Object selectedElement = selection.iterator().next();
+ if (selectedElement instanceof IResource) {
+ // Get the resource parent, if its a file.
+ //
+ IResource selectedResource = (IResource)selectedElement;
+ if (selectedResource.getType() == IResource.FILE) {
+ selectedResource = selectedResource.getParent();
+ }
+
+ // This gives us a directory...
+ //
+ if (selectedResource instanceof IFolder || selectedResource instanceof IProject) {
+ // Set this for the container.
+ //
+ newFileCreationPage.setContainerFullPath(selectedResource.getFullPath());
+
+ // Make up a unique new name here.
+ //
+ String defaultModelBaseFilename = ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ExpansionModelEditorFilenameDefaultBase");
+ String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0);
+ String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension;
+ for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) {
+ modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension;
+ }
+ newFileCreationPage.setFileName(modelFilename);
+ }
+ }
+ }
+ initialObjectCreationPage = new ExpansionModelModelWizardInitialObjectCreationPage("Whatever2");
+ initialObjectCreationPage.setTitle(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_ExpansionModelModelWizard_label"));
+ initialObjectCreationPage.setDescription(ExpansionModelEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description"));
+ addPage(initialObjectCreationPage);
+ }
+
+ /**
+ * Get the file from the page.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IFile getModelFile() {
+ return newFileCreationPage.getModelFile();
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/expansion/expansionmodel/presentation/ExpansionModelEditorPlugin.java b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/expansion/expansionmodel/presentation/ExpansionModelEditorPlugin.java
new file mode 100644
index 00000000000..e1eb56b31bb
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src/org/eclipse/papyrus/infra/gmfdiag/expansion/expansionmodel/presentation/ExpansionModelEditorPlugin.java
@@ -0,0 +1,91 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.presentation;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.ui.EclipseUIPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the ExpansionModel editor plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class ExpansionModelEditorPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final ExpansionModelEditorPlugin INSTANCE = new ExpansionModelEditorPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelEditorPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipseUIPlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/.classpath b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/.classpath
index 8a8f1668cdc..9a39368d975 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/.classpath
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/.classpath
@@ -3,5 +3,6 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="src-gen"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF
index 099104e856e..e311e65f62e 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF
@@ -8,6 +8,9 @@ Export-Package: org.eclipse.papyrus.infra.gmfdiag.common,
org.eclipse.papyrus.infra.gmfdiag.common.decoration,
org.eclipse.papyrus.infra.gmfdiag.common.editpart,
org.eclipse.papyrus.infra.gmfdiag.common.editpolicies,
+ org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel,
+ org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl,
+ org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.util,
org.eclipse.papyrus.infra.gmfdiag.common.figure,
org.eclipse.papyrus.infra.gmfdiag.common.figure.edge,
org.eclipse.papyrus.infra.gmfdiag.common.figure.node,
@@ -74,7 +77,9 @@ Require-Bundle: org.eclipse.emf.edit.ui;bundle-version="2.5.0",
org.eclipse.papyrus.infra.emf.readonly;bundle-version="1.1.0",
org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.1.0",
org.eclipse.gmf.runtime.draw2d.ui.render.awt,
- org.apache.xerces;bundle-version="2.9.0"
+ org.apache.xerces;bundle-version="2.9.0",
+ org.eclipse.core.runtime,
+ org.eclipse.emf.ecore;visibility:=reexport
Bundle-Vendor: %providerName
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.di b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.di
new file mode 100644
index 00000000000..8634d4c00e0
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.notation b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.notation
new file mode 100644
index 00000000000..5800e6f0455
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.notation
@@ -0,0 +1,273 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmlns:css="http://www.eclipse.org/papyrus/infra/gmfdiag/css" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:nattable="http://www.eclipse.org/papyrus/nattable/model" xmlns:nattableaxis="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis" xmlns:nattableaxisconfiguration="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration" xmlns:nattableaxisprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider" xmlns:nattableconfiguration="http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration" xmlns:nattablestyle="http://www.eclipse.org/papyrus/nattable/model/table/nattablestyle" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis http://www.eclipse.org/papyrus/nattable/model#//nattableaxis http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model#//nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableconfiguration http://www.eclipse.org/papyrus/nattable/model/table/nattablestyle http://www.eclipse.org/papyrus/nattable/model#//nattablestyle">
+ <notation:Diagram xmi:id="_ubkeMNE7EeSLjPxDpRV9AQ" type="PapyrusUMLClassDiagram" name="Overview" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_ubkeMdE7EeSLjPxDpRV9AQ" type="2005">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeMtE7EeSLjPxDpRV9AQ" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeM9E7EeSLjPxDpRV9AQ" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ubkeNNE7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ubkeNdE7EeSLjPxDpRV9AQ"/>
+ </children>
+ <element xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMwtE7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ubkeNtE7EeSLjPxDpRV9AQ" x="201" y="38"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ubkeN9E7EeSLjPxDpRV9AQ" type="2005">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeONE7EeSLjPxDpRV9AQ" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeOdE7EeSLjPxDpRV9AQ" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ubkeOtE7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ubkeO9E7EeSLjPxDpRV9AQ"/>
+ </children>
+ <element xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ubkePNE7EeSLjPxDpRV9AQ" x="204" y="173"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ubkePdE7EeSLjPxDpRV9AQ" type="2005">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkePtE7EeSLjPxDpRV9AQ" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeP9E7EeSLjPxDpRV9AQ" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ubkeQNE7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ubkeQdE7EeSLjPxDpRV9AQ"/>
+ </children>
+ <element xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMxtE7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ubkeQtE7EeSLjPxDpRV9AQ" x="206" y="329"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ubkeQ9E7EeSLjPxDpRV9AQ" type="2005">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeRNE7EeSLjPxDpRV9AQ" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeRdE7EeSLjPxDpRV9AQ" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ubkeRtE7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ubkeR9E7EeSLjPxDpRV9AQ"/>
+ </children>
+ <element xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMyNE7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ubkeSNE7EeSLjPxDpRV9AQ" x="635" y="324"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_ubkeSdE7EeSLjPxDpRV9AQ"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_ubkeStE7EeSLjPxDpRV9AQ">
+ <owner xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMwNE7EeSLjPxDpRV9AQ"/>
+ <configuration xmi:type="configuration:PapyrusDiagram" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wLmpNxhEeOqHvRyiN87hA"/>
+ </styles>
+ <element xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMwNE7EeSLjPxDpRV9AQ"/>
+ <edges xmi:type="notation:Connector" xmi:id="_ubkeS9E7EeSLjPxDpRV9AQ" type="4006" source="_ubkeN9E7EeSLjPxDpRV9AQ" target="_ubkeMdE7EeSLjPxDpRV9AQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeTNE7EeSLjPxDpRV9AQ" visible="false" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ubkeTdE7EeSLjPxDpRV9AQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeTtE7EeSLjPxDpRV9AQ" visible="false" type="6015">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ubkeT9E7EeSLjPxDpRV9AQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ubkeUNE7EeSLjPxDpRV9AQ"/>
+ <element xmi:type="uml:Abstraction" href="DevelopperModelForExpansion.uml#_ubgMxNE7EeSLjPxDpRV9AQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ubkeUdE7EeSLjPxDpRV9AQ" points="[-2, -10, 8, 48]$[-27, -45, -17, 13]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ubkeUtE7EeSLjPxDpRV9AQ" id="(0.305,0.1)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ubkeU9E7EeSLjPxDpRV9AQ" id="(0.27,0.87)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ubkeVNE7EeSLjPxDpRV9AQ" type="4006" source="_ubkePdE7EeSLjPxDpRV9AQ" target="_ubkeN9E7EeSLjPxDpRV9AQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeVdE7EeSLjPxDpRV9AQ" visible="false" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ubkeVtE7EeSLjPxDpRV9AQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeV9E7EeSLjPxDpRV9AQ" visible="false" type="6015">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ubkeWNE7EeSLjPxDpRV9AQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ubkeWdE7EeSLjPxDpRV9AQ"/>
+ <element xmi:type="uml:Abstraction" href="DevelopperModelForExpansion.uml#_ubgMx9E7EeSLjPxDpRV9AQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ubkeWtE7EeSLjPxDpRV9AQ" points="[-9, -16, 0, 67]$[-24, -72, -15, 11]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ubkeW9E7EeSLjPxDpRV9AQ" id="(0.27,0.16)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ubkeXNE7EeSLjPxDpRV9AQ" id="(0.235,0.89)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ubkeXdE7EeSLjPxDpRV9AQ" type="4008" source="_ubkeQ9E7EeSLjPxDpRV9AQ" target="_ubkeN9E7EeSLjPxDpRV9AQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeXtE7EeSLjPxDpRV9AQ" visible="false" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ubkeX9E7EeSLjPxDpRV9AQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeYNE7EeSLjPxDpRV9AQ" visible="false" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ubkeYdE7EeSLjPxDpRV9AQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ubkeYtE7EeSLjPxDpRV9AQ"/>
+ <element xmi:type="uml:Dependency" href="DevelopperModelForExpansion.uml#_ubgMydE7EeSLjPxDpRV9AQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ubkeY9E7EeSLjPxDpRV9AQ" points="[-46, -20, 265, 113]$[-275, -135, 36, -2]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ubkeZNE7EeSLjPxDpRV9AQ" id="(0.0,0.24)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ubkeZdE7EeSLjPxDpRV9AQ" id="(1.0,0.65)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ubkeZtE7EeSLjPxDpRV9AQ" type="4008" source="_ubkeQ9E7EeSLjPxDpRV9AQ" target="_ubkePdE7EeSLjPxDpRV9AQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeZ9E7EeSLjPxDpRV9AQ" visible="false" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ubkeaNE7EeSLjPxDpRV9AQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ubkeadE7EeSLjPxDpRV9AQ" visible="false" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ubkeatE7EeSLjPxDpRV9AQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ubkea9E7EeSLjPxDpRV9AQ"/>
+ <element xmi:type="uml:Dependency" href="DevelopperModelForExpansion.uml#_ubgMytE7EeSLjPxDpRV9AQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ubkebNE7EeSLjPxDpRV9AQ" points="[-40, 1, 262, -12]$[-267, 20, 35, 7]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ubkebdE7EeSLjPxDpRV9AQ" id="(0.0,0.69)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ubkebtE7EeSLjPxDpRV9AQ" id="(1.0,0.64)"/>
+ </edges>
+ </notation:Diagram>
+ <nattable:Table xmi:id="_BRolQNE8EeSLjPxDpRV9AQ" name="RequirementTable" currentRowAxisProvider="_BRolRdE8EeSLjPxDpRV9AQ" currentColumnAxisProvider="_BRolQdE8EeSLjPxDpRV9AQ">
+ <context xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMwtE7EeSLjPxDpRV9AQ"/>
+ <owner xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMwtE7EeSLjPxDpRV9AQ"/>
+ <prototype xmi:type="configuration:PapyrusSyncTable" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb3txhEeOqHvRyiN87hA"/>
+ <tableConfiguration xmi:type="nattableconfiguration:TableConfiguration" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#/"/>
+ <columnAxisProvidersHistory xmi:type="nattableaxisprovider:SlaveObjectAxisProvider" xmi:id="_BRolQdE8EeSLjPxDpRV9AQ" description="Provides the columns of the tables with a default configuration" name="Requirements Feature Columns Provider">
+ <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_BRolQtE8EeSLjPxDpRV9AQ" element="property_of_stereotype:/SysML::Requirements::Requirement::id">
+ <styles xmi:type="nattablestyle:IntValueStyle" xmi:id="_1Rm3ANE9EeSLjPxDpRV9AQ" name="axisWidth" intValue="294"/>
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_BRolQ9E8EeSLjPxDpRV9AQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/5.0.0/UML#//NamedElement/name"/>
+ </axis>
+ <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_BRolRNE8EeSLjPxDpRV9AQ" element="property_of_stereotype:/SysML::Requirements::Requirement::text">
+ <styles xmi:type="nattablestyle:IntValueStyle" xmi:id="_2pFnUNE9EeSLjPxDpRV9AQ" name="axisWidth" intValue="642"/>
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
+ </axis>
+ </columnAxisProvidersHistory>
+ <rowAxisProvidersHistory xmi:type="nattableaxisprovider:MasterObjectAxisProvider" xmi:id="_BRolRdE8EeSLjPxDpRV9AQ" description="Provides the requirements directly owned by the context of the table" name="Requirement Axis Provider" disconnectSlave="true"/>
+ <localRowHeaderAxisConfiguration xmi:type="nattableaxisconfiguration:LocalTableHeaderAxisConfiguration" xmi:id="_WdxZkNFBEeSLjPxDpRV9AQ" indexStyle="NUMERIC">
+ <styles xmi:type="nattablestyle:IntValueStyle" xmi:id="_WdyAoNFBEeSLjPxDpRV9AQ" name="rowLabelWidth" intValue="331"/>
+ </localRowHeaderAxisConfiguration>
+ </nattable:Table>
+ <notation:Diagram xmi:id="_kscUMNFAEeSLjPxDpRV9AQ" type="UseCase" name="UseCaseDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_nisIkNFAEeSLjPxDpRV9AQ" type="2015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nisvoNFAEeSLjPxDpRV9AQ" type="5019"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nisvodFAEeSLjPxDpRV9AQ" type="6047">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nitWsNFAEeSLjPxDpRV9AQ" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nitWsdFAEeSLjPxDpRV9AQ" type="7011">
+ <children xmi:type="notation:Shape" xmi:id="_MAF5wNFBEeSLjPxDpRV9AQ" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_MAF5wtFBEeSLjPxDpRV9AQ" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MAF5w9FBEeSLjPxDpRV9AQ" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MAF5xNFBEeSLjPxDpRV9AQ" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MAGg0NFBEeSLjPxDpRV9AQ" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_MAGg0dFBEeSLjPxDpRV9AQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_MAGg0tFBEeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_MAGg09FBEeSLjPxDpRV9AQ"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="DevelopperModelForExpansion.uml#_L_66oNFBEeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_MAF5wdFBEeSLjPxDpRV9AQ" x="92" y="28"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_CzQnoNR_EeSRNI7img_HuA" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_CzSc0NR_EeSRNI7img_HuA" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_CzSc0dR_EeSRNI7img_HuA" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_CzSc0tR_EeSRNI7img_HuA" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_CzTD4NR_EeSRNI7img_HuA" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_CzTD4dR_EeSRNI7img_HuA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_CzTD4tR_EeSRNI7img_HuA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CzTD49R_EeSRNI7img_HuA"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="DevelopperModelForExpansion.uml#_CzHdsNR_EeSRNI7img_HuA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CzQnodR_EeSRNI7img_HuA" x="104" y="105"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ENDFENR_EeSRNI7img_HuA" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ENDsINR_EeSRNI7img_HuA" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ENDsIdR_EeSRNI7img_HuA" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ENDsItR_EeSRNI7img_HuA" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ENETMNR_EeSRNI7img_HuA" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ENETMdR_EeSRNI7img_HuA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ENETMtR_EeSRNI7img_HuA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ENETM9R_EeSRNI7img_HuA"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="DevelopperModelForExpansion.uml#_EM-zoNR_EeSRNI7img_HuA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ENDFEdR_EeSRNI7img_HuA" x="92" y="173"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_G9rZoNR_EeSRNI7img_HuA" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_G9sAsNR_EeSRNI7img_HuA" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_G9sAsdR_EeSRNI7img_HuA" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_G9sAstR_EeSRNI7img_HuA" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_G9sAs9R_EeSRNI7img_HuA" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_G9sAtNR_EeSRNI7img_HuA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_G9sAtdR_EeSRNI7img_HuA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G9sAttR_EeSRNI7img_HuA"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="DevelopperModelForExpansion.uml#_G9nvQNR_EeSRNI7img_HuA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G9rZodR_EeSRNI7img_HuA" x="97" y="245"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nitWstFAEeSLjPxDpRV9AQ"/>
+ </children>
+ <element xmi:type="uml:Component" href="DevelopperModelForExpansion.uml#_ubgMxdE7EeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nisIkdFAEeSLjPxDpRV9AQ" x="280" y="20" width="556" height="386"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_SGfQQNFBEeSLjPxDpRV9AQ" type="2011">
+ <children xmi:type="notation:DecorationNode" xmi:id="_SGf3UNFBEeSLjPxDpRV9AQ" type="5014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_SGf3UdFBEeSLjPxDpRV9AQ" x="-35" y="61"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_SGf3UtFBEeSLjPxDpRV9AQ" type="6029">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_SGf3U9FBEeSLjPxDpRV9AQ" x="20" y="100"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_SGgeYNFBEeSLjPxDpRV9AQ" type="6037">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_SGgeYdFBEeSLjPxDpRV9AQ" x="20" y="80"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_SGgeYtFBEeSLjPxDpRV9AQ" type="6048">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_SGgeY9FBEeSLjPxDpRV9AQ" y="5"/>
+ </children>
+ <element xmi:type="uml:Actor" href="DevelopperModelForExpansion.uml#_SGc0ANFBEeSLjPxDpRV9AQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_SGfQQdFBEeSLjPxDpRV9AQ" x="100" y="161"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_kscUMdFAEeSLjPxDpRV9AQ" name="diagram_compatibility_version" stringValue="1.0.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_kscUMtFAEeSLjPxDpRV9AQ"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_kscUM9FAEeSLjPxDpRV9AQ">
+ <owner xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ </styles>
+ <styles xmi:type="notation:EObjectListValueStyle" xmi:id="_Uj5XsNR_EeSRNI7img_HuA" name="css_stylesheets" eObjectListValue="_Uj5-wNR_EeSRNI7img_HuA"/>
+ <element xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ <edges xmi:type="notation:Connector" xmi:id="_TfV5kNFBEeSLjPxDpRV9AQ" type="4011" source="_SGfQQNFBEeSLjPxDpRV9AQ" target="_MAF5wNFBEeSLjPxDpRV9AQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_TfWgoNFBEeSLjPxDpRV9AQ" visible="false" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_TfWgodFBEeSLjPxDpRV9AQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_TfWgotFBEeSLjPxDpRV9AQ" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_TfWgo9FBEeSLjPxDpRV9AQ" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_TfV5kdFBEeSLjPxDpRV9AQ"/>
+ <element xmi:type="uml:Association" href="DevelopperModelForExpansion.uml#_TfRBENFBEeSLjPxDpRV9AQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_TfV5ktFBEeSLjPxDpRV9AQ" points="[15, 0, -356, -15]$[347, 21, -24, 6]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_NZWckNR_EeSRNI7img_HuA" id="(1.0,0.5)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Tf-LsNFBEeSLjPxDpRV9AQ" id="(0.0,0.36666666666666664)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_KnKo0NR_EeSRNI7img_HuA" type="4011" source="_SGfQQNFBEeSLjPxDpRV9AQ" target="_CzQnoNR_EeSRNI7img_HuA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_KnLP4NR_EeSRNI7img_HuA" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KnLP4dR_EeSRNI7img_HuA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KnLP4tR_EeSRNI7img_HuA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KnLP49R_EeSRNI7img_HuA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_KnKo0dR_EeSRNI7img_HuA"/>
+ <element xmi:type="uml:Association" href="DevelopperModelForExpansion.uml#_Km3G0NR_EeSRNI7img_HuA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_KnKo0tR_EeSRNI7img_HuA" points="[15, 4, -368, -101]$[359, 98, -24, -7]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_KnWPANR_EeSRNI7img_HuA" id="(1.0,0.54)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_KnW2ENR_EeSRNI7img_HuA" id="(0.0,0.5)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_L9p6oNR_EeSRNI7img_HuA" type="4011" source="_SGfQQNFBEeSLjPxDpRV9AQ" target="_ENDFENR_EeSRNI7img_HuA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_L9p6o9R_EeSRNI7img_HuA" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_L9p6pNR_EeSRNI7img_HuA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_L9p6pdR_EeSRNI7img_HuA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_L9qhsNR_EeSRNI7img_HuA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_L9p6odR_EeSRNI7img_HuA"/>
+ <element xmi:type="uml:Association" href="DevelopperModelForExpansion.uml#_L9m3UNR_EeSRNI7img_HuA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_L9p6otR_EeSRNI7img_HuA" points="[15, 7, -350, -171]$[347, 166, -18, -12]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_L9ydgNR_EeSRNI7img_HuA" id="(1.0,0.86)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_L9ydgdR_EeSRNI7img_HuA" id="(0.0,0.55)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Me60oNR_EeSRNI7img_HuA" type="4011" source="_SGfQQNFBEeSLjPxDpRV9AQ" target="_G9rZoNR_EeSRNI7img_HuA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Me60o9R_EeSRNI7img_HuA" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Me7bsNR_EeSRNI7img_HuA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Me7bsdR_EeSRNI7img_HuA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Me7bstR_EeSRNI7img_HuA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Me60odR_EeSRNI7img_HuA"/>
+ <element xmi:type="uml:Association" href="DevelopperModelForExpansion.uml#_Me3xUNR_EeSRNI7img_HuA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Me60otR_EeSRNI7img_HuA" points="[15, 9, -407, -229]$[363, 254, -59, 16]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_MfDXgNR_EeSRNI7img_HuA" id="(1.0,0.84)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_MfD-kNR_EeSRNI7img_HuA" id="(0.0,0.3333333333333333)"/>
+ </edges>
+ </notation:Diagram>
+ <css:ModelStyleSheets xmi:id="_lB5m0NFAEeSLjPxDpRV9AQ"/>
+ <notation:Diagram xmi:id="_PsQ0ENFCEeSxf_hKmhrahA" type="PapyrusUMLClassDiagram" name="Comments diagram" measurementUnit="Pixel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_PsQ0EdFCEeSxf_hKmhrahA" name="diagram_compatibility_version" stringValue="1.0.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_PsQ0EtFCEeSxf_hKmhrahA"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_PsRbINFCEeSxf_hKmhrahA">
+ <owner xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ </styles>
+ <element xmi:type="uml:Model" href="DevelopperModelForExpansion.uml#_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ </notation:Diagram>
+ <css:EmbeddedStyleSheet xmi:id="_Uj5-wNR_EeSRNI7img_HuA" label="UseCaseDiagram" content="Association > Label:name {&#xD;&#xA;&#x9;visible:false;&#xD;&#xA;}&#xD;&#xA;"/>
+</xmi:XMI>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.uml b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.uml
new file mode 100644
index 00000000000..47bbe2582d7
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/DevelopperModelForExpansion.uml
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Requirements="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:structure="http://DeveloperProcess/schemas/structure/_rpmLUHVxEeSZ-fQGFkyJeQ/6" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements http://DeveloperProcess/schemas/structure/_rpmLUHVxEeSZ-fQGFkyJeQ/6 pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpmyYHVxEeSZ-fQGFkyJeQ">
+ <uml:Model xmi:id="_ubgMwNE7EeSLjPxDpRV9AQ" name="DiagramExpansion">
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_ubgMwdE7EeSLjPxDpRV9AQ">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Model" xmi:id="_ubgMwtE7EeSLjPxDpRV9AQ" name="Requirements">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_cc0CcNSEEeSRNI7img_HuA">
+ <body>This project is related to the Bug 463290 </body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Class" xmi:id="_RML9cNE8EeSLjPxDpRV9AQ" name="Add Graphical Elements">
+ <nestedClassifier xmi:type="uml:Class" xmi:id="_yrPMQNRfEeSRNI7img_HuA" name="Add Graphical Compartments"/>
+ <nestedClassifier xmi:type="uml:Class" xmi:id="_-9oyANRfEeSRNI7img_HuA" name="Add new nodes"/>
+ <nestedClassifier xmi:type="uml:Class" xmi:id="_KAiewNRgEeSRNI7img_HuA" name="Add new child label"/>
+ <nestedClassifier xmi:type="uml:Class" xmi:id="_bHq-0NRgEeSRNI7img_HuA" name="Add new border item"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_A0UykNR7EeSRNI7img_HuA" name="Drop of new Elements"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_IzpZkNR7EeSRNI7img_HuA" name="Assistant"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_TvjGcNR7EeSRNI7img_HuA" name="Creation from the palette"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_hAd5ENE9EeSLjPxDpRV9AQ" name="Non impact on parent diagrams"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_ajYZgNFAEeSLjPxDpRV9AQ" name="ExpransionModel"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_dOkloNR7EeSRNI7img_HuA" name="Expanded diagrams viewed with original editor"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_awNtwNelEeS6Ldj4lOPYhg" name="CSS driven"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_k0ZvgNelEeS6Ldj4lOPYhg" name="View point relation"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_ubgMw9E7EeSLjPxDpRV9AQ" name="UseCases">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_UMznENFCEeSxf_hKmhrahA" annotatedElement="_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_ubgMxNE7EeSLjPxDpRV9AQ" name="useCasesAbstraction" client="_ubgMw9E7EeSLjPxDpRV9AQ" supplier="_ubgMwtE7EeSLjPxDpRV9AQ"/>
+ <packagedElement xmi:type="uml:Component" xmi:id="_ubgMxdE7EeSLjPxDpRV9AQ" name="Diagram Expansion" useCase="_L_66oNFBEeSLjPxDpRV9AQ _CzHdsNR_EeSRNI7img_HuA _EM-zoNR_EeSRNI7img_HuA _G9nvQNR_EeSRNI7img_HuA">
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_L_66oNFBEeSLjPxDpRV9AQ" name="Add compartments" subject="_ubgMxdE7EeSLjPxDpRV9AQ">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_JWAlMNFZEeSxf_hKmhrahA" annotatedElement="_L_66oNFBEeSLjPxDpRV9AQ">
+ <body>The type of compartment can be XYlayout or list compartment.</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_CzHdsNR_EeSRNI7img_HuA" name="Add new Nodes" subject="_ubgMxdE7EeSLjPxDpRV9AQ"/>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_EM-zoNR_EeSRNI7img_HuA" name="Add new Child Label" subject="_ubgMxdE7EeSLjPxDpRV9AQ"/>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_G9nvQNR_EeSRNI7img_HuA" name="Add new border item" subject="_ubgMxdE7EeSLjPxDpRV9AQ"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Actor" xmi:id="_SGc0ANFBEeSLjPxDpRV9AQ" name="Developper"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_TfRBENFBEeSLjPxDpRV9AQ" name="A_add compartments_developper" memberEnd="_TfUEYNFBEeSLjPxDpRV9AQ _TfUEYdFBEeSLjPxDpRV9AQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TfS2QNFBEeSLjPxDpRV9AQ" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_TfTdUNFBEeSLjPxDpRV9AQ" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_TfUEYNFBEeSLjPxDpRV9AQ" name="add compartments" type="_L_66oNFBEeSLjPxDpRV9AQ" association="_TfRBENFBEeSLjPxDpRV9AQ"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_TfUEYdFBEeSLjPxDpRV9AQ" name="developper" type="_SGc0ANFBEeSLjPxDpRV9AQ" association="_TfRBENFBEeSLjPxDpRV9AQ"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_Km3G0NR_EeSRNI7img_HuA" name="A_add new nodes_developper" memberEnd="_Km6xMNR_EeSRNI7img_HuA _Km7YQNR_EeSRNI7img_HuA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Km48ANR_EeSRNI7img_HuA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Km5jENR_EeSRNI7img_HuA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_Km6xMNR_EeSRNI7img_HuA" name="add new nodes" type="_CzHdsNR_EeSRNI7img_HuA" association="_Km3G0NR_EeSRNI7img_HuA"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_Km7YQNR_EeSRNI7img_HuA" name="developper" type="_SGc0ANFBEeSLjPxDpRV9AQ" association="_Km3G0NR_EeSRNI7img_HuA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_L9m3UNR_EeSRNI7img_HuA" name="A_add new child label_developper" memberEnd="_L9neYtR_EeSRNI7img_HuA _L9oFcNR_EeSRNI7img_HuA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_L9neYNR_EeSRNI7img_HuA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_L9neYdR_EeSRNI7img_HuA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_L9neYtR_EeSRNI7img_HuA" name="add new child label" type="_EM-zoNR_EeSRNI7img_HuA" association="_L9m3UNR_EeSRNI7img_HuA"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_L9oFcNR_EeSRNI7img_HuA" name="developper" type="_SGc0ANFBEeSLjPxDpRV9AQ" association="_L9m3UNR_EeSRNI7img_HuA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_Me3xUNR_EeSRNI7img_HuA" name="A_add new border item_developper" memberEnd="_Me4_cNR_EeSRNI7img_HuA _Me4_cdR_EeSRNI7img_HuA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Me4YYNR_EeSRNI7img_HuA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Me4YYdR_EeSRNI7img_HuA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_Me4_cNR_EeSRNI7img_HuA" name="add new border item" type="_G9nvQNR_EeSRNI7img_HuA" association="_Me3xUNR_EeSRNI7img_HuA"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_Me4_cdR_EeSRNI7img_HuA" name="developper" type="_SGc0ANFBEeSLjPxDpRV9AQ" association="_Me3xUNR_EeSRNI7img_HuA"/>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_ubgMxtE7EeSLjPxDpRV9AQ" name="Design">
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_ubgMx9E7EeSLjPxDpRV9AQ" name="DesignAbstraction" client="_ubgMxtE7EeSLjPxDpRV9AQ" supplier="_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_ubgMyNE7EeSLjPxDpRV9AQ" name="Test">
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_ubgMydE7EeSLjPxDpRV9AQ" name="Dependency1" client="_ubgMyNE7EeSLjPxDpRV9AQ" supplier="_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_ubgMytE7EeSLjPxDpRV9AQ" name="Dependency2" client="_ubgMyNE7EeSLjPxDpRV9AQ" supplier="_ubgMxtE7EeSLjPxDpRV9AQ"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_ubgMy9E7EeSLjPxDpRV9AQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_8qYtUNE7EeSLjPxDpRV9AQ" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8qYtUdE7EeSLjPxDpRV9AQ" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8qYtUtE7EeSLjPxDpRV9AQ" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8qYtU9E7EeSLjPxDpRV9AQ" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8qYtVNE7EeSLjPxDpRV9AQ" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8qYtVdE7EeSLjPxDpRV9AQ" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ubgMzNE7EeSLjPxDpRV9AQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rplkQXVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_kWqjAMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_ubgMzdE7EeSLjPxDpRV9AQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_8wt-0NE7EeSLjPxDpRV9AQ" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wt-0dE7EeSLjPxDpRV9AQ" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wt-0tE7EeSLjPxDpRV9AQ" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wt-09E7EeSLjPxDpRV9AQ" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wt-1NE7EeSLjPxDpRV9AQ" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wt-1dE7EeSLjPxDpRV9AQ" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ubgMztE7EeSLjPxDpRV9AQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpmyYHVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_qCT3MMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_ubgMz9E7EeSLjPxDpRV9AQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_8wvM8NE7EeSLjPxDpRV9AQ" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wvM8dE7EeSLjPxDpRV9AQ" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wvM8tE7EeSLjPxDpRV9AQ" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wvM89E7EeSLjPxDpRV9AQ" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wvM9NE7EeSLjPxDpRV9AQ" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wvM9dE7EeSLjPxDpRV9AQ" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ubgM0NE7EeSLjPxDpRV9AQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpnZcXVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_2LNtQMbYEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_ubgM0dE7EeSLjPxDpRV9AQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ubgM0tE7EeSLjPxDpRV9AQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_ubgM09E7EeSLjPxDpRV9AQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_8wv0ANE7EeSLjPxDpRV9AQ" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wv0AdE7EeSLjPxDpRV9AQ" key="Version" value="0.0.11"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wv0AtE7EeSLjPxDpRV9AQ" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wv0A9E7EeSLjPxDpRV9AQ" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wv0BNE7EeSLjPxDpRV9AQ" key="Date" value="2014-11-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8wv0BdE7EeSLjPxDpRV9AQ" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ubgM1NE7EeSLjPxDpRV9AQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_RQrLoWwBEeSIYu1Ih2FYyQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_D0JcUMnzEeO9CYUoXDRplw"/>
+ </profileApplication>
+ </uml:Model>
+ <structure:Project xmi:id="_ubgM1dE7EeSLjPxDpRV9AQ" author="P. Tessier" version="1.0.0" base_Model="_ubgMwNE7EeSLjPxDpRV9AQ" title="Expansion of diagram by adding compartments"/>
+ <structure:Requirements xmi:id="_ubgM1tE7EeSLjPxDpRV9AQ" base_Model="_ubgMwtE7EeSLjPxDpRV9AQ"/>
+ <structure:UseCases xmi:id="_ubgM19E7EeSLjPxDpRV9AQ" base_Model="_ubgMw9E7EeSLjPxDpRV9AQ"/>
+ <structure:Design xmi:id="_ubgM2NE7EeSLjPxDpRV9AQ" base_Model="_ubgMxtE7EeSLjPxDpRV9AQ"/>
+ <structure:Tests xmi:id="_ubgM2dE7EeSLjPxDpRV9AQ" base_Model="_ubgMyNE7EeSLjPxDpRV9AQ"/>
+ <Requirements:Requirement xmi:id="_RMSEENE8EeSLjPxDpRV9AQ" text="The system shall be able to add comparment in new diagrams or existing diagrams" id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_010" base_Class="_RML9cNE8EeSLjPxDpRV9AQ"/>
+ <Requirements:Requirement xmi:id="_hAfHMNE9EeSLjPxDpRV9AQ" text="the inheridted diagram must not impact parent diagram by addin the new compartments." id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_050" base_Class="_hAd5ENE9EeSLjPxDpRV9AQ"/>
+ <Requirements:Requirement xmi:id="_ajZnoNFAEeSLjPxDpRV9AQ" text="The expansion of diagram has to be a model and be interpreted" id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_060" base_Class="_ajYZgNFAEeSLjPxDpRV9AQ"/>
+ <Requirements:Requirement xmi:id="_yrbZgNRfEeSRNI7img_HuA" text="The developper can add new compartments from a existed graphical element." id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_011" base_Class="_yrPMQNRfEeSRNI7img_HuA"/>
+ <Requirements:Requirement xmi:id="_-9qnMNRfEeSRNI7img_HuA" text="A developper can add new node in the diagram that no exist in the existed diagram or add element by reuse existed shape." id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_012" base_Class="_-9oyANRfEeSRNI7img_HuA"/>
+ <Requirements:Requirement xmi:id="_KAjs4NRgEeSRNI7img_HuA" text="A developper can add new child label ( element that can be contained in a list compartment) in the diagram that no exist in the existed diagram or add element by reuse existed child label." id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_013" base_Class="_KAiewNRgEeSRNI7img_HuA"/>
+ <Requirements:Requirement xmi:id="_bHsM8NRgEeSRNI7img_HuA" text="A developper can add new border item ( element that can be installed around the shape) in the diagram that no exist in the existed diagram or add element by reuse existed child label." id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_014" base_Class="_bHq-0NRgEeSRNI7img_HuA"/>
+ <Requirements:Requirement xmi:id="_A0XO0NR7EeSRNI7img_HuA" text="New Elements can be dropped from the model explorer." id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_020" base_Class="_A0UykNR7EeSRNI7img_HuA"/>
+ <Requirements:Requirement xmi:id="_IzqAoNR7EeSRNI7img_HuA" text="The new element must be created by using assistant meachnism" id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_030" base_Class="_IzpZkNR7EeSRNI7img_HuA"/>
+ <Requirements:Requirement xmi:id="_TvkUkNR7EeSRNI7img_HuA" text="Elements can be created fom the palette" id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_040" base_Class="_TvjGcNR7EeSRNI7img_HuA"/>
+ <Requirements:Requirement xmi:id="_dOlMsNR7EeSRNI7img_HuA" text="The original diagram must be view in original diagram, exteernal element must have a predefined shape." id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_070" base_Class="_dOkloNR7EeSRNI7img_HuA"/>
+ <Requirements:Requirement xmi:id="_awPi8NelEeS6Ldj4lOPYhg" text="The added element must be driven by CSS" id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_080" base_Class="_awNtwNelEeS6Ldj4lOPYhg"/>
+ <Requirements:Requirement xmi:id="_k0aWkNelEeS6Ldj4lOPYhg" text="what means if the diagram is open by the parent view point or what means if a sub view point is created" id="org.eclipse.papyrus.infra.gmfdiag.expansion.Req_090" base_Class="_k0ZvgNelEeS6Ldj4lOPYhg"/>
+</xmi:XMI>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.di b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.di
new file mode 100644
index 00000000000..8634d4c00e0
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.notation b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.notation
new file mode 100644
index 00000000000..8a9b980d8f8
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.notation
@@ -0,0 +1,571 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmlns:css="http://www.eclipse.org/papyrus/infra/gmfdiag/css" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML">
+ <notation:Diagram xmi:id="_wa94ENenEeSTpeYJP6Dwgg" type="PapyrusUMLClassDiagram" name="NewEcoreUMLClassDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_32TBMNenEeSTpeYJP6Dwgg" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_32U2YNenEeSTpeYJP6Dwgg" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_32VdcNenEeSTpeYJP6Dwgg" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_32VdcdenEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_32VdctenEeSTpeYJP6Dwgg" type="7017">
+ <children xmi:type="notation:Shape" xmi:id="_AinRENeoEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_AieuMNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_AinREdeoEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ImFYQNeoEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_IloFQNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ImFYQdeoEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_tEEYQNeoEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_tD7OUNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_tEEYQdeoEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_-eLoQNe0EeSYm5n6c73Y-g" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_-aOVUNe0EeSYm5n6c73Y-g"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_-eLoQde0EeSYm5n6c73Y-g"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_gIxqcNhAEeSLXqlejJgoBg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_gIUXcNhAEeSLXqlejJgoBg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gIxqcdhAEeSLXqlejJgoBg"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_32Vdc9enEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_32VddNenEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_32VdddenEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_32VddtenEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_32Vdd9enEeSTpeYJP6Dwgg" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_32VdeNenEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_32VdedenEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_32VdetenEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_32Vde9enEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_32VdfNenEeSTpeYJP6Dwgg" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_32VdfdenEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_32VdftenEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_32Vdf9enEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_32VdgNenEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Class" href="ExpandModel.uml#_32MTgNenEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_32TBMdenEeSTpeYJP6Dwgg" x="231" y="378" width="306" height="137"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_KOW9oNeoEeSTpeYJP6Dwgg" type="2006">
+ <children xmi:type="notation:DecorationNode" xmi:id="_KOXksNeoEeSTpeYJP6Dwgg" type="5023"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KOXksdeoEeSTpeYJP6Dwgg" type="8508">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KOXksteoEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KOXks9eoEeSTpeYJP6Dwgg" type="7015">
+ <children xmi:type="notation:Shape" xmi:id="_MHb_INeoEeSTpeYJP6Dwgg" type="3017">
+ <element xmi:type="uml:EnumerationLiteral" href="ExpandModel.uml#_MHVRcNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MHb_IdeoEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_OdeCYNeoEeSTpeYJP6Dwgg" type="3017">
+ <element xmi:type="uml:EnumerationLiteral" href="ExpandModel.uml#_OdVfgNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_OdeCYdeoEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_QDm5wNeoEeSTpeYJP6Dwgg" type="3017">
+ <element xmi:type="uml:EnumerationLiteral" href="ExpandModel.uml#_QDasgNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QDm5wdeoEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_R1kmoNeoEeSTpeYJP6Dwgg" type="3017">
+ <element xmi:type="uml:EnumerationLiteral" href="ExpandModel.uml#_R1a1oNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_R1kmodeoEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_TUEk8NeoEeSTpeYJP6Dwgg" type="3017">
+ <element xmi:type="uml:EnumerationLiteral" href="ExpandModel.uml#_TT8pINeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_TUEk8deoEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_e5rWINeoEeSTpeYJP6Dwgg" type="3017">
+ <element xmi:type="uml:EnumerationLiteral" href="ExpandModel.uml#_e5izQNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e5rWIdeoEeSTpeYJP6Dwgg"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KOXktNeoEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KOXktdeoEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KOXktteoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KOXkt9eoEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Enumeration" href="ExpandModel.uml#_KOVIcNeoEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KOW9odeoEeSTpeYJP6Dwgg" x="523" y="551"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_4OewUNeqEeSTpeYJP6Dwgg" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_4OfXYNeqEeSTpeYJP6Dwgg" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_4OfXYdeqEeSTpeYJP6Dwgg" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_4OfXYteqEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_4Of-cNeqEeSTpeYJP6Dwgg" type="7017">
+ <children xmi:type="notation:Shape" xmi:id="_AunQQNepEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_AuetYNepEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_AunQQdepEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_P5jegNerEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_P5PVcNerEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_P5jegderEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_BhrOcNe1EeSYm5n6c73Y-g" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_BhH00Ne1EeSYm5n6c73Y-g"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_BhrOcde1EeSYm5n6c73Y-g"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_--_Z0Ne1EeSNDtqi0sM-EA" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_-5AtoNe1EeSNDtqi0sM-EA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_--_Z0de1EeSNDtqi0sM-EA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_4Of-cdeqEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_4Of-cteqEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_4Of-c9eqEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4Of-dNeqEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_4Of-ddeqEeSTpeYJP6Dwgg" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_4Of-dteqEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_4Of-d9eqEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_4Of-eNeqEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4Of-edeqEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_4Of-eteqEeSTpeYJP6Dwgg" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_4Of-e9eqEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_4Of-fNeqEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_4Of-fdeqEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4Of-fteqEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Class" href="ExpandModel.uml#_4OcUENeqEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4OewUdeqEeSTpeYJP6Dwgg" x="773" y="391" width="232"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ResQUNerEeSTpeYJP6Dwgg" type="2006">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ResQUterEeSTpeYJP6Dwgg" type="5023"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Res3YNerEeSTpeYJP6Dwgg" type="8508">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Res3YderEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Res3YterEeSTpeYJP6Dwgg" type="7015">
+ <children xmi:type="notation:Shape" xmi:id="_T2t3oNerEeSTpeYJP6Dwgg" type="3017">
+ <element xmi:type="uml:EnumerationLiteral" href="ExpandModel.uml#_T2bjwNerEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_T2t3oderEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_WGilMNerEeSTpeYJP6Dwgg" type="3017">
+ <element xmi:type="uml:EnumerationLiteral" href="ExpandModel.uml#_WGRfcNerEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WGilMderEeSTpeYJP6Dwgg"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Res3Y9erEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Res3ZNerEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Res3ZderEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Res3ZterEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Enumeration" href="ExpandModel.uml#_ReqbINerEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ResQUderEeSTpeYJP6Dwgg" x="776" y="562" width="147" height="76"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_jayssNevEeSTpeYJP6Dwgg" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_jazTwNevEeSTpeYJP6Dwgg" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jazTwdevEeSTpeYJP6Dwgg" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jazTwtevEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_jaz60NevEeSTpeYJP6Dwgg" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_jaz60devEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_jaz60tevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_jaz609evEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_jaz61NevEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_jaz61devEeSTpeYJP6Dwgg" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_jaz61tevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_jaz619evEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_jaz62NevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_jaz62devEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_jaz62tevEeSTpeYJP6Dwgg" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_jaz629evEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_jaz63NevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_jaz63devEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_jaz63tevEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Class" href="ExpandModel.uml#_jaw3gNevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_jayssdevEeSTpeYJP6Dwgg" x="328" y="247" height="64"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_syteUNevEeSTpeYJP6Dwgg" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_syteUtevEeSTpeYJP6Dwgg" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_syteU9evEeSTpeYJP6Dwgg" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_syteVNevEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_syteVdevEeSTpeYJP6Dwgg" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_syteVtevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_syteV9evEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_syteWNevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_syteWdevEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_syuFYNevEeSTpeYJP6Dwgg" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_syuFYdevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_syuFYtevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_syuFY9evEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_syuFZNevEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_syuFZdevEeSTpeYJP6Dwgg" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_syuFZtevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_syuFZ9evEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_syuFaNevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_syuFadevEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Class" href="ExpandModel.uml#_syrpINevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_syteUdevEeSTpeYJP6Dwgg" x="806" y="251" height="59"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_zsVBgNevEeSTpeYJP6Dwgg" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_zsVokNevEeSTpeYJP6Dwgg" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zsVokdevEeSTpeYJP6Dwgg" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_zsVoktevEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_zsVok9evEeSTpeYJP6Dwgg" type="7017">
+ <children xmi:type="notation:Shape" xmi:id="_2IXwsNewEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_2H52oNewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2IXwsdewEeSTpeYJP6Dwgg"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_zsVolNevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_zsVoldevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_zsVoltevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zsVol9evEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_zsVomNevEeSTpeYJP6Dwgg" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_zsVomdevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_zsVomtevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_zsVom9evEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zsVonNevEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_zsVondevEeSTpeYJP6Dwgg" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_zsVontevEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_zsVon9evEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_zsVooNevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zsVoodevEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Class" href="ExpandModel.uml#_zsTzYNevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zsVBgdevEeSTpeYJP6Dwgg" x="586" y="112" width="180" height="72"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_FvJtwNewEeSTpeYJP6Dwgg" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_FvKU0NewEeSTpeYJP6Dwgg" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_FvK74NewEeSTpeYJP6Dwgg" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FvK74dewEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_FvK74tewEeSTpeYJP6Dwgg" type="7017">
+ <children xmi:type="notation:Shape" xmi:id="_ITU6sNewEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_IS8gMNewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ITU6sdewEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_5RbMUNewEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_5Q_ugNewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_5RbMUdewEeSTpeYJP6Dwgg"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_FvK749ewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_FvK75NewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_FvK75dewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_FvK75tewEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_FvK759ewEeSTpeYJP6Dwgg" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_FvK76NewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_FvK76dewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_FvK76tewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_FvK769ewEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_FvLi8NewEeSTpeYJP6Dwgg" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_FvLi8dewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_FvLi8tewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_FvLi89ewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_FvLi9NewEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Class" href="ExpandModel.uml#_FvIfoNewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_FvJtwdewEeSTpeYJP6Dwgg" x="-62" y="370"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_mFfi8NewEeSTpeYJP6Dwgg" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_mFfi8tewEeSTpeYJP6Dwgg" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_mFfi89ewEeSTpeYJP6Dwgg" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_mFfi9NewEeSTpeYJP6Dwgg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_mFgKANewEeSTpeYJP6Dwgg" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_mFgKAdewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_mFgKAtewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_mFgKA9ewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mFgKBNewEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_mFgKBdewEeSTpeYJP6Dwgg" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_mFgKBtewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_mFgKB9ewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_mFgKCNewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mFgKCdewEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_mFgKCtewEeSTpeYJP6Dwgg" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_mFgKC9ewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_mFgKDNewEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_mFgKDdewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mFgKDtewEeSTpeYJP6Dwgg"/>
+ </children>
+ <element xmi:type="uml:Class" href="ExpandModel.uml#_mFdtwNewEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mFfi8dewEeSTpeYJP6Dwgg" x="4" y="103"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_uzPlsNg-EeSLXqlejJgoBg" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_uzSB8Ng-EeSLXqlejJgoBg" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_uzSB8dg-EeSLXqlejJgoBg" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_uzSB8tg-EeSLXqlejJgoBg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_uzTQENg-EeSLXqlejJgoBg" type="7017">
+ <children xmi:type="notation:Shape" xmi:id="_Uic_cNevEeSTpeYJP6Dwgg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_UiNH0NevEeSTpeYJP6Dwgg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Uic_cdevEeSTpeYJP6Dwgg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_NL8pgNg_EeSLXqlejJgoBg" type="3012">
+ <element xmi:type="uml:Property" href="ExpandModel.uml#_MRM4gNg_EeSLXqlejJgoBg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_NL8pgdg_EeSLXqlejJgoBg"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_uzTQEdg-EeSLXqlejJgoBg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_uzTQEtg-EeSLXqlejJgoBg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_uzTQE9g-EeSLXqlejJgoBg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_uzTQFNg-EeSLXqlejJgoBg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_uzTQFdg-EeSLXqlejJgoBg" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_uzTQFtg-EeSLXqlejJgoBg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_uzTQF9g-EeSLXqlejJgoBg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_uzTQGNg-EeSLXqlejJgoBg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_uzTQGdg-EeSLXqlejJgoBg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_uzTQGtg-EeSLXqlejJgoBg" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_uzTQG9g-EeSLXqlejJgoBg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_uzTQHNg-EeSLXqlejJgoBg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_uzTQHdg-EeSLXqlejJgoBg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_uzTQHtg-EeSLXqlejJgoBg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_uzby8Ng-EeSLXqlejJgoBg" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_uzby8dg-EeSLXqlejJgoBg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_uzby8tg-EeSLXqlejJgoBg"/>
+ </children>
+ <element xmi:type="uml:Class" href="ExpandModel.uml#_uzCKUNg-EeSLXqlejJgoBg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_uzPlsdg-EeSLXqlejJgoBg" x="234" y="550" width="215"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_wa94EdenEeSTpeYJP6Dwgg" name="diagram_compatibility_version" stringValue="1.0.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_wa94EtenEeSTpeYJP6Dwgg"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_wa94E9enEeSTpeYJP6Dwgg">
+ <owner xmi:type="uml:Model" href="ExpandModel.uml#_haqhoNenEeSTpeYJP6Dwgg"/>
+ <configuration xmi:type="configuration:PapyrusDiagram" href="platform:/plugin/org.eclipse.papyrus.uml.diagram.ecore/resources/configuration/EcoreUML.configuration#_9xMXIBP7EeSS0oyATXohNA"/>
+ </styles>
+ <element xmi:type="uml:Model" href="ExpandModel.uml#_haqhoNenEeSTpeYJP6Dwgg"/>
+ <edges xmi:type="notation:Connector" xmi:id="_7rcmcNeqEeSTpeYJP6Dwgg" type="4001" source="_32TBMNenEeSTpeYJP6Dwgg" target="_4OewUNeqEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_7rdNgNeqEeSTpeYJP6Dwgg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7rdNgdeqEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7rdNgteqEeSTpeYJP6Dwgg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7rd0kNeqEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7rd0kdeqEeSTpeYJP6Dwgg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7rd0kteqEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7rd0k9eqEeSTpeYJP6Dwgg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7rd0lNeqEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7rd0ldeqEeSTpeYJP6Dwgg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7rd0lteqEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7rd0l9eqEeSTpeYJP6Dwgg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7rd0mNeqEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_7rcmcdeqEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Association" href="ExpandModel.uml#_7q_TcNeqEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_7rcmcteqEeSTpeYJP6Dwgg" points="[0, 32, -236, 0]$[236, 32, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7s-3gNeqEeSTpeYJP6Dwgg" id="(1.0,0.6131386861313869)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7s-3gdeqEeSTpeYJP6Dwgg" id="(0.0,0.6761904761904762)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_EJUxsNerEeSTpeYJP6Dwgg" type="4001" source="_4OewUNeqEeSTpeYJP6Dwgg" target="_32TBMNenEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_EJVYwNerEeSTpeYJP6Dwgg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EJVYwderEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EJVYwterEeSTpeYJP6Dwgg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EJVYw9erEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EJVYxNerEeSTpeYJP6Dwgg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EJVYxderEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EJVYxterEeSTpeYJP6Dwgg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EJVYx9erEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EJV_0NerEeSTpeYJP6Dwgg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EJV_0derEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EJV_0terEeSTpeYJP6Dwgg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EJV_09erEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_EJUxsderEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Association" href="ExpandModel.uml#_EJGIMNerEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_EJUxsterEeSTpeYJP6Dwgg" points="[0, 2, 236, -17]$[-236, 2, 0, -17]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_EKG00NerEeSTpeYJP6Dwgg" id="(0.0,0.18095238095238095)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_EKG00derEeSTpeYJP6Dwgg" id="(1.0,0.4306569343065693)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_x4z1cNevEeSTpeYJP6Dwgg" type="4001" source="_syteUNevEeSTpeYJP6Dwgg" target="_4OewUNeqEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_x40cgNevEeSTpeYJP6Dwgg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_x40cgdevEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_x40cgtevEeSTpeYJP6Dwgg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_x40cg9evEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_x40chNevEeSTpeYJP6Dwgg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_x40chdevEeSTpeYJP6Dwgg" y="-74"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_x40chtevEeSTpeYJP6Dwgg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_x40ch9evEeSTpeYJP6Dwgg" x="-10" y="61"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_x40ciNevEeSTpeYJP6Dwgg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_x41DkNevEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_x41DkdevEeSTpeYJP6Dwgg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_x41DktevEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_x4z1cdevEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Association" href="ExpandModel.uml#_x4LjUNevEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_x4z1ctevEeSTpeYJP6Dwgg" points="[1, 10, 0, -86]$[1, 91, 0, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_x5rYINevEeSTpeYJP6Dwgg" id="(0.48672566371681414,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_x5rYIdevEeSTpeYJP6Dwgg" id="(0.5057471264367817,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ykrc8NevEeSTpeYJP6Dwgg" type="4001" source="_jayssNevEeSTpeYJP6Dwgg" target="_32TBMNenEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_yksEANevEeSTpeYJP6Dwgg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_yksEAdevEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_yksEAtevEeSTpeYJP6Dwgg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_yksEA9evEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_yksEBNevEeSTpeYJP6Dwgg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_yksEBdevEeSTpeYJP6Dwgg" x="3" y="-108"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_yksEBtevEeSTpeYJP6Dwgg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_yksEB9evEeSTpeYJP6Dwgg" x="-4" y="57"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_yksECNevEeSTpeYJP6Dwgg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_yksECdevEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_yksECtevEeSTpeYJP6Dwgg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_yksrENevEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ykrc8devEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Association" href="ExpandModel.uml#_ykWs0NevEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ykrc8tevEeSTpeYJP6Dwgg" points="[-4, 13, 0, -77]$[-3, 80, 1, -10]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ylpGQNevEeSTpeYJP6Dwgg" id="(0.5897435897435898,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ylpGQdevEeSTpeYJP6Dwgg" id="(0.5326797385620915,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_1pU5sNevEeSTpeYJP6Dwgg" type="4002" source="_syteUNevEeSTpeYJP6Dwgg" target="_zsVBgNevEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_1pU5s9evEeSTpeYJP6Dwgg" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_1pU5tNevEeSTpeYJP6Dwgg" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_1pU5sdevEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Generalization" href="ExpandModel.uml#_1o-UYNevEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_1pU5stevEeSTpeYJP6Dwgg" points="[0, 0, 141, 67]$[0, -34, 141, 33]$[-164, -34, -23, 33]$[-164, -67, -23, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1qTKENevEeSTpeYJP6Dwgg" id="(0.21238938053097345,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1qTxINevEeSTpeYJP6Dwgg" id="(0.84,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_2SiOwNevEeSTpeYJP6Dwgg" type="4002" source="_jayssNevEeSTpeYJP6Dwgg" target="_zsVBgNevEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_2Si10NevEeSTpeYJP6Dwgg" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2Si10devEeSTpeYJP6Dwgg" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_2SiOwdevEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Generalization" href="ExpandModel.uml#_2SMQgNevEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2SiOwtevEeSTpeYJP6Dwgg" points="[0, 0, -168, 63]$[0, -32, -168, 31]$[209, -32, 41, 31]$[209, -63, 41, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2T3EcNevEeSTpeYJP6Dwgg" id="(0.8290598290598291,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2T3rgNevEeSTpeYJP6Dwgg" id="(0.06,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_L3NRINewEeSTpeYJP6Dwgg" type="4001" source="_FvJtwNewEeSTpeYJP6Dwgg" target="_32TBMNenEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_L3N4MNewEeSTpeYJP6Dwgg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_L3N4MdewEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_L3N4MtewEeSTpeYJP6Dwgg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_L3N4M9ewEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_L3N4NNewEeSTpeYJP6Dwgg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_L3N4NdewEeSTpeYJP6Dwgg" x="20" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_L3N4NtewEeSTpeYJP6Dwgg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_L3N4N9ewEeSTpeYJP6Dwgg" x="-27" y="17"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_L3N4ONewEeSTpeYJP6Dwgg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_L3N4OdewEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_L3N4OtewEeSTpeYJP6Dwgg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_L3N4O9ewEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_L3NRIdewEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Association" href="ExpandModel.uml#_L22EwNewEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_L3NRItewEeSTpeYJP6Dwgg" points="[14, -6, -79, 0]$[67, -11, -26, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_L4Y84NewEeSTpeYJP6Dwgg" id="(1.0,0.5333333333333333)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_L4Y84dewEeSTpeYJP6Dwgg" id="(0.0,0.35036496350364965)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_qaemMNewEeSTpeYJP6Dwgg" type="4001" source="_mFfi8NewEeSTpeYJP6Dwgg" target="_FvJtwNewEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_qafNQNewEeSTpeYJP6Dwgg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_qafNQdewEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_qafNQtewEeSTpeYJP6Dwgg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_qafNQ9ewEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_qafNRNewEeSTpeYJP6Dwgg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_qafNRdewEeSTpeYJP6Dwgg" x="3" y="-67"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_qafNRtewEeSTpeYJP6Dwgg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_qafNR9ewEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_qafNSNewEeSTpeYJP6Dwgg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_qafNSdewEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_qafNStewEeSTpeYJP6Dwgg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_qafNS9ewEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_qaemMdewEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Association" href="ExpandModel.uml#_qaDIYNewEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_qaemMtewEeSTpeYJP6Dwgg" points="[1, 9, 0, -159]$[5, 159, 4, -9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_qcIMANewEeSTpeYJP6Dwgg" id="(0.38,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_qcIzENewEeSTpeYJP6Dwgg" id="(0.6265060240963856,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_q_pv0NewEeSTpeYJP6Dwgg" type="4001" source="_mFfi8NewEeSTpeYJP6Dwgg" target="_zsVBgNevEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_q_qW4NewEeSTpeYJP6Dwgg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_q_qW4dewEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_q_qW4tewEeSTpeYJP6Dwgg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_q_qW49ewEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_q_qW5NewEeSTpeYJP6Dwgg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_q_qW5dewEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_q_qW5tewEeSTpeYJP6Dwgg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_q_qW59ewEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_q_qW6NewEeSTpeYJP6Dwgg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_q_qW6dewEeSTpeYJP6Dwgg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_q_q98NewEeSTpeYJP6Dwgg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_q_q98dewEeSTpeYJP6Dwgg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_q_pv0dewEeSTpeYJP6Dwgg"/>
+ <element xmi:type="uml:Association" href="ExpandModel.uml#_q-6I8NewEeSTpeYJP6Dwgg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_q_pv0tewEeSTpeYJP6Dwgg" points="[11, -1, -543, 10]$[493, -15, -61, -4]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rA9-cNewEeSTpeYJP6Dwgg" id="(1.0,0.42)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rA-lgNewEeSTpeYJP6Dwgg" id="(0.0,0.4583333333333333)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_28-s8Ng-EeSLXqlejJgoBg" type="4002" source="_uzPlsNg-EeSLXqlejJgoBg" target="_32TBMNenEeSTpeYJP6Dwgg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_29AiINg-EeSLXqlejJgoBg" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_29AiIdg-EeSLXqlejJgoBg" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_28-s8dg-EeSLXqlejJgoBg"/>
+ <element xmi:type="uml:Generalization" href="ExpandModel.uml#_28b6YNg-EeSLXqlejJgoBg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_28-s8tg-EeSLXqlejJgoBg" points="[9, -9, 0, 53]$[-7, -44, -16, 18]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2-a3YNg-EeSLXqlejJgoBg" id="(0.48366013071895425,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2-becNg-EeSLXqlejJgoBg" id="(0.34967320261437906,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_7CCd0Ng-EeSLXqlejJgoBg" type="4001" source="_FvJtwNewEeSTpeYJP6Dwgg" target="_uzPlsNg-EeSLXqlejJgoBg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_7CDr8Ng-EeSLXqlejJgoBg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7CDr8dg-EeSLXqlejJgoBg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7CETANg-EeSLXqlejJgoBg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7CETAdg-EeSLXqlejJgoBg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7CETAtg-EeSLXqlejJgoBg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7CE6ENg-EeSLXqlejJgoBg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7CE6Edg-EeSLXqlejJgoBg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7CE6Etg-EeSLXqlejJgoBg" x="-38" y="21"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7CFhINg-EeSLXqlejJgoBg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7CFhIdg-EeSLXqlejJgoBg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7CGIMNg-EeSLXqlejJgoBg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7CGIMdg-EeSLXqlejJgoBg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_7CCd0dg-EeSLXqlejJgoBg"/>
+ <element xmi:type="uml:Association" href="ExpandModel.uml#_7Bg5YNg-EeSLXqlejJgoBg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_7CCd0tg-EeSLXqlejJgoBg" points="[25, 15, -151, -94]$[155, 104, -21, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7DWFYNg-EeSLXqlejJgoBg" id="(1.0,0.9917355371900827)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7DWFYdg-EeSLXqlejJgoBg" id="(0.0,0.19047619047619047)"/>
+ </edges>
+ </notation:Diagram>
+ <css:ModelStyleSheets xmi:id="_sODFENg-EeSLXqlejJgoBg"/>
+</xmi:XMI>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.uml b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.uml
new file mode 100644
index 00000000000..ccf67a0cd9f
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/ExpandModel.uml
@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Ecore="http://www.eclipse.org/uml2/schemas/Ecore/5" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/uml2/schemas/Ecore/5 pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA">
+ <uml:Model xmi:id="_haqhoNenEeSTpeYJP6Dwgg" name="expansionmodel">
+ <packagedElement xmi:type="uml:Class" xmi:id="_32MTgNenEeSTpeYJP6Dwgg" name="Representation">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_AieuMNeoEeSTpeYJP6Dwgg" name="editPartQualifiedName">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_iHyQ4NeoEeSTpeYJP6Dwgg">
+ <body>if the kind is custom the editPartQualifiedName has to be filled</body>
+ </ownedComment>
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_FpE0kNeoEeSTpeYJP6Dwgg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_FpFboNeoEeSTpeYJP6Dwgg" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_IloFQNeoEeSTpeYJP6Dwgg" name="kind" type="_KOVIcNeoEeSTpeYJP6Dwgg"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_tD7OUNeoEeSTpeYJP6Dwgg" name="graphicalElementType">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_GTtQgNepEeSTpeYJP6Dwgg">
+ <body>This the reference of a graphical element type, it can be null.&#xD;
+It is used to defined a Flow_port_as_label for example.&#xD;
+If it is used the hint has to be null</body>
+ </ownedComment>
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xlIvsNeoEeSTpeYJP6Dwgg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xlJWwNeoEeSTpeYJP6Dwgg" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_7rSOYNeqEeSTpeYJP6Dwgg" name="compartments" type="_4OcUENeqEeSTpeYJP6Dwgg" association="_7q_TcNeqEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_FWtJ0Ne2EeSNDtqi0sM-EA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_FWw0MNe2EeSNDtqi0sM-EA" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_-aOVUNe0EeSYm5n6c73Y-g" name="name">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_gIUXcNhAEeSLXqlejJgoBg" name="viewFactory">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Enumeration" xmi:id="_KOVIcNeoEeSTpeYJP6Dwgg" name="RepresentationKind">
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_MHVRcNeoEeSTpeYJP6Dwgg" name="Shape"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_OdVfgNeoEeSTpeYJP6Dwgg" name="Label"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_QDasgNeoEeSTpeYJP6Dwgg" name="Link"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_R1a1oNeoEeSTpeYJP6Dwgg" name="BorderItem"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_TT8pINeoEeSTpeYJP6Dwgg" name="BorderItemLabel"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_e5izQNeoEeSTpeYJP6Dwgg" name="Custom"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_4OcUENeqEeSTpeYJP6Dwgg" name="Compartments">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_AuetYNepEeSTpeYJP6Dwgg" name="hint">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_VnXAwNepEeSTpeYJP6Dwgg">
+ <body>This a id for a compartment of label for example:&#xD;
+&quot;flow ports&quot; for the name of flow port compartment,&#xD;
+&quot;Operation BorderItem Label&quot; to identifier the labler around a border item that is a operation.&#xD;
+If is used, the graphical element is null.</body>
+ </ownedComment>
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_E8HygNepEeSTpeYJP6Dwgg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_E8IZkNepEeSTpeYJP6Dwgg" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_EJHWUterEeSTpeYJP6Dwgg" name="children" type="_32MTgNenEeSTpeYJP6Dwgg" association="_EJGIMNerEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_LUTxsNerEeSTpeYJP6Dwgg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_LUU_0NerEeSTpeYJP6Dwgg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_P5PVcNerEeSTpeYJP6Dwgg" name="kind" type="_ReqbINerEeSTpeYJP6Dwgg"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_BhH00Ne1EeSYm5n6c73Y-g" name="name">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_-5AtoNe1EeSNDtqi0sM-EA" name="editPartQualifiedName">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Bm2M4Ne2EeSNDtqi0sM-EA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_Bm4CENe2EeSNDtqi0sM-EA" value="1"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_7q_TcNeqEeSTpeYJP6Dwgg" name="A_compartments_representation" memberEnd="_7rSOYNeqEeSTpeYJP6Dwgg _7rSOYdeqEeSTpeYJP6Dwgg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7rPyINeqEeSTpeYJP6Dwgg" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_7rPyIdeqEeSTpeYJP6Dwgg" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_7rSOYdeqEeSTpeYJP6Dwgg" name="representation" type="_32MTgNenEeSTpeYJP6Dwgg" association="_7q_TcNeqEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Abw60NerEeSTpeYJP6Dwgg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_AbywANerEeSTpeYJP6Dwgg" value="*"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_EJGIMNerEeSTpeYJP6Dwgg" name="A_representation_compartments" memberEnd="_EJHWUterEeSTpeYJP6Dwgg _EJH9YNerEeSTpeYJP6Dwgg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_EJHWUNerEeSTpeYJP6Dwgg" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EJHWUderEeSTpeYJP6Dwgg" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_EJH9YNerEeSTpeYJP6Dwgg" name="owner" type="_4OcUENeqEeSTpeYJP6Dwgg" association="_EJGIMNerEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HdGOkNe2EeSNDtqi0sM-EA" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HdIDwNe2EeSNDtqi0sM-EA" value="*"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Enumeration" xmi:id="_ReqbINerEeSTpeYJP6Dwgg" name="CompartmentKind">
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_T2bjwNerEeSTpeYJP6Dwgg" name="list"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_WGRfcNerEeSTpeYJP6Dwgg" name="XY"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_jaw3gNevEeSTpeYJP6Dwgg" name="RepresentationLibrary">
+ <generalization xmi:type="uml:Generalization" xmi:id="_2SMQgNevEeSTpeYJP6Dwgg" general="_zsTzYNevEeSTpeYJP6Dwgg"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_ykXT4tevEeSTpeYJP6Dwgg" name="representations" type="_32MTgNenEeSTpeYJP6Dwgg" aggregation="composite" association="_ykWs0NevEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_9Qk-8NevEeSTpeYJP6Dwgg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_9QlmANevEeSTpeYJP6Dwgg" value="*"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_syrpINevEeSTpeYJP6Dwgg" name="CompartmentLibrary">
+ <generalization xmi:type="uml:Generalization" xmi:id="_1o-UYNevEeSTpeYJP6Dwgg" general="_zsTzYNevEeSTpeYJP6Dwgg"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_x4MxcNevEeSTpeYJP6Dwgg" name="compartments" type="_4OcUENeqEeSTpeYJP6Dwgg" aggregation="composite" association="_x4LjUNevEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8UJy8NevEeSTpeYJP6Dwgg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8UKaANevEeSTpeYJP6Dwgg" value="*"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_x4LjUNevEeSTpeYJP6Dwgg" name="A_compartments_compartmentlibrary" memberEnd="_x4MxcNevEeSTpeYJP6Dwgg _x4MxcdevEeSTpeYJP6Dwgg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_x4MKYNevEeSTpeYJP6Dwgg" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_x4MKYdevEeSTpeYJP6Dwgg" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_x4MxcdevEeSTpeYJP6Dwgg" name="compartmentlibrary" type="_syrpINevEeSTpeYJP6Dwgg" association="_x4LjUNevEeSTpeYJP6Dwgg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_ykWs0NevEeSTpeYJP6Dwgg" name="A_representation_representationlibrary" memberEnd="_ykXT4tevEeSTpeYJP6Dwgg _ykX68NevEeSTpeYJP6Dwgg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ykXT4NevEeSTpeYJP6Dwgg" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ykXT4devEeSTpeYJP6Dwgg" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_ykX68NevEeSTpeYJP6Dwgg" name="representationlibrary" type="_jaw3gNevEeSTpeYJP6Dwgg" association="_ykWs0NevEeSTpeYJP6Dwgg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zsTzYNevEeSTpeYJP6Dwgg" name="Library" isAbstract="true">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_2H52oNewEeSTpeYJP6Dwgg" name="name">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_FvIfoNewEeSTpeYJP6Dwgg" name="UseContext">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_IS8gMNewEeSTpeYJP6Dwgg" name="DiagramType">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_L23S4dewEeSTpeYJP6Dwgg" name="representations" type="_32MTgNenEeSTpeYJP6Dwgg" association="_L22EwNewEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Mu7jUNewEeSTpeYJP6Dwgg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_Mu8KYNewEeSTpeYJP6Dwgg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_5Q_ugNewEeSTpeYJP6Dwgg" name="name">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_7BmY8Ng-EeSLXqlejJgoBg" name="GmftRepresentations" type="_uzCKUNg-EeSLXqlejJgoBg" aggregation="composite" association="_7Bg5YNg-EeSLXqlejJgoBg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="__uwroNg-EeSLXqlejJgoBg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="__ux5wNg-EeSLXqlejJgoBg" value="*"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_L22EwNewEeSTpeYJP6Dwgg" name="A_representation_usecontext" memberEnd="_L23S4dewEeSTpeYJP6Dwgg _L24hANewEeSTpeYJP6Dwgg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_L22r0NewEeSTpeYJP6Dwgg" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_L23S4NewEeSTpeYJP6Dwgg" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_L24hANewEeSTpeYJP6Dwgg" name="usecontext" type="_FvIfoNewEeSTpeYJP6Dwgg" association="_L22EwNewEeSTpeYJP6Dwgg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_mFdtwNewEeSTpeYJP6Dwgg" name="DiagramExpansion">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_qaDvctewEeSTpeYJP6Dwgg" name="usages" type="_FvIfoNewEeSTpeYJP6Dwgg" aggregation="composite" association="_qaDIYNewEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s8U34NewEeSTpeYJP6Dwgg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s8Ve8NewEeSTpeYJP6Dwgg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_q-6wAtewEeSTpeYJP6Dwgg" name="libraries" type="_zsTzYNevEeSTpeYJP6Dwgg" aggregation="composite" association="_q-6I8NewEeSTpeYJP6Dwgg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_whr1ANewEeSTpeYJP6Dwgg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_whscENewEeSTpeYJP6Dwgg" value="*"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_qaDIYNewEeSTpeYJP6Dwgg" name="A_usecontext_diagramexpansion" memberEnd="_qaDvctewEeSTpeYJP6Dwgg _qaDvc9ewEeSTpeYJP6Dwgg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qaDvcNewEeSTpeYJP6Dwgg" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qaDvcdewEeSTpeYJP6Dwgg" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_qaDvc9ewEeSTpeYJP6Dwgg" name="diagramexpansion" type="_mFdtwNewEeSTpeYJP6Dwgg" association="_qaDIYNewEeSTpeYJP6Dwgg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_q-6I8NewEeSTpeYJP6Dwgg" name="A_library_diagramexpansion" memberEnd="_q-6wAtewEeSTpeYJP6Dwgg _q-6wA9ewEeSTpeYJP6Dwgg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_q-6wANewEeSTpeYJP6Dwgg" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_q-6wAdewEeSTpeYJP6Dwgg" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_q-6wA9ewEeSTpeYJP6Dwgg" name="diagramexpansion" type="_mFdtwNewEeSTpeYJP6Dwgg" association="_q-6I8NewEeSTpeYJP6Dwgg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_uzCKUNg-EeSLXqlejJgoBg" name="GMFT_Based_Representation">
+ <generalization xmi:type="uml:Generalization" xmi:id="_28b6YNg-EeSLXqlejJgoBg" general="_32MTgNenEeSTpeYJP6Dwgg"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_UiNH0NevEeSTpeYJP6Dwgg" name="reusedID">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_YGfG4NevEeSTpeYJP6Dwgg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_YGft8NevEeSTpeYJP6Dwgg" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_MRM4gNg_EeSLXqlejJgoBg" name="name">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_7Bg5YNg-EeSLXqlejJgoBg" name="A_gmftrepresentation_usecontext" memberEnd="_7BmY8Ng-EeSLXqlejJgoBg _7BnAANg-EeSLXqlejJgoBg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7Bj8sNg-EeSLXqlejJgoBg" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_7BkjwNg-EeSLXqlejJgoBg" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_7BnAANg-EeSLXqlejJgoBg" name="usecontext" type="_FvIfoNewEeSTpeYJP6Dwgg" association="_7Bg5YNg-EeSLXqlejJgoBg"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_khXM0NenEeSTpeYJP6Dwgg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_khaQINenEeSTpeYJP6Dwgg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Ecore.profile.uml#_0"/>
+ </profileApplication>
+ </uml:Model>
+ <Ecore:EPackage xmi:id="_osIkINenEeSTpeYJP6Dwgg" base_Package="_haqhoNenEeSTpeYJP6Dwgg"/>
+</xmi:XMI>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/expansionModel.ecore b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/expansionModel.ecore
new file mode 100644
index 00000000000..9acada29742
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/expansionModel.ecore
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="expansionmodel" nsURI="http:///expansionmodel.ecore" nsPrefix="expansionmodel">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="ExpansionModel"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass" name="Representation">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="editPartQualifiedName"
+ ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" ordered="false" lowerBound="1"
+ eType="#//RepresentationKind"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="graphicalElementType" ordered="false"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="compartments" ordered="false"
+ upperBound="-1" eType="#//Compartments"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="viewFactory" ordered="false"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="RepresentationKind">
+ <eLiterals name="shape">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="Shape"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="label" value="1">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="Label"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="link" value="2">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="Link"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="borderItem" value="3">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="BorderItem"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="borderItemLabel" value="4">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="BorderItemLabel"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="custom" value="5">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="Custom"/>
+ </eAnnotations>
+ </eLiterals>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Compartments">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="hint" ordered="false" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="children" ordered="false"
+ lowerBound="1" upperBound="-1" eType="#//Representation"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" ordered="false" lowerBound="1"
+ eType="#//CompartmentKind"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="editPartQualifiedName"
+ ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="CompartmentKind">
+ <eLiterals name="list"/>
+ <eLiterals name="xy" value="1">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="XY"/>
+ </eAnnotations>
+ </eLiterals>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="RepresentationLibrary" eSuperTypes="#//Library">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="representations" ordered="false"
+ lowerBound="1" upperBound="-1" eType="#//Representation" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Library" abstract="true">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="CompartmentLibrary" eSuperTypes="#//Library">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="compartments" ordered="false"
+ lowerBound="1" upperBound="-1" eType="#//Compartments" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="UseContext">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="diagramType" ordered="false"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="DiagramType"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="representations" ordered="false"
+ lowerBound="1" upperBound="-1" eType="#//Representation"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="gmftRepresentations" ordered="false"
+ upperBound="-1" eType="#//GmftBasedRepresentation" containment="true">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="GmftRepresentations"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="GmftBasedRepresentation" eSuperTypes="#//Representation">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="GMFT_Based_Representation"/>
+ </eAnnotations>
+ <eAnnotations source="duplicates">
+ <contents xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="redefines" references="#//Representation/name"/>
+ </contents>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="reusedId" ordered="false"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details key="originalName" value="reusedID"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DiagramExpansion">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="usages" ordered="false"
+ lowerBound="1" upperBound="-1" eType="#//UseContext" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="libraries" ordered="false"
+ upperBound="-1" eType="#//Library" containment="true"/>
+ </eClassifiers>
+</ecore:EPackage>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/expansionModel.genmodel b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/expansionModel.genmodel
new file mode 100644
index 00000000000..2e5e1b1c2ba
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/expansionModel.genmodel
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.infra.gmfdiag.common/src-gen"
+ editDirectory="/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/src" editorDirectory="/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/src"
+ modelPluginID="org.eclipse.papyrus.infra.gmfdiag.common" modelName="ExpansionModel"
+ editPluginClass="org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.provider.ExpansionModelEditPlugin"
+ editorPluginClass="org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.presentation.ExpansionModelEditorPlugin"
+ rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" testSuiteClass="org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.tests.ExpansionModelAllTests"
+ importerID="org.eclipse.emf.importer.ecore" complianceLevel="6.0" copyrightFields="false"
+ editPluginID="org.eclipse.papyrus.infra.gmfdiag.expansion.edit" editorPluginID="org.eclipse.papyrus.infra.gmfdiag.expansion.editor"
+ operationReflection="true" importOrganizing="true">
+ <foreignModel>expansionModel.ecore</foreignModel>
+ <genPackages prefix="ExpansionModel" basePackage="org.eclipse.papyrus.infra.gmfdiag.common"
+ disposableProviderFactory="true" ecorePackage="expansionModel.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="expansionModel.ecore#//RepresentationKind">
+ <genEnumLiterals ecoreEnumLiteral="expansionModel.ecore#//RepresentationKind/shape"/>
+ <genEnumLiterals ecoreEnumLiteral="expansionModel.ecore#//RepresentationKind/label"/>
+ <genEnumLiterals ecoreEnumLiteral="expansionModel.ecore#//RepresentationKind/link"/>
+ <genEnumLiterals ecoreEnumLiteral="expansionModel.ecore#//RepresentationKind/borderItem"/>
+ <genEnumLiterals ecoreEnumLiteral="expansionModel.ecore#//RepresentationKind/borderItemLabel"/>
+ <genEnumLiterals ecoreEnumLiteral="expansionModel.ecore#//RepresentationKind/custom"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="expansionModel.ecore#//CompartmentKind">
+ <genEnumLiterals ecoreEnumLiteral="expansionModel.ecore#//CompartmentKind/list"/>
+ <genEnumLiterals ecoreEnumLiteral="expansionModel.ecore#//CompartmentKind/xy"/>
+ </genEnums>
+ <genClasses ecoreClass="expansionModel.ecore#//Representation">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Representation/editPartQualifiedName"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Representation/kind"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Representation/graphicalElementType"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference expansionModel.ecore#//Representation/compartments"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Representation/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Representation/viewFactory"/>
+ </genClasses>
+ <genClasses ecoreClass="expansionModel.ecore#//Compartments">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Compartments/hint"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference expansionModel.ecore#//Compartments/children"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Compartments/kind"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Compartments/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Compartments/editPartQualifiedName"/>
+ </genClasses>
+ <genClasses ecoreClass="expansionModel.ecore#//RepresentationLibrary">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference expansionModel.ecore#//RepresentationLibrary/representations"/>
+ </genClasses>
+ <genClasses ecoreClass="expansionModel.ecore#//Library">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//Library/name"/>
+ </genClasses>
+ <genClasses ecoreClass="expansionModel.ecore#//CompartmentLibrary">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference expansionModel.ecore#//CompartmentLibrary/compartments"/>
+ </genClasses>
+ <genClasses ecoreClass="expansionModel.ecore#//UseContext">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//UseContext/diagramType"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference expansionModel.ecore#//UseContext/representations"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//UseContext/name"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference expansionModel.ecore#//UseContext/gmftRepresentations"/>
+ </genClasses>
+ <genClasses ecoreClass="expansionModel.ecore#//GmftBasedRepresentation">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute expansionModel.ecore#//GmftBasedRepresentation/reusedId"/>
+ </genClasses>
+ <genClasses ecoreClass="expansionModel.ecore#//DiagramExpansion">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference expansionModel.ecore#//DiagramExpansion/usages"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference expansionModel.ecore#//DiagramExpansion/libraries"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml
index 0e15e5e0b51..d136b663a58 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml
@@ -437,4 +437,12 @@
</Priority>
</IconProvider>
</extension>
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <!-- @generated expansionModel -->
+ <package
+ uri="http:///expansionmodel.ecore"
+ class="org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage"
+ genModel="model/expansionModel.genmodel"/>
+ </extension>
+
</plugin>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/CompartmentKind.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/CompartmentKind.java
new file mode 100644
index 00000000000..ad660e12cd1
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/CompartmentKind.java
@@ -0,0 +1,215 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Compartment Kind</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartmentKind()
+ * @model
+ * @generated
+ */
+public enum CompartmentKind implements Enumerator {
+ /**
+ * The '<em><b>List</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #LIST_VALUE
+ * @generated
+ * @ordered
+ */
+ LIST(0, "list", "list"),
+
+ /**
+ * The '<em><b>Xy</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #XY_VALUE
+ * @generated
+ * @ordered
+ */
+ XY(1, "xy", "xy");
+
+ /**
+ * The '<em><b>List</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>List</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #LIST
+ * @model name="list"
+ * @generated
+ * @ordered
+ */
+ public static final int LIST_VALUE = 0;
+
+ /**
+ * The '<em><b>Xy</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Xy</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #XY
+ * @model name="xy"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='XY'"
+ * @generated
+ * @ordered
+ */
+ public static final int XY_VALUE = 1;
+
+ /**
+ * An array of all the '<em><b>Compartment Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final CompartmentKind[] VALUES_ARRAY =
+ new CompartmentKind[] {
+ LIST,
+ XY,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Compartment Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<CompartmentKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Compartment Kind</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static CompartmentKind get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ CompartmentKind result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Compartment Kind</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static CompartmentKind getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ CompartmentKind result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Compartment Kind</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static CompartmentKind get(int value) {
+ switch (value) {
+ case LIST_VALUE: return LIST;
+ case XY_VALUE: return XY;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private CompartmentKind(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //CompartmentKind
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/CompartmentLibrary.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/CompartmentLibrary.java
new file mode 100644
index 00000000000..e44b4c7ef74
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/CompartmentLibrary.java
@@ -0,0 +1,40 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Compartment Library</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary#getCompartments <em>Compartments</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartmentLibrary()
+ * @model
+ * @generated
+ */
+public interface CompartmentLibrary extends Library {
+ /**
+ * Returns the value of the '<em><b>Compartments</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Compartments</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Compartments</em>' containment reference list.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartmentLibrary_Compartments()
+ * @model containment="true" required="true" ordered="false"
+ * @generated
+ */
+ EList<Compartments> getCompartments();
+
+} // CompartmentLibrary
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Compartments.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Compartments.java
new file mode 100644
index 00000000000..55d69879fd5
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Compartments.java
@@ -0,0 +1,153 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Compartments</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getHint <em>Hint</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getChildren <em>Children</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getKind <em>Kind</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getEditPartQualifiedName <em>Edit Part Qualified Name</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartments()
+ * @model
+ * @generated
+ */
+public interface Compartments extends EObject {
+ /**
+ * Returns the value of the '<em><b>Hint</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Hint</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Hint</em>' attribute.
+ * @see #setHint(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartments_Hint()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getHint();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getHint <em>Hint</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Hint</em>' attribute.
+ * @see #getHint()
+ * @generated
+ */
+ void setHint(String value);
+
+ /**
+ * Returns the value of the '<em><b>Children</b></em>' reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Children</em>' reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Children</em>' reference list.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartments_Children()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ EList<Representation> getChildren();
+
+ /**
+ * Returns the value of the '<em><b>Kind</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Kind</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Kind</em>' attribute.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind
+ * @see #setKind(CompartmentKind)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartments_Kind()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ CompartmentKind getKind();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getKind <em>Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Kind</em>' attribute.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind
+ * @see #getKind()
+ * @generated
+ */
+ void setKind(CompartmentKind value);
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartments_Name()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Edit Part Qualified Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Edit Part Qualified Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Edit Part Qualified Name</em>' attribute.
+ * @see #setEditPartQualifiedName(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getCompartments_EditPartQualifiedName()
+ * @model ordered="false"
+ * @generated
+ */
+ String getEditPartQualifiedName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getEditPartQualifiedName <em>Edit Part Qualified Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Edit Part Qualified Name</em>' attribute.
+ * @see #getEditPartQualifiedName()
+ * @generated
+ */
+ void setEditPartQualifiedName(String value);
+
+} // Compartments
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/DiagramExpansion.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/DiagramExpansion.java
new file mode 100644
index 00000000000..0b4cc644047
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/DiagramExpansion.java
@@ -0,0 +1,59 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Diagram Expansion</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion#getUsages <em>Usages</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion#getLibraries <em>Libraries</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getDiagramExpansion()
+ * @model
+ * @generated
+ */
+public interface DiagramExpansion extends EObject {
+ /**
+ * Returns the value of the '<em><b>Usages</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Usages</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Usages</em>' containment reference list.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getDiagramExpansion_Usages()
+ * @model containment="true" required="true" ordered="false"
+ * @generated
+ */
+ EList<UseContext> getUsages();
+
+ /**
+ * Returns the value of the '<em><b>Libraries</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Libraries</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Libraries</em>' containment reference list.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getDiagramExpansion_Libraries()
+ * @model containment="true" ordered="false"
+ * @generated
+ */
+ EList<Library> getLibraries();
+
+} // DiagramExpansion
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelFactory.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelFactory.java
new file mode 100644
index 00000000000..6411fd18b5d
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelFactory.java
@@ -0,0 +1,96 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage
+ * @generated
+ */
+public interface ExpansionModelFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ ExpansionModelFactory eINSTANCE = org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Representation</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Representation</em>'.
+ * @generated
+ */
+ Representation createRepresentation();
+
+ /**
+ * Returns a new object of class '<em>Compartments</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Compartments</em>'.
+ * @generated
+ */
+ Compartments createCompartments();
+
+ /**
+ * Returns a new object of class '<em>Representation Library</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Representation Library</em>'.
+ * @generated
+ */
+ RepresentationLibrary createRepresentationLibrary();
+
+ /**
+ * Returns a new object of class '<em>Compartment Library</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Compartment Library</em>'.
+ * @generated
+ */
+ CompartmentLibrary createCompartmentLibrary();
+
+ /**
+ * Returns a new object of class '<em>Use Context</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Use Context</em>'.
+ * @generated
+ */
+ UseContext createUseContext();
+
+ /**
+ * Returns a new object of class '<em>Gmft Based Representation</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Gmft Based Representation</em>'.
+ * @generated
+ */
+ GmftBasedRepresentation createGmftBasedRepresentation();
+
+ /**
+ * Returns a new object of class '<em>Diagram Expansion</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Diagram Expansion</em>'.
+ * @generated
+ */
+ DiagramExpansion createDiagramExpansion();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ ExpansionModelPackage getExpansionModelPackage();
+
+} //ExpansionModelFactory
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelPackage.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelPackage.java
new file mode 100644
index 00000000000..b21dd5ae18c
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelPackage.java
@@ -0,0 +1,1191 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelFactory
+ * @model kind="package"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='ExpansionModel'"
+ * @generated
+ */
+public interface ExpansionModelPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "expansionmodel";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http:///expansionmodel.ecore";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "expansionmodel";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ ExpansionModelPackage eINSTANCE = org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl <em>Representation</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getRepresentation()
+ * @generated
+ */
+ int REPRESENTATION = 0;
+
+ /**
+ * The feature id for the '<em><b>Edit Part Qualified Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION__EDIT_PART_QUALIFIED_NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Kind</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION__KIND = 1;
+
+ /**
+ * The feature id for the '<em><b>Graphical Element Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION__GRAPHICAL_ELEMENT_TYPE = 2;
+
+ /**
+ * The feature id for the '<em><b>Compartments</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION__COMPARTMENTS = 3;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION__NAME = 4;
+
+ /**
+ * The feature id for the '<em><b>View Factory</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION__VIEW_FACTORY = 5;
+
+ /**
+ * The number of structural features of the '<em>Representation</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION_FEATURE_COUNT = 6;
+
+ /**
+ * The number of operations of the '<em>Representation</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION_OPERATION_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl <em>Compartments</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getCompartments()
+ * @generated
+ */
+ int COMPARTMENTS = 1;
+
+ /**
+ * The feature id for the '<em><b>Hint</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENTS__HINT = 0;
+
+ /**
+ * The feature id for the '<em><b>Children</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENTS__CHILDREN = 1;
+
+ /**
+ * The feature id for the '<em><b>Kind</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENTS__KIND = 2;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENTS__NAME = 3;
+
+ /**
+ * The feature id for the '<em><b>Edit Part Qualified Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENTS__EDIT_PART_QUALIFIED_NAME = 4;
+
+ /**
+ * The number of structural features of the '<em>Compartments</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENTS_FEATURE_COUNT = 5;
+
+ /**
+ * The number of operations of the '<em>Compartments</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENTS_OPERATION_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.LibraryImpl <em>Library</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.LibraryImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getLibrary()
+ * @generated
+ */
+ int LIBRARY = 3;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LIBRARY__NAME = 0;
+
+ /**
+ * The number of structural features of the '<em>Library</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LIBRARY_FEATURE_COUNT = 1;
+
+ /**
+ * The number of operations of the '<em>Library</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LIBRARY_OPERATION_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationLibraryImpl <em>Representation Library</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationLibraryImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getRepresentationLibrary()
+ * @generated
+ */
+ int REPRESENTATION_LIBRARY = 2;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION_LIBRARY__NAME = LIBRARY__NAME;
+
+ /**
+ * The feature id for the '<em><b>Representations</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION_LIBRARY__REPRESENTATIONS = LIBRARY_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Representation Library</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION_LIBRARY_FEATURE_COUNT = LIBRARY_FEATURE_COUNT + 1;
+
+ /**
+ * The number of operations of the '<em>Representation Library</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REPRESENTATION_LIBRARY_OPERATION_COUNT = LIBRARY_OPERATION_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentLibraryImpl <em>Compartment Library</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentLibraryImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getCompartmentLibrary()
+ * @generated
+ */
+ int COMPARTMENT_LIBRARY = 4;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENT_LIBRARY__NAME = LIBRARY__NAME;
+
+ /**
+ * The feature id for the '<em><b>Compartments</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENT_LIBRARY__COMPARTMENTS = LIBRARY_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Compartment Library</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENT_LIBRARY_FEATURE_COUNT = LIBRARY_FEATURE_COUNT + 1;
+
+ /**
+ * The number of operations of the '<em>Compartment Library</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPARTMENT_LIBRARY_OPERATION_COUNT = LIBRARY_OPERATION_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.UseContextImpl <em>Use Context</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.UseContextImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getUseContext()
+ * @generated
+ */
+ int USE_CONTEXT = 5;
+
+ /**
+ * The feature id for the '<em><b>Diagram Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int USE_CONTEXT__DIAGRAM_TYPE = 0;
+
+ /**
+ * The feature id for the '<em><b>Representations</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int USE_CONTEXT__REPRESENTATIONS = 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int USE_CONTEXT__NAME = 2;
+
+ /**
+ * The feature id for the '<em><b>Gmft Representations</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int USE_CONTEXT__GMFT_REPRESENTATIONS = 3;
+
+ /**
+ * The number of structural features of the '<em>Use Context</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int USE_CONTEXT_FEATURE_COUNT = 4;
+
+ /**
+ * The number of operations of the '<em>Use Context</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int USE_CONTEXT_OPERATION_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.GmftBasedRepresentationImpl <em>Gmft Based Representation</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.GmftBasedRepresentationImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getGmftBasedRepresentation()
+ * @generated
+ */
+ int GMFT_BASED_REPRESENTATION = 6;
+
+ /**
+ * The feature id for the '<em><b>Edit Part Qualified Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION__EDIT_PART_QUALIFIED_NAME = REPRESENTATION__EDIT_PART_QUALIFIED_NAME;
+
+ /**
+ * The feature id for the '<em><b>Kind</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION__KIND = REPRESENTATION__KIND;
+
+ /**
+ * The feature id for the '<em><b>Graphical Element Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION__GRAPHICAL_ELEMENT_TYPE = REPRESENTATION__GRAPHICAL_ELEMENT_TYPE;
+
+ /**
+ * The feature id for the '<em><b>Compartments</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION__COMPARTMENTS = REPRESENTATION__COMPARTMENTS;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION__NAME = REPRESENTATION__NAME;
+
+ /**
+ * The feature id for the '<em><b>View Factory</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION__VIEW_FACTORY = REPRESENTATION__VIEW_FACTORY;
+
+ /**
+ * The feature id for the '<em><b>Reused Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION__REUSED_ID = REPRESENTATION_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Gmft Based Representation</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION_FEATURE_COUNT = REPRESENTATION_FEATURE_COUNT + 1;
+
+ /**
+ * The number of operations of the '<em>Gmft Based Representation</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GMFT_BASED_REPRESENTATION_OPERATION_COUNT = REPRESENTATION_OPERATION_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.DiagramExpansionImpl <em>Diagram Expansion</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.DiagramExpansionImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getDiagramExpansion()
+ * @generated
+ */
+ int DIAGRAM_EXPANSION = 7;
+
+ /**
+ * The feature id for the '<em><b>Usages</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DIAGRAM_EXPANSION__USAGES = 0;
+
+ /**
+ * The feature id for the '<em><b>Libraries</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DIAGRAM_EXPANSION__LIBRARIES = 1;
+
+ /**
+ * The number of structural features of the '<em>Diagram Expansion</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DIAGRAM_EXPANSION_FEATURE_COUNT = 2;
+
+ /**
+ * The number of operations of the '<em>Diagram Expansion</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DIAGRAM_EXPANSION_OPERATION_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind <em>Representation Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getRepresentationKind()
+ * @generated
+ */
+ int REPRESENTATION_KIND = 8;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind <em>Compartment Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getCompartmentKind()
+ * @generated
+ */
+ int COMPARTMENT_KIND = 9;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation <em>Representation</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Representation</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation
+ * @generated
+ */
+ EClass getRepresentation();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getEditPartQualifiedName <em>Edit Part Qualified Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Edit Part Qualified Name</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getEditPartQualifiedName()
+ * @see #getRepresentation()
+ * @generated
+ */
+ EAttribute getRepresentation_EditPartQualifiedName();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getKind <em>Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Kind</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getKind()
+ * @see #getRepresentation()
+ * @generated
+ */
+ EAttribute getRepresentation_Kind();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getGraphicalElementType <em>Graphical Element Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Graphical Element Type</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getGraphicalElementType()
+ * @see #getRepresentation()
+ * @generated
+ */
+ EAttribute getRepresentation_GraphicalElementType();
+
+ /**
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getCompartments <em>Compartments</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference list '<em>Compartments</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getCompartments()
+ * @see #getRepresentation()
+ * @generated
+ */
+ EReference getRepresentation_Compartments();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getName()
+ * @see #getRepresentation()
+ * @generated
+ */
+ EAttribute getRepresentation_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getViewFactory <em>View Factory</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>View Factory</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getViewFactory()
+ * @see #getRepresentation()
+ * @generated
+ */
+ EAttribute getRepresentation_ViewFactory();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments <em>Compartments</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Compartments</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments
+ * @generated
+ */
+ EClass getCompartments();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getHint <em>Hint</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Hint</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getHint()
+ * @see #getCompartments()
+ * @generated
+ */
+ EAttribute getCompartments_Hint();
+
+ /**
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getChildren <em>Children</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference list '<em>Children</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getChildren()
+ * @see #getCompartments()
+ * @generated
+ */
+ EReference getCompartments_Children();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getKind <em>Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Kind</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getKind()
+ * @see #getCompartments()
+ * @generated
+ */
+ EAttribute getCompartments_Kind();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getName()
+ * @see #getCompartments()
+ * @generated
+ */
+ EAttribute getCompartments_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getEditPartQualifiedName <em>Edit Part Qualified Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Edit Part Qualified Name</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments#getEditPartQualifiedName()
+ * @see #getCompartments()
+ * @generated
+ */
+ EAttribute getCompartments_EditPartQualifiedName();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary <em>Representation Library</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Representation Library</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary
+ * @generated
+ */
+ EClass getRepresentationLibrary();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary#getRepresentations <em>Representations</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Representations</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary#getRepresentations()
+ * @see #getRepresentationLibrary()
+ * @generated
+ */
+ EReference getRepresentationLibrary_Representations();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library <em>Library</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Library</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library
+ * @generated
+ */
+ EClass getLibrary();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library#getName()
+ * @see #getLibrary()
+ * @generated
+ */
+ EAttribute getLibrary_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary <em>Compartment Library</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Compartment Library</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary
+ * @generated
+ */
+ EClass getCompartmentLibrary();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary#getCompartments <em>Compartments</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Compartments</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary#getCompartments()
+ * @see #getCompartmentLibrary()
+ * @generated
+ */
+ EReference getCompartmentLibrary_Compartments();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext <em>Use Context</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Use Context</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext
+ * @generated
+ */
+ EClass getUseContext();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getDiagramType <em>Diagram Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Diagram Type</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getDiagramType()
+ * @see #getUseContext()
+ * @generated
+ */
+ EAttribute getUseContext_DiagramType();
+
+ /**
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getRepresentations <em>Representations</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference list '<em>Representations</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getRepresentations()
+ * @see #getUseContext()
+ * @generated
+ */
+ EReference getUseContext_Representations();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getName()
+ * @see #getUseContext()
+ * @generated
+ */
+ EAttribute getUseContext_Name();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getGmftRepresentations <em>Gmft Representations</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Gmft Representations</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getGmftRepresentations()
+ * @see #getUseContext()
+ * @generated
+ */
+ EReference getUseContext_GmftRepresentations();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation <em>Gmft Based Representation</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Gmft Based Representation</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation
+ * @generated
+ */
+ EClass getGmftBasedRepresentation();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation#getReusedId <em>Reused Id</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Reused Id</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation#getReusedId()
+ * @see #getGmftBasedRepresentation()
+ * @generated
+ */
+ EAttribute getGmftBasedRepresentation_ReusedId();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion <em>Diagram Expansion</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Diagram Expansion</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion
+ * @generated
+ */
+ EClass getDiagramExpansion();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion#getUsages <em>Usages</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Usages</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion#getUsages()
+ * @see #getDiagramExpansion()
+ * @generated
+ */
+ EReference getDiagramExpansion_Usages();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion#getLibraries <em>Libraries</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Libraries</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion#getLibraries()
+ * @see #getDiagramExpansion()
+ * @generated
+ */
+ EReference getDiagramExpansion_Libraries();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind <em>Representation Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Representation Kind</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind
+ * @generated
+ */
+ EEnum getRepresentationKind();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind <em>Compartment Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Compartment Kind</em>'.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind
+ * @generated
+ */
+ EEnum getCompartmentKind();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ ExpansionModelFactory getExpansionModelFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl <em>Representation</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getRepresentation()
+ * @generated
+ */
+ EClass REPRESENTATION = eINSTANCE.getRepresentation();
+
+ /**
+ * The meta object literal for the '<em><b>Edit Part Qualified Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REPRESENTATION__EDIT_PART_QUALIFIED_NAME = eINSTANCE.getRepresentation_EditPartQualifiedName();
+
+ /**
+ * The meta object literal for the '<em><b>Kind</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REPRESENTATION__KIND = eINSTANCE.getRepresentation_Kind();
+
+ /**
+ * The meta object literal for the '<em><b>Graphical Element Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REPRESENTATION__GRAPHICAL_ELEMENT_TYPE = eINSTANCE.getRepresentation_GraphicalElementType();
+
+ /**
+ * The meta object literal for the '<em><b>Compartments</b></em>' reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference REPRESENTATION__COMPARTMENTS = eINSTANCE.getRepresentation_Compartments();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REPRESENTATION__NAME = eINSTANCE.getRepresentation_Name();
+
+ /**
+ * The meta object literal for the '<em><b>View Factory</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REPRESENTATION__VIEW_FACTORY = eINSTANCE.getRepresentation_ViewFactory();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl <em>Compartments</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getCompartments()
+ * @generated
+ */
+ EClass COMPARTMENTS = eINSTANCE.getCompartments();
+
+ /**
+ * The meta object literal for the '<em><b>Hint</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute COMPARTMENTS__HINT = eINSTANCE.getCompartments_Hint();
+
+ /**
+ * The meta object literal for the '<em><b>Children</b></em>' reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference COMPARTMENTS__CHILDREN = eINSTANCE.getCompartments_Children();
+
+ /**
+ * The meta object literal for the '<em><b>Kind</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute COMPARTMENTS__KIND = eINSTANCE.getCompartments_Kind();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute COMPARTMENTS__NAME = eINSTANCE.getCompartments_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Edit Part Qualified Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute COMPARTMENTS__EDIT_PART_QUALIFIED_NAME = eINSTANCE.getCompartments_EditPartQualifiedName();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationLibraryImpl <em>Representation Library</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationLibraryImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getRepresentationLibrary()
+ * @generated
+ */
+ EClass REPRESENTATION_LIBRARY = eINSTANCE.getRepresentationLibrary();
+
+ /**
+ * The meta object literal for the '<em><b>Representations</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference REPRESENTATION_LIBRARY__REPRESENTATIONS = eINSTANCE.getRepresentationLibrary_Representations();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.LibraryImpl <em>Library</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.LibraryImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getLibrary()
+ * @generated
+ */
+ EClass LIBRARY = eINSTANCE.getLibrary();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute LIBRARY__NAME = eINSTANCE.getLibrary_Name();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentLibraryImpl <em>Compartment Library</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentLibraryImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getCompartmentLibrary()
+ * @generated
+ */
+ EClass COMPARTMENT_LIBRARY = eINSTANCE.getCompartmentLibrary();
+
+ /**
+ * The meta object literal for the '<em><b>Compartments</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference COMPARTMENT_LIBRARY__COMPARTMENTS = eINSTANCE.getCompartmentLibrary_Compartments();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.UseContextImpl <em>Use Context</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.UseContextImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getUseContext()
+ * @generated
+ */
+ EClass USE_CONTEXT = eINSTANCE.getUseContext();
+
+ /**
+ * The meta object literal for the '<em><b>Diagram Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute USE_CONTEXT__DIAGRAM_TYPE = eINSTANCE.getUseContext_DiagramType();
+
+ /**
+ * The meta object literal for the '<em><b>Representations</b></em>' reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference USE_CONTEXT__REPRESENTATIONS = eINSTANCE.getUseContext_Representations();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute USE_CONTEXT__NAME = eINSTANCE.getUseContext_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Gmft Representations</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference USE_CONTEXT__GMFT_REPRESENTATIONS = eINSTANCE.getUseContext_GmftRepresentations();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.GmftBasedRepresentationImpl <em>Gmft Based Representation</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.GmftBasedRepresentationImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getGmftBasedRepresentation()
+ * @generated
+ */
+ EClass GMFT_BASED_REPRESENTATION = eINSTANCE.getGmftBasedRepresentation();
+
+ /**
+ * The meta object literal for the '<em><b>Reused Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute GMFT_BASED_REPRESENTATION__REUSED_ID = eINSTANCE.getGmftBasedRepresentation_ReusedId();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.DiagramExpansionImpl <em>Diagram Expansion</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.DiagramExpansionImpl
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getDiagramExpansion()
+ * @generated
+ */
+ EClass DIAGRAM_EXPANSION = eINSTANCE.getDiagramExpansion();
+
+ /**
+ * The meta object literal for the '<em><b>Usages</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DIAGRAM_EXPANSION__USAGES = eINSTANCE.getDiagramExpansion_Usages();
+
+ /**
+ * The meta object literal for the '<em><b>Libraries</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DIAGRAM_EXPANSION__LIBRARIES = eINSTANCE.getDiagramExpansion_Libraries();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind <em>Representation Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getRepresentationKind()
+ * @generated
+ */
+ EEnum REPRESENTATION_KIND = eINSTANCE.getRepresentationKind();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind <em>Compartment Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.ExpansionModelPackageImpl#getCompartmentKind()
+ * @generated
+ */
+ EEnum COMPARTMENT_KIND = eINSTANCE.getCompartmentKind();
+
+ }
+
+} //ExpansionModelPackage
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/GmftBasedRepresentation.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/GmftBasedRepresentation.java
new file mode 100644
index 00000000000..b0ea81c5d96
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/GmftBasedRepresentation.java
@@ -0,0 +1,50 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Gmft Based Representation</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation#getReusedId <em>Reused Id</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getGmftBasedRepresentation()
+ * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='GMFT_Based_Representation'"
+ * @generated
+ */
+public interface GmftBasedRepresentation extends Representation {
+ /**
+ * Returns the value of the '<em><b>Reused Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Reused Id</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Reused Id</em>' attribute.
+ * @see #setReusedId(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getGmftBasedRepresentation_ReusedId()
+ * @model ordered="false"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='reusedID'"
+ * @generated
+ */
+ String getReusedId();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation#getReusedId <em>Reused Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Reused Id</em>' attribute.
+ * @see #getReusedId()
+ * @generated
+ */
+ void setReusedId(String value);
+
+} // GmftBasedRepresentation
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Library.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Library.java
new file mode 100644
index 00000000000..8eafb182355
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Library.java
@@ -0,0 +1,50 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Library</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library#getName <em>Name</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getLibrary()
+ * @model abstract="true"
+ * @generated
+ */
+public interface Library extends EObject {
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getLibrary_Name()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+} // Library
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Representation.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Representation.java
new file mode 100644
index 00000000000..f0b51fee647
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/Representation.java
@@ -0,0 +1,180 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Representation</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getEditPartQualifiedName <em>Edit Part Qualified Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getKind <em>Kind</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getGraphicalElementType <em>Graphical Element Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getCompartments <em>Compartments</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getViewFactory <em>View Factory</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentation()
+ * @model
+ * @generated
+ */
+public interface Representation extends EObject {
+ /**
+ * Returns the value of the '<em><b>Edit Part Qualified Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Edit Part Qualified Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Edit Part Qualified Name</em>' attribute.
+ * @see #setEditPartQualifiedName(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentation_EditPartQualifiedName()
+ * @model ordered="false"
+ * @generated
+ */
+ String getEditPartQualifiedName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getEditPartQualifiedName <em>Edit Part Qualified Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Edit Part Qualified Name</em>' attribute.
+ * @see #getEditPartQualifiedName()
+ * @generated
+ */
+ void setEditPartQualifiedName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Kind</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Kind</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Kind</em>' attribute.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind
+ * @see #setKind(RepresentationKind)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentation_Kind()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ RepresentationKind getKind();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getKind <em>Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Kind</em>' attribute.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind
+ * @see #getKind()
+ * @generated
+ */
+ void setKind(RepresentationKind value);
+
+ /**
+ * Returns the value of the '<em><b>Graphical Element Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Graphical Element Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Graphical Element Type</em>' attribute.
+ * @see #setGraphicalElementType(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentation_GraphicalElementType()
+ * @model ordered="false"
+ * @generated
+ */
+ String getGraphicalElementType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getGraphicalElementType <em>Graphical Element Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Graphical Element Type</em>' attribute.
+ * @see #getGraphicalElementType()
+ * @generated
+ */
+ void setGraphicalElementType(String value);
+
+ /**
+ * Returns the value of the '<em><b>Compartments</b></em>' reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Compartments</em>' reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Compartments</em>' reference list.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentation_Compartments()
+ * @model ordered="false"
+ * @generated
+ */
+ EList<Compartments> getCompartments();
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentation_Name()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>View Factory</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>View Factory</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>View Factory</em>' attribute.
+ * @see #setViewFactory(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentation_ViewFactory()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getViewFactory();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation#getViewFactory <em>View Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>View Factory</em>' attribute.
+ * @see #getViewFactory()
+ * @generated
+ */
+ void setViewFactory(String value);
+
+} // Representation
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/RepresentationKind.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/RepresentationKind.java
new file mode 100644
index 00000000000..445960d3fc4
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/RepresentationKind.java
@@ -0,0 +1,328 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Representation Kind</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentationKind()
+ * @model
+ * @generated
+ */
+public enum RepresentationKind implements Enumerator {
+ /**
+ * The '<em><b>Shape</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #SHAPE_VALUE
+ * @generated
+ * @ordered
+ */
+ SHAPE(0, "shape", "shape"),
+
+ /**
+ * The '<em><b>Label</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #LABEL_VALUE
+ * @generated
+ * @ordered
+ */
+ LABEL(1, "label", "label"),
+
+ /**
+ * The '<em><b>Link</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #LINK_VALUE
+ * @generated
+ * @ordered
+ */
+ LINK(2, "link", "link"),
+
+ /**
+ * The '<em><b>Border Item</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #BORDER_ITEM_VALUE
+ * @generated
+ * @ordered
+ */
+ BORDER_ITEM(3, "borderItem", "borderItem"),
+
+ /**
+ * The '<em><b>Border Item Label</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #BORDER_ITEM_LABEL_VALUE
+ * @generated
+ * @ordered
+ */
+ BORDER_ITEM_LABEL(4, "borderItemLabel", "borderItemLabel"),
+
+ /**
+ * The '<em><b>Custom</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #CUSTOM_VALUE
+ * @generated
+ * @ordered
+ */
+ CUSTOM(5, "custom", "custom");
+
+ /**
+ * The '<em><b>Shape</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Shape</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #SHAPE
+ * @model name="shape"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='Shape'"
+ * @generated
+ * @ordered
+ */
+ public static final int SHAPE_VALUE = 0;
+
+ /**
+ * The '<em><b>Label</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Label</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #LABEL
+ * @model name="label"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='Label'"
+ * @generated
+ * @ordered
+ */
+ public static final int LABEL_VALUE = 1;
+
+ /**
+ * The '<em><b>Link</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Link</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #LINK
+ * @model name="link"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='Link'"
+ * @generated
+ * @ordered
+ */
+ public static final int LINK_VALUE = 2;
+
+ /**
+ * The '<em><b>Border Item</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Border Item</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #BORDER_ITEM
+ * @model name="borderItem"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='BorderItem'"
+ * @generated
+ * @ordered
+ */
+ public static final int BORDER_ITEM_VALUE = 3;
+
+ /**
+ * The '<em><b>Border Item Label</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Border Item Label</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #BORDER_ITEM_LABEL
+ * @model name="borderItemLabel"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='BorderItemLabel'"
+ * @generated
+ * @ordered
+ */
+ public static final int BORDER_ITEM_LABEL_VALUE = 4;
+
+ /**
+ * The '<em><b>Custom</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Custom</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #CUSTOM
+ * @model name="custom"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='Custom'"
+ * @generated
+ * @ordered
+ */
+ public static final int CUSTOM_VALUE = 5;
+
+ /**
+ * An array of all the '<em><b>Representation Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final RepresentationKind[] VALUES_ARRAY =
+ new RepresentationKind[] {
+ SHAPE,
+ LABEL,
+ LINK,
+ BORDER_ITEM,
+ BORDER_ITEM_LABEL,
+ CUSTOM,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Representation Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<RepresentationKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Representation Kind</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static RepresentationKind get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ RepresentationKind result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Representation Kind</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static RepresentationKind getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ RepresentationKind result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Representation Kind</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static RepresentationKind get(int value) {
+ switch (value) {
+ case SHAPE_VALUE: return SHAPE;
+ case LABEL_VALUE: return LABEL;
+ case LINK_VALUE: return LINK;
+ case BORDER_ITEM_VALUE: return BORDER_ITEM;
+ case BORDER_ITEM_LABEL_VALUE: return BORDER_ITEM_LABEL;
+ case CUSTOM_VALUE: return CUSTOM;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private RepresentationKind(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //RepresentationKind
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/RepresentationLibrary.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/RepresentationLibrary.java
new file mode 100644
index 00000000000..db950216df3
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/RepresentationLibrary.java
@@ -0,0 +1,40 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Representation Library</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary#getRepresentations <em>Representations</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentationLibrary()
+ * @model
+ * @generated
+ */
+public interface RepresentationLibrary extends Library {
+ /**
+ * Returns the value of the '<em><b>Representations</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Representations</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Representations</em>' containment reference list.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getRepresentationLibrary_Representations()
+ * @model containment="true" required="true" ordered="false"
+ * @generated
+ */
+ EList<Representation> getRepresentations();
+
+} // RepresentationLibrary
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/UseContext.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/UseContext.java
new file mode 100644
index 00000000000..302eb50a7f4
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/UseContext.java
@@ -0,0 +1,115 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Use Context</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getDiagramType <em>Diagram Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getRepresentations <em>Representations</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getGmftRepresentations <em>Gmft Representations</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getUseContext()
+ * @model
+ * @generated
+ */
+public interface UseContext extends EObject {
+ /**
+ * Returns the value of the '<em><b>Diagram Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Diagram Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Diagram Type</em>' attribute.
+ * @see #setDiagramType(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getUseContext_DiagramType()
+ * @model required="true" ordered="false"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='DiagramType'"
+ * @generated
+ */
+ String getDiagramType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getDiagramType <em>Diagram Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Diagram Type</em>' attribute.
+ * @see #getDiagramType()
+ * @generated
+ */
+ void setDiagramType(String value);
+
+ /**
+ * Returns the value of the '<em><b>Representations</b></em>' reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Representations</em>' reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Representations</em>' reference list.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getUseContext_Representations()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ EList<Representation> getRepresentations();
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getUseContext_Name()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Gmft Representations</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Gmft Representations</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Gmft Representations</em>' containment reference list.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#getUseContext_GmftRepresentations()
+ * @model containment="true" ordered="false"
+ * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='GmftRepresentations'"
+ * @generated
+ */
+ EList<GmftBasedRepresentation> getGmftRepresentations();
+
+} // UseContext
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/CompartmentLibraryImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/CompartmentLibraryImpl.java
new file mode 100644
index 00000000000..47a15f0f698
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/CompartmentLibraryImpl.java
@@ -0,0 +1,150 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Compartment Library</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentLibraryImpl#getCompartments <em>Compartments</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class CompartmentLibraryImpl extends LibraryImpl implements CompartmentLibrary {
+ /**
+ * The cached value of the '{@link #getCompartments() <em>Compartments</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCompartments()
+ * @generated
+ * @ordered
+ */
+ protected EList<Compartments> compartments;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CompartmentLibraryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ExpansionModelPackage.Literals.COMPARTMENT_LIBRARY;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Compartments> getCompartments() {
+ if (compartments == null) {
+ compartments = new EObjectContainmentEList<Compartments>(Compartments.class, this, ExpansionModelPackage.COMPARTMENT_LIBRARY__COMPARTMENTS);
+ }
+ return compartments;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENT_LIBRARY__COMPARTMENTS:
+ return ((InternalEList<?>)getCompartments()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENT_LIBRARY__COMPARTMENTS:
+ return getCompartments();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENT_LIBRARY__COMPARTMENTS:
+ getCompartments().clear();
+ getCompartments().addAll((Collection<? extends Compartments>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENT_LIBRARY__COMPARTMENTS:
+ getCompartments().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENT_LIBRARY__COMPARTMENTS:
+ return compartments != null && !compartments.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //CompartmentLibraryImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/CompartmentsImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/CompartmentsImpl.java
new file mode 100644
index 00000000000..bffd5eccca7
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/CompartmentsImpl.java
@@ -0,0 +1,368 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Compartments</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl#getHint <em>Hint</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl#getChildren <em>Children</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl#getKind <em>Kind</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.CompartmentsImpl#getEditPartQualifiedName <em>Edit Part Qualified Name</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class CompartmentsImpl extends MinimalEObjectImpl.Container implements Compartments {
+ /**
+ * The default value of the '{@link #getHint() <em>Hint</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getHint()
+ * @generated
+ * @ordered
+ */
+ protected static final String HINT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getHint() <em>Hint</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getHint()
+ * @generated
+ * @ordered
+ */
+ protected String hint = HINT_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getChildren() <em>Children</em>}' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getChildren()
+ * @generated
+ * @ordered
+ */
+ protected EList<Representation> children;
+
+ /**
+ * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKind()
+ * @generated
+ * @ordered
+ */
+ protected static final CompartmentKind KIND_EDEFAULT = CompartmentKind.LIST;
+
+ /**
+ * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKind()
+ * @generated
+ * @ordered
+ */
+ protected CompartmentKind kind = KIND_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEditPartQualifiedName() <em>Edit Part Qualified Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEditPartQualifiedName()
+ * @generated
+ * @ordered
+ */
+ protected static final String EDIT_PART_QUALIFIED_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEditPartQualifiedName() <em>Edit Part Qualified Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEditPartQualifiedName()
+ * @generated
+ * @ordered
+ */
+ protected String editPartQualifiedName = EDIT_PART_QUALIFIED_NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CompartmentsImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ExpansionModelPackage.Literals.COMPARTMENTS;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getHint() {
+ return hint;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setHint(String newHint) {
+ String oldHint = hint;
+ hint = newHint;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.COMPARTMENTS__HINT, oldHint, hint));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Representation> getChildren() {
+ if (children == null) {
+ children = new EObjectResolvingEList<Representation>(Representation.class, this, ExpansionModelPackage.COMPARTMENTS__CHILDREN);
+ }
+ return children;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompartmentKind getKind() {
+ return kind;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setKind(CompartmentKind newKind) {
+ CompartmentKind oldKind = kind;
+ kind = newKind == null ? KIND_EDEFAULT : newKind;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.COMPARTMENTS__KIND, oldKind, kind));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.COMPARTMENTS__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEditPartQualifiedName() {
+ return editPartQualifiedName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEditPartQualifiedName(String newEditPartQualifiedName) {
+ String oldEditPartQualifiedName = editPartQualifiedName;
+ editPartQualifiedName = newEditPartQualifiedName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.COMPARTMENTS__EDIT_PART_QUALIFIED_NAME, oldEditPartQualifiedName, editPartQualifiedName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENTS__HINT:
+ return getHint();
+ case ExpansionModelPackage.COMPARTMENTS__CHILDREN:
+ return getChildren();
+ case ExpansionModelPackage.COMPARTMENTS__KIND:
+ return getKind();
+ case ExpansionModelPackage.COMPARTMENTS__NAME:
+ return getName();
+ case ExpansionModelPackage.COMPARTMENTS__EDIT_PART_QUALIFIED_NAME:
+ return getEditPartQualifiedName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENTS__HINT:
+ setHint((String)newValue);
+ return;
+ case ExpansionModelPackage.COMPARTMENTS__CHILDREN:
+ getChildren().clear();
+ getChildren().addAll((Collection<? extends Representation>)newValue);
+ return;
+ case ExpansionModelPackage.COMPARTMENTS__KIND:
+ setKind((CompartmentKind)newValue);
+ return;
+ case ExpansionModelPackage.COMPARTMENTS__NAME:
+ setName((String)newValue);
+ return;
+ case ExpansionModelPackage.COMPARTMENTS__EDIT_PART_QUALIFIED_NAME:
+ setEditPartQualifiedName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENTS__HINT:
+ setHint(HINT_EDEFAULT);
+ return;
+ case ExpansionModelPackage.COMPARTMENTS__CHILDREN:
+ getChildren().clear();
+ return;
+ case ExpansionModelPackage.COMPARTMENTS__KIND:
+ setKind(KIND_EDEFAULT);
+ return;
+ case ExpansionModelPackage.COMPARTMENTS__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case ExpansionModelPackage.COMPARTMENTS__EDIT_PART_QUALIFIED_NAME:
+ setEditPartQualifiedName(EDIT_PART_QUALIFIED_NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.COMPARTMENTS__HINT:
+ return HINT_EDEFAULT == null ? hint != null : !HINT_EDEFAULT.equals(hint);
+ case ExpansionModelPackage.COMPARTMENTS__CHILDREN:
+ return children != null && !children.isEmpty();
+ case ExpansionModelPackage.COMPARTMENTS__KIND:
+ return kind != KIND_EDEFAULT;
+ case ExpansionModelPackage.COMPARTMENTS__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case ExpansionModelPackage.COMPARTMENTS__EDIT_PART_QUALIFIED_NAME:
+ return EDIT_PART_QUALIFIED_NAME_EDEFAULT == null ? editPartQualifiedName != null : !EDIT_PART_QUALIFIED_NAME_EDEFAULT.equals(editPartQualifiedName);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (hint: ");
+ result.append(hint);
+ result.append(", kind: ");
+ result.append(kind);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", editPartQualifiedName: ");
+ result.append(editPartQualifiedName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //CompartmentsImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/DiagramExpansionImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/DiagramExpansionImpl.java
new file mode 100644
index 00000000000..103c95eea70
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/DiagramExpansionImpl.java
@@ -0,0 +1,189 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Diagram Expansion</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.DiagramExpansionImpl#getUsages <em>Usages</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.DiagramExpansionImpl#getLibraries <em>Libraries</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class DiagramExpansionImpl extends MinimalEObjectImpl.Container implements DiagramExpansion {
+ /**
+ * The cached value of the '{@link #getUsages() <em>Usages</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUsages()
+ * @generated
+ * @ordered
+ */
+ protected EList<UseContext> usages;
+
+ /**
+ * The cached value of the '{@link #getLibraries() <em>Libraries</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLibraries()
+ * @generated
+ * @ordered
+ */
+ protected EList<Library> libraries;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DiagramExpansionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ExpansionModelPackage.Literals.DIAGRAM_EXPANSION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<UseContext> getUsages() {
+ if (usages == null) {
+ usages = new EObjectContainmentEList<UseContext>(UseContext.class, this, ExpansionModelPackage.DIAGRAM_EXPANSION__USAGES);
+ }
+ return usages;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Library> getLibraries() {
+ if (libraries == null) {
+ libraries = new EObjectContainmentEList<Library>(Library.class, this, ExpansionModelPackage.DIAGRAM_EXPANSION__LIBRARIES);
+ }
+ return libraries;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__USAGES:
+ return ((InternalEList<?>)getUsages()).basicRemove(otherEnd, msgs);
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__LIBRARIES:
+ return ((InternalEList<?>)getLibraries()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__USAGES:
+ return getUsages();
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__LIBRARIES:
+ return getLibraries();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__USAGES:
+ getUsages().clear();
+ getUsages().addAll((Collection<? extends UseContext>)newValue);
+ return;
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__LIBRARIES:
+ getLibraries().clear();
+ getLibraries().addAll((Collection<? extends Library>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__USAGES:
+ getUsages().clear();
+ return;
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__LIBRARIES:
+ getLibraries().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__USAGES:
+ return usages != null && !usages.isEmpty();
+ case ExpansionModelPackage.DIAGRAM_EXPANSION__LIBRARIES:
+ return libraries != null && !libraries.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //DiagramExpansionImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/ExpansionModelFactoryImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/ExpansionModelFactoryImpl.java
new file mode 100644
index 00000000000..d789bc8fa95
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/ExpansionModelFactoryImpl.java
@@ -0,0 +1,236 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExpansionModelFactoryImpl extends EFactoryImpl implements ExpansionModelFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static ExpansionModelFactory init() {
+ try {
+ ExpansionModelFactory theExpansionModelFactory = (ExpansionModelFactory)EPackage.Registry.INSTANCE.getEFactory(ExpansionModelPackage.eNS_URI);
+ if (theExpansionModelFactory != null) {
+ return theExpansionModelFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new ExpansionModelFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case ExpansionModelPackage.REPRESENTATION: return createRepresentation();
+ case ExpansionModelPackage.COMPARTMENTS: return createCompartments();
+ case ExpansionModelPackage.REPRESENTATION_LIBRARY: return createRepresentationLibrary();
+ case ExpansionModelPackage.COMPARTMENT_LIBRARY: return createCompartmentLibrary();
+ case ExpansionModelPackage.USE_CONTEXT: return createUseContext();
+ case ExpansionModelPackage.GMFT_BASED_REPRESENTATION: return createGmftBasedRepresentation();
+ case ExpansionModelPackage.DIAGRAM_EXPANSION: return createDiagramExpansion();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case ExpansionModelPackage.REPRESENTATION_KIND:
+ return createRepresentationKindFromString(eDataType, initialValue);
+ case ExpansionModelPackage.COMPARTMENT_KIND:
+ return createCompartmentKindFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case ExpansionModelPackage.REPRESENTATION_KIND:
+ return convertRepresentationKindToString(eDataType, instanceValue);
+ case ExpansionModelPackage.COMPARTMENT_KIND:
+ return convertCompartmentKindToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Representation createRepresentation() {
+ RepresentationImpl representation = new RepresentationImpl();
+ return representation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Compartments createCompartments() {
+ CompartmentsImpl compartments = new CompartmentsImpl();
+ return compartments;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RepresentationLibrary createRepresentationLibrary() {
+ RepresentationLibraryImpl representationLibrary = new RepresentationLibraryImpl();
+ return representationLibrary;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompartmentLibrary createCompartmentLibrary() {
+ CompartmentLibraryImpl compartmentLibrary = new CompartmentLibraryImpl();
+ return compartmentLibrary;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UseContext createUseContext() {
+ UseContextImpl useContext = new UseContextImpl();
+ return useContext;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public GmftBasedRepresentation createGmftBasedRepresentation() {
+ GmftBasedRepresentationImpl gmftBasedRepresentation = new GmftBasedRepresentationImpl();
+ return gmftBasedRepresentation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DiagramExpansion createDiagramExpansion() {
+ DiagramExpansionImpl diagramExpansion = new DiagramExpansionImpl();
+ return diagramExpansion;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RepresentationKind createRepresentationKindFromString(EDataType eDataType, String initialValue) {
+ RepresentationKind result = RepresentationKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertRepresentationKindToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompartmentKind createCompartmentKindFromString(EDataType eDataType, String initialValue) {
+ CompartmentKind result = CompartmentKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertCompartmentKindToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelPackage getExpansionModelPackage() {
+ return (ExpansionModelPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static ExpansionModelPackage getPackage() {
+ return ExpansionModelPackage.eINSTANCE;
+ }
+
+} //ExpansionModelFactoryImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/ExpansionModelPackageImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/ExpansionModelPackageImpl.java
new file mode 100644
index 00000000000..049f2c93a0f
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/ExpansionModelPackageImpl.java
@@ -0,0 +1,703 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentKind;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelFactory;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExpansionModelPackageImpl extends EPackageImpl implements ExpansionModelPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass representationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass compartmentsEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass representationLibraryEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass libraryEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass compartmentLibraryEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass useContextEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass gmftBasedRepresentationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass diagramExpansionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum representationKindEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum compartmentKindEEnum = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private ExpansionModelPackageImpl() {
+ super(eNS_URI, ExpansionModelFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link ExpansionModelPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static ExpansionModelPackage init() {
+ if (isInited) return (ExpansionModelPackage)EPackage.Registry.INSTANCE.getEPackage(ExpansionModelPackage.eNS_URI);
+
+ // Obtain or create and register package
+ ExpansionModelPackageImpl theExpansionModelPackage = (ExpansionModelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ExpansionModelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ExpansionModelPackageImpl());
+
+ isInited = true;
+
+ // Create package meta-data objects
+ theExpansionModelPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theExpansionModelPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theExpansionModelPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(ExpansionModelPackage.eNS_URI, theExpansionModelPackage);
+ return theExpansionModelPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRepresentation() {
+ return representationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRepresentation_EditPartQualifiedName() {
+ return (EAttribute)representationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRepresentation_Kind() {
+ return (EAttribute)representationEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRepresentation_GraphicalElementType() {
+ return (EAttribute)representationEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRepresentation_Compartments() {
+ return (EReference)representationEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRepresentation_Name() {
+ return (EAttribute)representationEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRepresentation_ViewFactory() {
+ return (EAttribute)representationEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCompartments() {
+ return compartmentsEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCompartments_Hint() {
+ return (EAttribute)compartmentsEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCompartments_Children() {
+ return (EReference)compartmentsEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCompartments_Kind() {
+ return (EAttribute)compartmentsEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCompartments_Name() {
+ return (EAttribute)compartmentsEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCompartments_EditPartQualifiedName() {
+ return (EAttribute)compartmentsEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRepresentationLibrary() {
+ return representationLibraryEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRepresentationLibrary_Representations() {
+ return (EReference)representationLibraryEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getLibrary() {
+ return libraryEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getLibrary_Name() {
+ return (EAttribute)libraryEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCompartmentLibrary() {
+ return compartmentLibraryEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCompartmentLibrary_Compartments() {
+ return (EReference)compartmentLibraryEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getUseContext() {
+ return useContextEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getUseContext_DiagramType() {
+ return (EAttribute)useContextEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getUseContext_Representations() {
+ return (EReference)useContextEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getUseContext_Name() {
+ return (EAttribute)useContextEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getUseContext_GmftRepresentations() {
+ return (EReference)useContextEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getGmftBasedRepresentation() {
+ return gmftBasedRepresentationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getGmftBasedRepresentation_ReusedId() {
+ return (EAttribute)gmftBasedRepresentationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDiagramExpansion() {
+ return diagramExpansionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDiagramExpansion_Usages() {
+ return (EReference)diagramExpansionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDiagramExpansion_Libraries() {
+ return (EReference)diagramExpansionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getRepresentationKind() {
+ return representationKindEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getCompartmentKind() {
+ return compartmentKindEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelFactory getExpansionModelFactory() {
+ return (ExpansionModelFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ representationEClass = createEClass(REPRESENTATION);
+ createEAttribute(representationEClass, REPRESENTATION__EDIT_PART_QUALIFIED_NAME);
+ createEAttribute(representationEClass, REPRESENTATION__KIND);
+ createEAttribute(representationEClass, REPRESENTATION__GRAPHICAL_ELEMENT_TYPE);
+ createEReference(representationEClass, REPRESENTATION__COMPARTMENTS);
+ createEAttribute(representationEClass, REPRESENTATION__NAME);
+ createEAttribute(representationEClass, REPRESENTATION__VIEW_FACTORY);
+
+ compartmentsEClass = createEClass(COMPARTMENTS);
+ createEAttribute(compartmentsEClass, COMPARTMENTS__HINT);
+ createEReference(compartmentsEClass, COMPARTMENTS__CHILDREN);
+ createEAttribute(compartmentsEClass, COMPARTMENTS__KIND);
+ createEAttribute(compartmentsEClass, COMPARTMENTS__NAME);
+ createEAttribute(compartmentsEClass, COMPARTMENTS__EDIT_PART_QUALIFIED_NAME);
+
+ representationLibraryEClass = createEClass(REPRESENTATION_LIBRARY);
+ createEReference(representationLibraryEClass, REPRESENTATION_LIBRARY__REPRESENTATIONS);
+
+ libraryEClass = createEClass(LIBRARY);
+ createEAttribute(libraryEClass, LIBRARY__NAME);
+
+ compartmentLibraryEClass = createEClass(COMPARTMENT_LIBRARY);
+ createEReference(compartmentLibraryEClass, COMPARTMENT_LIBRARY__COMPARTMENTS);
+
+ useContextEClass = createEClass(USE_CONTEXT);
+ createEAttribute(useContextEClass, USE_CONTEXT__DIAGRAM_TYPE);
+ createEReference(useContextEClass, USE_CONTEXT__REPRESENTATIONS);
+ createEAttribute(useContextEClass, USE_CONTEXT__NAME);
+ createEReference(useContextEClass, USE_CONTEXT__GMFT_REPRESENTATIONS);
+
+ gmftBasedRepresentationEClass = createEClass(GMFT_BASED_REPRESENTATION);
+ createEAttribute(gmftBasedRepresentationEClass, GMFT_BASED_REPRESENTATION__REUSED_ID);
+
+ diagramExpansionEClass = createEClass(DIAGRAM_EXPANSION);
+ createEReference(diagramExpansionEClass, DIAGRAM_EXPANSION__USAGES);
+ createEReference(diagramExpansionEClass, DIAGRAM_EXPANSION__LIBRARIES);
+
+ // Create enums
+ representationKindEEnum = createEEnum(REPRESENTATION_KIND);
+ compartmentKindEEnum = createEEnum(COMPARTMENT_KIND);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ representationLibraryEClass.getESuperTypes().add(this.getLibrary());
+ compartmentLibraryEClass.getESuperTypes().add(this.getLibrary());
+ gmftBasedRepresentationEClass.getESuperTypes().add(this.getRepresentation());
+
+ // Initialize classes, features, and operations; add parameters
+ initEClass(representationEClass, Representation.class, "Representation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getRepresentation_EditPartQualifiedName(), ecorePackage.getEString(), "editPartQualifiedName", null, 0, 1, Representation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getRepresentation_Kind(), this.getRepresentationKind(), "kind", null, 1, 1, Representation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getRepresentation_GraphicalElementType(), ecorePackage.getEString(), "graphicalElementType", null, 0, 1, Representation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getRepresentation_Compartments(), this.getCompartments(), null, "compartments", null, 0, -1, Representation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getRepresentation_Name(), ecorePackage.getEString(), "name", null, 1, 1, Representation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getRepresentation_ViewFactory(), ecorePackage.getEString(), "viewFactory", null, 1, 1, Representation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
+ initEClass(compartmentsEClass, Compartments.class, "Compartments", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getCompartments_Hint(), ecorePackage.getEString(), "hint", null, 1, 1, Compartments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getCompartments_Children(), this.getRepresentation(), null, "children", null, 1, -1, Compartments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getCompartments_Kind(), this.getCompartmentKind(), "kind", null, 1, 1, Compartments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getCompartments_Name(), ecorePackage.getEString(), "name", null, 1, 1, Compartments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getCompartments_EditPartQualifiedName(), ecorePackage.getEString(), "editPartQualifiedName", null, 0, 1, Compartments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
+ initEClass(representationLibraryEClass, RepresentationLibrary.class, "RepresentationLibrary", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRepresentationLibrary_Representations(), this.getRepresentation(), null, "representations", null, 1, -1, RepresentationLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
+ initEClass(libraryEClass, Library.class, "Library", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLibrary_Name(), ecorePackage.getEString(), "name", null, 1, 1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
+ initEClass(compartmentLibraryEClass, CompartmentLibrary.class, "CompartmentLibrary", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getCompartmentLibrary_Compartments(), this.getCompartments(), null, "compartments", null, 1, -1, CompartmentLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
+ initEClass(useContextEClass, UseContext.class, "UseContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getUseContext_DiagramType(), ecorePackage.getEString(), "diagramType", null, 1, 1, UseContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getUseContext_Representations(), this.getRepresentation(), null, "representations", null, 1, -1, UseContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getUseContext_Name(), ecorePackage.getEString(), "name", null, 1, 1, UseContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getUseContext_GmftRepresentations(), this.getGmftBasedRepresentation(), null, "gmftRepresentations", null, 0, -1, UseContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
+ initEClass(gmftBasedRepresentationEClass, GmftBasedRepresentation.class, "GmftBasedRepresentation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGmftBasedRepresentation_ReusedId(), ecorePackage.getEString(), "reusedId", null, 0, 1, GmftBasedRepresentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
+ initEClass(diagramExpansionEClass, DiagramExpansion.class, "DiagramExpansion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getDiagramExpansion_Usages(), this.getUseContext(), null, "usages", null, 1, -1, DiagramExpansion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getDiagramExpansion_Libraries(), this.getLibrary(), null, "libraries", null, 0, -1, DiagramExpansion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(representationKindEEnum, RepresentationKind.class, "RepresentationKind");
+ addEEnumLiteral(representationKindEEnum, RepresentationKind.SHAPE);
+ addEEnumLiteral(representationKindEEnum, RepresentationKind.LABEL);
+ addEEnumLiteral(representationKindEEnum, RepresentationKind.LINK);
+ addEEnumLiteral(representationKindEEnum, RepresentationKind.BORDER_ITEM);
+ addEEnumLiteral(representationKindEEnum, RepresentationKind.BORDER_ITEM_LABEL);
+ addEEnumLiteral(representationKindEEnum, RepresentationKind.CUSTOM);
+
+ initEEnum(compartmentKindEEnum, CompartmentKind.class, "CompartmentKind");
+ addEEnumLiteral(compartmentKindEEnum, CompartmentKind.LIST);
+ addEEnumLiteral(compartmentKindEEnum, CompartmentKind.XY);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http://www.eclipse.org/uml2/2.0.0/UML
+ createUMLAnnotations();
+ // duplicates
+ createDuplicatesAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for <b>http://www.eclipse.org/uml2/2.0.0/UML</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createUMLAnnotations() {
+ String source = "http://www.eclipse.org/uml2/2.0.0/UML";
+ addAnnotation
+ (this,
+ source,
+ new String[] {
+ "originalName", "ExpansionModel"
+ });
+ addAnnotation
+ (representationKindEEnum.getELiterals().get(0),
+ source,
+ new String[] {
+ "originalName", "Shape"
+ });
+ addAnnotation
+ (representationKindEEnum.getELiterals().get(1),
+ source,
+ new String[] {
+ "originalName", "Label"
+ });
+ addAnnotation
+ (representationKindEEnum.getELiterals().get(2),
+ source,
+ new String[] {
+ "originalName", "Link"
+ });
+ addAnnotation
+ (representationKindEEnum.getELiterals().get(3),
+ source,
+ new String[] {
+ "originalName", "BorderItem"
+ });
+ addAnnotation
+ (representationKindEEnum.getELiterals().get(4),
+ source,
+ new String[] {
+ "originalName", "BorderItemLabel"
+ });
+ addAnnotation
+ (representationKindEEnum.getELiterals().get(5),
+ source,
+ new String[] {
+ "originalName", "Custom"
+ });
+ addAnnotation
+ (compartmentKindEEnum.getELiterals().get(1),
+ source,
+ new String[] {
+ "originalName", "XY"
+ });
+ addAnnotation
+ (getUseContext_DiagramType(),
+ source,
+ new String[] {
+ "originalName", "DiagramType"
+ });
+ addAnnotation
+ (getUseContext_GmftRepresentations(),
+ source,
+ new String[] {
+ "originalName", "GmftRepresentations"
+ });
+ addAnnotation
+ (gmftBasedRepresentationEClass,
+ source,
+ new String[] {
+ "originalName", "GMFT_Based_Representation"
+ });
+ addAnnotation
+ (getGmftBasedRepresentation_ReusedId(),
+ source,
+ new String[] {
+ "originalName", "reusedID"
+ });
+ }
+
+ /**
+ * Initializes the annotations for <b>duplicates</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createDuplicatesAnnotations() {
+ String source = "duplicates";
+ addAnnotation
+ (gmftBasedRepresentationEClass,
+ source,
+ new String[] {
+ });
+ }
+
+} //ExpansionModelPackageImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/GmftBasedRepresentationImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/GmftBasedRepresentationImpl.java
new file mode 100644
index 00000000000..8dc3e36e56e
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/GmftBasedRepresentationImpl.java
@@ -0,0 +1,162 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Gmft Based Representation</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.GmftBasedRepresentationImpl#getReusedId <em>Reused Id</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class GmftBasedRepresentationImpl extends RepresentationImpl implements GmftBasedRepresentation {
+ /**
+ * The default value of the '{@link #getReusedId() <em>Reused Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getReusedId()
+ * @generated
+ * @ordered
+ */
+ protected static final String REUSED_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getReusedId() <em>Reused Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getReusedId()
+ * @generated
+ * @ordered
+ */
+ protected String reusedId = REUSED_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected GmftBasedRepresentationImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ExpansionModelPackage.Literals.GMFT_BASED_REPRESENTATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getReusedId() {
+ return reusedId;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setReusedId(String newReusedId) {
+ String oldReusedId = reusedId;
+ reusedId = newReusedId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.GMFT_BASED_REPRESENTATION__REUSED_ID, oldReusedId, reusedId));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ExpansionModelPackage.GMFT_BASED_REPRESENTATION__REUSED_ID:
+ return getReusedId();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ExpansionModelPackage.GMFT_BASED_REPRESENTATION__REUSED_ID:
+ setReusedId((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.GMFT_BASED_REPRESENTATION__REUSED_ID:
+ setReusedId(REUSED_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.GMFT_BASED_REPRESENTATION__REUSED_ID:
+ return REUSED_ID_EDEFAULT == null ? reusedId != null : !REUSED_ID_EDEFAULT.equals(reusedId);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (reusedId: ");
+ result.append(reusedId);
+ result.append(')');
+ return result.toString();
+ }
+
+} //GmftBasedRepresentationImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/LibraryImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/LibraryImpl.java
new file mode 100644
index 00000000000..1495b9e01a9
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/LibraryImpl.java
@@ -0,0 +1,163 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Library</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.LibraryImpl#getName <em>Name</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public abstract class LibraryImpl extends MinimalEObjectImpl.Container implements Library {
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected LibraryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ExpansionModelPackage.Literals.LIBRARY;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.LIBRARY__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ExpansionModelPackage.LIBRARY__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ExpansionModelPackage.LIBRARY__NAME:
+ setName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.LIBRARY__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.LIBRARY__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} //LibraryImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/RepresentationImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/RepresentationImpl.java
new file mode 100644
index 00000000000..bbadef55d3e
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/RepresentationImpl.java
@@ -0,0 +1,422 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Representation</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl#getEditPartQualifiedName <em>Edit Part Qualified Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl#getKind <em>Kind</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl#getGraphicalElementType <em>Graphical Element Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl#getCompartments <em>Compartments</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationImpl#getViewFactory <em>View Factory</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class RepresentationImpl extends MinimalEObjectImpl.Container implements Representation {
+ /**
+ * The default value of the '{@link #getEditPartQualifiedName() <em>Edit Part Qualified Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEditPartQualifiedName()
+ * @generated
+ * @ordered
+ */
+ protected static final String EDIT_PART_QUALIFIED_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEditPartQualifiedName() <em>Edit Part Qualified Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEditPartQualifiedName()
+ * @generated
+ * @ordered
+ */
+ protected String editPartQualifiedName = EDIT_PART_QUALIFIED_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKind()
+ * @generated
+ * @ordered
+ */
+ protected static final RepresentationKind KIND_EDEFAULT = RepresentationKind.SHAPE;
+
+ /**
+ * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKind()
+ * @generated
+ * @ordered
+ */
+ protected RepresentationKind kind = KIND_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getGraphicalElementType() <em>Graphical Element Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGraphicalElementType()
+ * @generated
+ * @ordered
+ */
+ protected static final String GRAPHICAL_ELEMENT_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGraphicalElementType() <em>Graphical Element Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGraphicalElementType()
+ * @generated
+ * @ordered
+ */
+ protected String graphicalElementType = GRAPHICAL_ELEMENT_TYPE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getCompartments() <em>Compartments</em>}' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCompartments()
+ * @generated
+ * @ordered
+ */
+ protected EList<Compartments> compartments;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getViewFactory() <em>View Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getViewFactory()
+ * @generated
+ * @ordered
+ */
+ protected static final String VIEW_FACTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getViewFactory() <em>View Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getViewFactory()
+ * @generated
+ * @ordered
+ */
+ protected String viewFactory = VIEW_FACTORY_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RepresentationImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ExpansionModelPackage.Literals.REPRESENTATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEditPartQualifiedName() {
+ return editPartQualifiedName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEditPartQualifiedName(String newEditPartQualifiedName) {
+ String oldEditPartQualifiedName = editPartQualifiedName;
+ editPartQualifiedName = newEditPartQualifiedName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.REPRESENTATION__EDIT_PART_QUALIFIED_NAME, oldEditPartQualifiedName, editPartQualifiedName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RepresentationKind getKind() {
+ return kind;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setKind(RepresentationKind newKind) {
+ RepresentationKind oldKind = kind;
+ kind = newKind == null ? KIND_EDEFAULT : newKind;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.REPRESENTATION__KIND, oldKind, kind));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getGraphicalElementType() {
+ return graphicalElementType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setGraphicalElementType(String newGraphicalElementType) {
+ String oldGraphicalElementType = graphicalElementType;
+ graphicalElementType = newGraphicalElementType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.REPRESENTATION__GRAPHICAL_ELEMENT_TYPE, oldGraphicalElementType, graphicalElementType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Compartments> getCompartments() {
+ if (compartments == null) {
+ compartments = new EObjectResolvingEList<Compartments>(Compartments.class, this, ExpansionModelPackage.REPRESENTATION__COMPARTMENTS);
+ }
+ return compartments;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.REPRESENTATION__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getViewFactory() {
+ return viewFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setViewFactory(String newViewFactory) {
+ String oldViewFactory = viewFactory;
+ viewFactory = newViewFactory;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.REPRESENTATION__VIEW_FACTORY, oldViewFactory, viewFactory));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION__EDIT_PART_QUALIFIED_NAME:
+ return getEditPartQualifiedName();
+ case ExpansionModelPackage.REPRESENTATION__KIND:
+ return getKind();
+ case ExpansionModelPackage.REPRESENTATION__GRAPHICAL_ELEMENT_TYPE:
+ return getGraphicalElementType();
+ case ExpansionModelPackage.REPRESENTATION__COMPARTMENTS:
+ return getCompartments();
+ case ExpansionModelPackage.REPRESENTATION__NAME:
+ return getName();
+ case ExpansionModelPackage.REPRESENTATION__VIEW_FACTORY:
+ return getViewFactory();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION__EDIT_PART_QUALIFIED_NAME:
+ setEditPartQualifiedName((String)newValue);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__KIND:
+ setKind((RepresentationKind)newValue);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__GRAPHICAL_ELEMENT_TYPE:
+ setGraphicalElementType((String)newValue);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__COMPARTMENTS:
+ getCompartments().clear();
+ getCompartments().addAll((Collection<? extends Compartments>)newValue);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__NAME:
+ setName((String)newValue);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__VIEW_FACTORY:
+ setViewFactory((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION__EDIT_PART_QUALIFIED_NAME:
+ setEditPartQualifiedName(EDIT_PART_QUALIFIED_NAME_EDEFAULT);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__KIND:
+ setKind(KIND_EDEFAULT);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__GRAPHICAL_ELEMENT_TYPE:
+ setGraphicalElementType(GRAPHICAL_ELEMENT_TYPE_EDEFAULT);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__COMPARTMENTS:
+ getCompartments().clear();
+ return;
+ case ExpansionModelPackage.REPRESENTATION__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case ExpansionModelPackage.REPRESENTATION__VIEW_FACTORY:
+ setViewFactory(VIEW_FACTORY_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION__EDIT_PART_QUALIFIED_NAME:
+ return EDIT_PART_QUALIFIED_NAME_EDEFAULT == null ? editPartQualifiedName != null : !EDIT_PART_QUALIFIED_NAME_EDEFAULT.equals(editPartQualifiedName);
+ case ExpansionModelPackage.REPRESENTATION__KIND:
+ return kind != KIND_EDEFAULT;
+ case ExpansionModelPackage.REPRESENTATION__GRAPHICAL_ELEMENT_TYPE:
+ return GRAPHICAL_ELEMENT_TYPE_EDEFAULT == null ? graphicalElementType != null : !GRAPHICAL_ELEMENT_TYPE_EDEFAULT.equals(graphicalElementType);
+ case ExpansionModelPackage.REPRESENTATION__COMPARTMENTS:
+ return compartments != null && !compartments.isEmpty();
+ case ExpansionModelPackage.REPRESENTATION__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case ExpansionModelPackage.REPRESENTATION__VIEW_FACTORY:
+ return VIEW_FACTORY_EDEFAULT == null ? viewFactory != null : !VIEW_FACTORY_EDEFAULT.equals(viewFactory);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (editPartQualifiedName: ");
+ result.append(editPartQualifiedName);
+ result.append(", kind: ");
+ result.append(kind);
+ result.append(", graphicalElementType: ");
+ result.append(graphicalElementType);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", viewFactory: ");
+ result.append(viewFactory);
+ result.append(')');
+ return result.toString();
+ }
+
+} //RepresentationImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/RepresentationLibraryImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/RepresentationLibraryImpl.java
new file mode 100644
index 00000000000..9d8479dd47e
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/RepresentationLibraryImpl.java
@@ -0,0 +1,150 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Representation Library</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.RepresentationLibraryImpl#getRepresentations <em>Representations</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class RepresentationLibraryImpl extends LibraryImpl implements RepresentationLibrary {
+ /**
+ * The cached value of the '{@link #getRepresentations() <em>Representations</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRepresentations()
+ * @generated
+ * @ordered
+ */
+ protected EList<Representation> representations;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RepresentationLibraryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ExpansionModelPackage.Literals.REPRESENTATION_LIBRARY;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Representation> getRepresentations() {
+ if (representations == null) {
+ representations = new EObjectContainmentEList<Representation>(Representation.class, this, ExpansionModelPackage.REPRESENTATION_LIBRARY__REPRESENTATIONS);
+ }
+ return representations;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION_LIBRARY__REPRESENTATIONS:
+ return ((InternalEList<?>)getRepresentations()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION_LIBRARY__REPRESENTATIONS:
+ return getRepresentations();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION_LIBRARY__REPRESENTATIONS:
+ getRepresentations().clear();
+ getRepresentations().addAll((Collection<? extends Representation>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION_LIBRARY__REPRESENTATIONS:
+ getRepresentations().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.REPRESENTATION_LIBRARY__REPRESENTATIONS:
+ return representations != null && !representations.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //RepresentationLibraryImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/UseContextImpl.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/UseContextImpl.java
new file mode 100644
index 00000000000..494a181ab20
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/impl/UseContextImpl.java
@@ -0,0 +1,312 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation;
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Use Context</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.UseContextImpl#getDiagramType <em>Diagram Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.UseContextImpl#getRepresentations <em>Representations</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.UseContextImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.impl.UseContextImpl#getGmftRepresentations <em>Gmft Representations</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class UseContextImpl extends MinimalEObjectImpl.Container implements UseContext {
+ /**
+ * The default value of the '{@link #getDiagramType() <em>Diagram Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDiagramType()
+ * @generated
+ * @ordered
+ */
+ protected static final String DIAGRAM_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDiagramType() <em>Diagram Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDiagramType()
+ * @generated
+ * @ordered
+ */
+ protected String diagramType = DIAGRAM_TYPE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getRepresentations() <em>Representations</em>}' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRepresentations()
+ * @generated
+ * @ordered
+ */
+ protected EList<Representation> representations;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getGmftRepresentations() <em>Gmft Representations</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGmftRepresentations()
+ * @generated
+ * @ordered
+ */
+ protected EList<GmftBasedRepresentation> gmftRepresentations;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected UseContextImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ExpansionModelPackage.Literals.USE_CONTEXT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDiagramType() {
+ return diagramType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDiagramType(String newDiagramType) {
+ String oldDiagramType = diagramType;
+ diagramType = newDiagramType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.USE_CONTEXT__DIAGRAM_TYPE, oldDiagramType, diagramType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Representation> getRepresentations() {
+ if (representations == null) {
+ representations = new EObjectResolvingEList<Representation>(Representation.class, this, ExpansionModelPackage.USE_CONTEXT__REPRESENTATIONS);
+ }
+ return representations;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ExpansionModelPackage.USE_CONTEXT__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<GmftBasedRepresentation> getGmftRepresentations() {
+ if (gmftRepresentations == null) {
+ gmftRepresentations = new EObjectContainmentEList<GmftBasedRepresentation>(GmftBasedRepresentation.class, this, ExpansionModelPackage.USE_CONTEXT__GMFT_REPRESENTATIONS);
+ }
+ return gmftRepresentations;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case ExpansionModelPackage.USE_CONTEXT__GMFT_REPRESENTATIONS:
+ return ((InternalEList<?>)getGmftRepresentations()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ExpansionModelPackage.USE_CONTEXT__DIAGRAM_TYPE:
+ return getDiagramType();
+ case ExpansionModelPackage.USE_CONTEXT__REPRESENTATIONS:
+ return getRepresentations();
+ case ExpansionModelPackage.USE_CONTEXT__NAME:
+ return getName();
+ case ExpansionModelPackage.USE_CONTEXT__GMFT_REPRESENTATIONS:
+ return getGmftRepresentations();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ExpansionModelPackage.USE_CONTEXT__DIAGRAM_TYPE:
+ setDiagramType((String)newValue);
+ return;
+ case ExpansionModelPackage.USE_CONTEXT__REPRESENTATIONS:
+ getRepresentations().clear();
+ getRepresentations().addAll((Collection<? extends Representation>)newValue);
+ return;
+ case ExpansionModelPackage.USE_CONTEXT__NAME:
+ setName((String)newValue);
+ return;
+ case ExpansionModelPackage.USE_CONTEXT__GMFT_REPRESENTATIONS:
+ getGmftRepresentations().clear();
+ getGmftRepresentations().addAll((Collection<? extends GmftBasedRepresentation>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.USE_CONTEXT__DIAGRAM_TYPE:
+ setDiagramType(DIAGRAM_TYPE_EDEFAULT);
+ return;
+ case ExpansionModelPackage.USE_CONTEXT__REPRESENTATIONS:
+ getRepresentations().clear();
+ return;
+ case ExpansionModelPackage.USE_CONTEXT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case ExpansionModelPackage.USE_CONTEXT__GMFT_REPRESENTATIONS:
+ getGmftRepresentations().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ExpansionModelPackage.USE_CONTEXT__DIAGRAM_TYPE:
+ return DIAGRAM_TYPE_EDEFAULT == null ? diagramType != null : !DIAGRAM_TYPE_EDEFAULT.equals(diagramType);
+ case ExpansionModelPackage.USE_CONTEXT__REPRESENTATIONS:
+ return representations != null && !representations.isEmpty();
+ case ExpansionModelPackage.USE_CONTEXT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case ExpansionModelPackage.USE_CONTEXT__GMFT_REPRESENTATIONS:
+ return gmftRepresentations != null && !gmftRepresentations.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (diagramType: ");
+ result.append(diagramType);
+ result.append(", name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} //UseContextImpl
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/util/ExpansionModelAdapterFactory.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/util/ExpansionModelAdapterFactory.java
new file mode 100644
index 00000000000..3d041f7d0da
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/util/ExpansionModelAdapterFactory.java
@@ -0,0 +1,246 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage
+ * @generated
+ */
+public class ExpansionModelAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static ExpansionModelPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = ExpansionModelPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExpansionModelSwitch<Adapter> modelSwitch =
+ new ExpansionModelSwitch<Adapter>() {
+ @Override
+ public Adapter caseRepresentation(Representation object) {
+ return createRepresentationAdapter();
+ }
+ @Override
+ public Adapter caseCompartments(Compartments object) {
+ return createCompartmentsAdapter();
+ }
+ @Override
+ public Adapter caseRepresentationLibrary(RepresentationLibrary object) {
+ return createRepresentationLibraryAdapter();
+ }
+ @Override
+ public Adapter caseLibrary(Library object) {
+ return createLibraryAdapter();
+ }
+ @Override
+ public Adapter caseCompartmentLibrary(CompartmentLibrary object) {
+ return createCompartmentLibraryAdapter();
+ }
+ @Override
+ public Adapter caseUseContext(UseContext object) {
+ return createUseContextAdapter();
+ }
+ @Override
+ public Adapter caseGmftBasedRepresentation(GmftBasedRepresentation object) {
+ return createGmftBasedRepresentationAdapter();
+ }
+ @Override
+ public Adapter caseDiagramExpansion(DiagramExpansion object) {
+ return createDiagramExpansionAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation <em>Representation</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation
+ * @generated
+ */
+ public Adapter createRepresentationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments <em>Compartments</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Compartments
+ * @generated
+ */
+ public Adapter createCompartmentsAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary <em>Representation Library</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationLibrary
+ * @generated
+ */
+ public Adapter createRepresentationLibraryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library <em>Library</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Library
+ * @generated
+ */
+ public Adapter createLibraryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary <em>Compartment Library</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.CompartmentLibrary
+ * @generated
+ */
+ public Adapter createCompartmentLibraryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext <em>Use Context</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.UseContext
+ * @generated
+ */
+ public Adapter createUseContextAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation <em>Gmft Based Representation</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.GmftBasedRepresentation
+ * @generated
+ */
+ public Adapter createGmftBasedRepresentationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion <em>Diagram Expansion</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.DiagramExpansion
+ * @generated
+ */
+ public Adapter createDiagramExpansionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //ExpansionModelAdapterFactory
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/util/ExpansionModelSwitch.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/util/ExpansionModelSwitch.java
new file mode 100644
index 00000000000..fa31628af9a
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src-gen/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/util/ExpansionModelSwitch.java
@@ -0,0 +1,260 @@
+/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.ExpansionModelPackage
+ * @generated
+ */
+public class ExpansionModelSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static ExpansionModelPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExpansionModelSwitch() {
+ if (modelPackage == null) {
+ modelPackage = ExpansionModelPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case ExpansionModelPackage.REPRESENTATION: {
+ Representation representation = (Representation)theEObject;
+ T result = caseRepresentation(representation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ExpansionModelPackage.COMPARTMENTS: {
+ Compartments compartments = (Compartments)theEObject;
+ T result = caseCompartments(compartments);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ExpansionModelPackage.REPRESENTATION_LIBRARY: {
+ RepresentationLibrary representationLibrary = (RepresentationLibrary)theEObject;
+ T result = caseRepresentationLibrary(representationLibrary);
+ if (result == null) result = caseLibrary(representationLibrary);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ExpansionModelPackage.LIBRARY: {
+ Library library = (Library)theEObject;
+ T result = caseLibrary(library);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ExpansionModelPackage.COMPARTMENT_LIBRARY: {
+ CompartmentLibrary compartmentLibrary = (CompartmentLibrary)theEObject;
+ T result = caseCompartmentLibrary(compartmentLibrary);
+ if (result == null) result = caseLibrary(compartmentLibrary);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ExpansionModelPackage.USE_CONTEXT: {
+ UseContext useContext = (UseContext)theEObject;
+ T result = caseUseContext(useContext);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ExpansionModelPackage.GMFT_BASED_REPRESENTATION: {
+ GmftBasedRepresentation gmftBasedRepresentation = (GmftBasedRepresentation)theEObject;
+ T result = caseGmftBasedRepresentation(gmftBasedRepresentation);
+ if (result == null) result = caseRepresentation(gmftBasedRepresentation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ExpansionModelPackage.DIAGRAM_EXPANSION: {
+ DiagramExpansion diagramExpansion = (DiagramExpansion)theEObject;
+ T result = caseDiagramExpansion(diagramExpansion);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Representation</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Representation</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRepresentation(Representation object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Compartments</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Compartments</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCompartments(Compartments object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Representation Library</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Representation Library</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRepresentationLibrary(RepresentationLibrary object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Library</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Library</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLibrary(Library object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Compartment Library</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Compartment Library</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCompartmentLibrary(CompartmentLibrary object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Use Context</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Use Context</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseUseContext(UseContext object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gmft Based Representation</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gmft Based Representation</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGmftBasedRepresentation(GmftBasedRepresentation object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Diagram Expansion</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Diagram Expansion</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDiagramExpansion(DiagramExpansion object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //ExpansionModelSwitch
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/IBorderItemWithLocator.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/IBorderItemWithLocator.java
new file mode 100644
index 00000000000..2c55dd6058b
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/IBorderItemWithLocator.java
@@ -0,0 +1,27 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.infra.gmfdiag.common.editpart;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+
+/**
+ * @author PT202707
+ *
+ */
+public interface IBorderItemWithLocator {
+
+ public IBorderItemLocator getNewBorderItemLocator(IFigure mainFigure);
+
+}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java
index 8d9e3e884d3..9f9a2690fb2 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java
@@ -24,7 +24,9 @@ import org.eclipse.gef.DragTracker;
import org.eclipse.gef.EditPolicy;
import org.eclipse.gef.Request;
import org.eclipse.gmf.runtime.diagram.ui.editparts.AbstractBorderedShapeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator;
import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
import org.eclipse.gmf.runtime.notation.BooleanValueStyle;
import org.eclipse.gmf.runtime.notation.FillStyle;
@@ -72,6 +74,25 @@ public abstract class NodeEditPart extends AbstractBorderedShapeEditPart impleme
}
/**
+ * Adds the border item figure to the border item container with a locator.
+ *
+ * @param borderItemContainer
+ * the figure to which the border item figure is added
+ * @param borderItemEditPart
+ * the border item editpart from which to retrieve the border
+ * item figure and determine which locator to create
+ */
+ protected void addBorderItem(IFigure borderItemContainer,
+ IBorderItemEditPart borderItemEditPart) {
+ if( borderItemEditPart instanceof IBorderItemWithLocator){
+ borderItemContainer.add(borderItemEditPart.getFigure(), ((IBorderItemWithLocator)borderItemEditPart).getNewBorderItemLocator(getMainFigure()));
+ //super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ else{
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+ /**
* Refresh the SVG Path for anchorable elements
*/
protected void refreshSVGPath() {
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/providers/CustomAbstractViewProvider.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/providers/CustomAbstractViewProvider.java
index af3457d4117..57d8a0038c1 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/providers/CustomAbstractViewProvider.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/providers/CustomAbstractViewProvider.java
@@ -20,9 +20,11 @@ import org.eclipse.gmf.runtime.diagram.core.services.view.CreateEdgeViewOperatio
import org.eclipse.gmf.runtime.diagram.core.services.view.CreateNodeViewOperation;
import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewForKindOperation;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.Edge;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.viewpoints.policy.ViewPrototype;
/**
* This abstract view provider retrieve the view type from the graphical type
@@ -59,8 +61,7 @@ public abstract class CustomAbstractViewProvider extends AbstractViewProvider {
*/
@Override
protected boolean provides(CreateViewForKindOperation op) {
- // This method should generally not be called (https://bugs.eclipse.org/bugs/show_bug.cgi?id=346739).
- if ((diagramType == null) || (!diagramType.equals(op.getContainerView().getDiagram().getType()))) {
+ if (! isRelevantDiagram(op.getContainerView().getDiagram())) {
return false;
}
// if(op.getViewKind() == Node.class) {
@@ -80,7 +81,7 @@ public abstract class CustomAbstractViewProvider extends AbstractViewProvider {
*/
@Override
protected boolean provides(CreateEdgeViewOperation operation) {
- if ((diagramType == null) || (!diagramType.equals(operation.getContainerView().getDiagram().getType()))) {
+ if (! isRelevantDiagram(operation.getContainerView().getDiagram())) {
return false;
}
String graphicalType = getEdgeGraphicalType(operation.getSemanticAdapter(), operation.getContainerView(), operation.getSemanticHint());
@@ -92,14 +93,14 @@ public abstract class CustomAbstractViewProvider extends AbstractViewProvider {
*/
@Override
protected boolean provides(CreateNodeViewOperation operation) {
- if ((diagramType == null) || (!diagramType.equals(operation.getContainerView().getDiagram().getType()))) {
+ if (! isRelevantDiagram(operation.getContainerView().getDiagram())) {
return false;
}
String graphicalType = getNodeGraphicalType(operation.getSemanticAdapter(), operation.getContainerView(), operation.getSemanticHint());
return (getNodeViewClass(operation.getSemanticAdapter(), operation.getContainerView(), graphicalType) != null);
}
- private String getNodeGraphicalType(IAdaptable semanticAdapter, View containerView, String semanticHint) {
+ protected String getNodeGraphicalType(IAdaptable semanticAdapter, View containerView, String semanticHint) {
String graphicalType = null;
// Some ViewDescriptor constructors initialize unspecified semanticHint with ""
if ((semanticHint != null) && (!"".equals(semanticHint))) {
@@ -117,7 +118,7 @@ public abstract class CustomAbstractViewProvider extends AbstractViewProvider {
return graphicalType;
}
- private String getEdgeGraphicalType(IAdaptable semanticAdapter, View containerView, String semanticHint) {
+ protected String getEdgeGraphicalType(IAdaptable semanticAdapter, View containerView, String semanticHint) {
String graphicalType = null;
// Some ViewDescriptor constructors initialize unspecified semanticHint with ""
if ((semanticHint != null) && (!"".equals(semanticHint))) {
@@ -134,4 +135,18 @@ public abstract class CustomAbstractViewProvider extends AbstractViewProvider {
}
return graphicalType;
}
+ protected boolean isRelevantDiagram (Diagram diagram){
+ ViewPrototype viewPrototype=org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils.getPrototype(diagram);
+ if(viewPrototype!=null){
+ if(diagramType.equals(viewPrototype.getLabel())){
+ return true;
+ }
+ return false;
+
+ }
+ if ((diagramType != null) && (diagramType.equals(diagram.getType()))) {
+ return true;
+ }
+ return false;
+ }
}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.project b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.project
new file mode 100644
index 00000000000..f3f5d526a87
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.expansion.edit/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.infra.gmfdiag.expansion.edit</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.project b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.project
new file mode 100644
index 00000000000..28ffbba4a5a
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.expansion.editor/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.infra.gmfdiag.expansion.editor</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/META-INF/MANIFEST.MF b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/META-INF/MANIFEST.MF
index d4f8d5be83f..401b77abb09 100644
--- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/META-INF/MANIFEST.MF
+++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/META-INF/MANIFEST.MF
@@ -63,7 +63,8 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.papyrus.infra.extendedtypes;bundle-version="1.1.0",
org.eclipse.papyrus.emf.facet.custom.ui;bundle-version="1.1.0",
org.eclipse.papyrus.emf.facet.custom.core;bundle-version="1.1.0",
- org.eclipse.core.databinding.observable
+ org.eclipse.core.databinding.observable,
+ org.eclipse.papyrus.uml.diagram.clazz
Bundle-Vendor: %providerName
Bundle-ActivationPolicy: lazy
Bundle-Version: 1.1.0.qualifier
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-gmf/org/eclipse/papyrus/gmf/diagram/common/provider/CustomAbstractEditPartProvider.java b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-gmf/org/eclipse/papyrus/gmf/diagram/common/provider/CustomAbstractEditPartProvider.java
index 11042c0f5e4..bea81c411ed 100644
--- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-gmf/org/eclipse/papyrus/gmf/diagram/common/provider/CustomAbstractEditPartProvider.java
+++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-gmf/org/eclipse/papyrus/gmf/diagram/common/provider/CustomAbstractEditPartProvider.java
@@ -17,6 +17,7 @@ import org.eclipse.gmf.runtime.common.core.service.IOperation;
import org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider;
import org.eclipse.gmf.runtime.diagram.ui.services.editpart.CreateGraphicEditPartOperation;
import org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation;
+import org.eclipse.papyrus.uml.diagram.clazz.edit.parts.ModelEditPart;
/**
* This abstract edit part provider restricts its contribution to view that are owned by
@@ -25,7 +26,7 @@ import org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation;
public abstract class CustomAbstractEditPartProvider extends AbstractEditPartProvider {
/** The provides only provides for this diagram type */
- protected String diagramType;
+ protected String diagramType= org.eclipse.papyrus.uml.diagram.clazz.edit.parts.ModelEditPart.MODEL_ID;
/**
* {@inheritDoc}
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/META-INF/MANIFEST.MF b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/META-INF/MANIFEST.MF
index 9f38a78dbc0..11b482c3f88 100644
--- a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/META-INF/MANIFEST.MF
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/META-INF/MANIFEST.MF
@@ -16,6 +16,14 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.papyrus.infra.onefile;bundle-version="1.1.0",
com.google.guava;bundle-version="11.0.0",
org.eclipse.papyrus.infra.emf;bundle-version="1.1.0",
- org.eclipse.papyrus.uml.diagram.common;bundle-version="1.1.0"
+ org.eclipse.papyrus.uml.diagram.common;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.gmfdiag.common,
+ org.eclipse.papyrus.sysml.diagram.common,
+ org.eclipse.papyrus.uml.diagram.clazz;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.gmfdiag.dnd,
+ org.eclipse.papyrus.extensionpoints.editors,
+ org.eclipse.papyrus.uml.diagram.composite,
+ org.eclipse.papyrus.infra.emf.appearance,
+ org.eclipse.gmf.tooling.runtime
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/plugin.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/plugin.xml
index 6eb746f23bd..bc82e86c918 100644
--- a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/plugin.xml
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/plugin.xml
@@ -20,4 +20,70 @@
original="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration">
</contribution>
</extension>
+<<<<<<< Upstream, based on gerrit/master
+=======
+ <extension point="org.eclipse.papyrus.infra.gmfdiag.common.notationTypesMapping">
+
+ <mapping
+ humanReadableType="packagedElements"
+ type="7030">
+ </mapping>
+ <mapping
+ humanReadableType="packagedElements"
+ type="7010">
+ </mapping>
+
+ <mapping
+ humanReadableType="packagedElements"
+ type="7009">
+ </mapping>
+ <mapping
+ humanReadableType="packagedElements"
+ type="7016">
+ </mapping>
+</extension>
+ <extension
+ point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders">
+ <editpartProvider
+ class="org.eclipse.papyrus.sysml14.diagram.blockdefinition.provider.BddEditPartProvider">
+ <Priority
+ name="Low">
+ </Priority>
+ </editpartProvider>
+ </extension>
+ <extension
+ id="view-provider"
+ point="org.eclipse.gmf.runtime.diagram.core.viewProviders">
+ <viewProvider
+ class="org.eclipse.papyrus.sysml14.diagram.blockdefinition.provider.BDDViewProvider">
+ <Priority
+ name="Highest">
+ </Priority>
+ <!--context
+ semanticHints="PapyrusUMLClassDiagram"
+ viewClass="org.eclipse.gmf.runtime.notation.Diagram">
+ </context>
+ <context
+ semanticHints="FlowPort_Label"
+ viewClass="org.eclipse.gmf.runtime.notation.Node">
+ </context-->
+
+ </viewProvider>
+</extension>
+ <extension
+ point="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders">
+ <editpolicyProvider
+ class="org.eclipse.papyrus.sysml14.diagram.blockdefinition.provider.AddCompartmentPolicyProvider">
+ <Priority
+ name="Highest">
+ </Priority>
+ </editpolicyProvider>
+ </extension>
+ <extension
+ point="org.eclipse.papyrus.infra.gmfdiag.dnd.dropStrategy">
+ <strategy
+ strategy="org.eclipse.papyrus.sysml14.diagram.blockdefinition.dnd.AddedElementDropStrategy">
+ </strategy>
+ </extension>
+>>>>>>> 696cda6 Bug 463290 - Papyrus diagram shall be expanded with new visual graphical notation
</plugin>
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BDD.expansionmodel b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BDD.expansionmodel
new file mode 100644
index 00000000000..772b30a2b9e
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BDD.expansionmodel
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<expansionmodel:DiagramExpansion xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:expansionmodel="http:///expansionmodel.ecore">
+ <usages diagramType="SysML 1.4 Block Definition" representations="//@libraries.0/@representations.0" name="SysML 1.4 BDD Context">
+ <gmftRepresentations compartments="//@libraries.1/@compartments.0 //@libraries.1/@compartments.1" name="Block based on Class representation of class diagram" viewFactory="org.eclipse.papyrus.sysml14.diagram.blockdefinition.factory.BlockClassifierViewFactory" reusedId="2008"/>
+ </usages>
+ <libraries xsi:type="expansionmodel:RepresentationLibrary" name="Independant Representations">
+ <representations editPartQualifiedName="org.eclipse.papyrus.uml.diagram.clazz.edit.parts.PropertyForClassEditPart" kind="label" graphicalElementType="org.eclipse.papyrus.sysML.FlowPort_Label" name="Flow Port As Label" viewFactory="org.eclipse.papyrus.gmf.diagram.common.factory.ShapeViewFactory"/>
+ </libraries>
+ <libraries xsi:type="expansionmodel:CompartmentLibrary" name="Independant Compartments">
+ <compartments hint="Flow Ports" children="//@libraries.0/@representations.0" name="FlowPort Compartment"/>
+ <compartments hint="Nested Blocks" children="//@usages.0/@gmftRepresentations.0" kind="xy" name="Nested Blocks Compartment"/>
+ </libraries>
+</expansionmodel:DiagramExpansion>
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration
index 3b32816b51f..b8cae7aa12b 100644
--- a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration
@@ -1,283 +1,743 @@
-<?xml version="1.0" encoding="ASCII"?>
-<paletteconfiguration:PaletteConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:paletteconfiguration="http://www.eclipse.org/papyrus/diagram/paletteconfiguration/0.7" id="palettemodel" label="SysML">
- <drawerConfigurations id="WorkingPalette" label="WorkingPalette" description="WorkingPalette">
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Block" label="Block" description="Create a Block">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/blocks/Block.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Block_2008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Block_3004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Block_3008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Block_3010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Block_3014"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Requirement" label="Requirement" description="Create a Requirement">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/requirements/Requirement.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Requirement_2008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Requirement_3004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Requirement_3008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Requirement_3010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Requirement_3014"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Satisfy_Abstraction" label="Satisfy" description="Create a Satisfy" kind="ConnectionTool">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/requirements/Satisfy.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Satisfy_Abstraction_4006"/>
- </ownedConfigurations>
- </drawerConfigurations>
- <drawerConfigurations id="Nodes" label="Nodes" description="Nodes">
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.AdjunctProperty" label="AdjunctProperty" description="Create a AdjunctProperty">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.BoundReference" label="BoundReference" description="Create a BoundReference">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty" label="ClassifierBehaviorProperty" description="Create a ClassifierBehaviorProperty">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ConnectorProperty" label="ConnectorProperty" description="Create a ConnectorProperty">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ConstraintBlock" label="ConstraintBlock" description="Create a ConstraintBlock">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/constraints/ConstraintBlock.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_2008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_3004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_3008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_3010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_3014"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ControlOperator_Operation" label="ControlOperator" description="Create a ControlOperator">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Operation.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3003"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3007"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3013"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3019"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3042"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.DistributedProperty" label="DistributedProperty" description="Create a DistributedProperty">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ElementGroup" label="ElementGroup" description="Create a ElementGroup">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Comment.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ElementGroup_2012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ElementGroup_3028"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.EndPathMultiplicity" label="EndPathMultiplicity" description="Create a EndPathMultiplicity">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.EndPathMultiplicity_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.EndPathMultiplicity_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.EndPathMultiplicity_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.EndPathMultiplicity_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.EndPathMultiplicity_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.EndPathMultiplicity_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.FlowProperty" label="FlowProperty" description="Create a FlowProperty">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/portandflows/FlowProperty.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowProperty_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowProperty_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowProperty_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowProperty_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowProperty_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowProperty_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.FlowSpecification" label="FlowSpecification" description="Create a FlowSpecification">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Interface.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowSpecification_2004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowSpecification_3023"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowSpecification_3036"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowSpecification_3037"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.FlowSpecification_3038"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.InterfaceBlock" label="InterfaceBlock" description="Create a InterfaceBlock">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Class.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.InterfaceBlock_2008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.InterfaceBlock_3004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.InterfaceBlock_3008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.InterfaceBlock_3010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.InterfaceBlock_3014"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ParticipantProperty" label="ParticipantProperty" description="Create a ParticipantProperty">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ParticipantProperty_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ParticipantProperty_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ParticipantProperty_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ParticipantProperty_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ParticipantProperty_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ParticipantProperty_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Problem" label="Problem" description="Create a Problem">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/modelelements/Problem.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Problem_2012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Problem_3028"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Rationale" label="Rationale" description="Create a Rationale">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/modelelements/Rationale.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Rationale_2012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Rationale_3028"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.TestCase_Operation" label="TestCase" description="Create a TestCase">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Operation.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.TestCase_Operation_3003"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.TestCase_Operation_3007"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.TestCase_Operation_3013"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.TestCase_Operation_3019"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.TestCase_Operation_3042"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.View_Package" label="View" description="Create a View">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Package.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.View_Package_2007"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.View_Package_3009"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ViewPoint" label="ViewPoint" description="Create a ViewPoint">
- <icon pluginID="org.eclipse.papyrus.sysml.edit" iconPath="icons/full/obj16/ViewPoint.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ViewPoint_2008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ViewPoint_3004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ViewPoint_3008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ViewPoint_3010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ViewPoint_3014"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.View_Class" label="View Class" description="Create a View Class">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Class.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.View_Class_2008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.View_Class_3004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.View_Class_3008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.View_Class_3010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.View_Class_3014"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ValueType" label="ValueType" description="Create a ValueType">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/blocks/ValueType.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ValueType_2010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ValueType_3027"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ValueType_3043"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ValueType_3044"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ValueType_3045"/>
- </ownedConfigurations>
- </drawerConfigurations>
- <drawerConfigurations id="Edges" label="Edges" description="Edges">
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Copy_Abstraction" label="Copy" description="Create a Copy" kind="ConnectionTool">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/requirements/Copy.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Copy_Abstraction_4006"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Verify_Abstraction" label="Verify" description="Create a Verify">
- <icon pluginID="org.eclipse.papyrus.sysml" iconPath="icons/requirements/Verify.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Verify_Abstraction_4006"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Trace_Abstraction" label="Trace" description="Create a Trace" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Abstraction.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Trace_Abstraction_4006"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Refine_Abstraction" label="Refine" description="Create a Refine" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Abstraction.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Refine_Abstraction_4006"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Conform_Generalization" label="Conform" description="Create a Conform Generalization" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Generalization.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Conform_Generalization_4002"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Allocate_Abstraction" label="Allocate" description="Create a Allocate Abstraction" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Abstraction.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Allocate_Abstraction_4006"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.DeriveReqt_Abstraction" label="DeriveReqt" description="Create a DeriveReqt Abstraction" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Abstraction.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.DeriveReqt_Abstraction_4006"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Conform_Dependency" label="Conform" description="Create a Conform " kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Dependency.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Conform_Dependency_2014"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Conform_Dependency_4008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Conform_Dependency_4018"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Expose" label="Expose" description="Create a Expose" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Dependency.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Expose_2014"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Expose_4008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Expose_4018"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.ItemFlow" label="ItemFlow" description="Create a ItemFlow" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/InformationFlow.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.ItemFlow_4026"/>
- </ownedConfigurations>
- </drawerConfigurations>
- <drawerConfigurations id="Other SysML Elements" label="Other SysML Elements" description="Other SysML Elements">
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.View_Package_PapyrusUMLClassDi" label="View" description="Create a View">
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.View_Package_PapyrusUMLClassDiagram"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Allocated" label="Allocated" description="Create a Allocated">
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Allocated_2097"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.RequirementRelated" label="RequirementRelated" description="Create a RequirementRelated">
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.RequirementRelated_2097"/>
- </ownedConfigurations>
- </drawerConfigurations>
- <drawerConfigurations id="Deprecated" label="Deprecated" description="Deprecated">
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Deprecated_Property" label="Property (Deprecated)" description="Create a Deprecated Property">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Property_3002"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Property_3005"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Property_3006"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Property_3012"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Property_3018"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Property_3041"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Deprecated_InstanceSpecification" label="InstanceSpecification (Deprecated)" description="Create a Deprecated InstanceSpecification">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/InstanceSpecification.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_InstanceSpecification_4021"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_InstanceSpecification_2001"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_InstanceSpecification_3020"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Deprecated_Class" label="Class (Deprecated)" description="Create a Deprecated Class" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Class.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Class_2008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Class_3004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Class_3008"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Class_3010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Class_3014"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Deprecated_Association" label="Association (Deprecated)" description="Create a Deprecated Association" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Association.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Association_2015"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Association_4001"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Association_4019"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Deprecated_Generalization" label="Generalization (Deprecated)" description="Create a Deprecated Generalization" kind="ConnectionTool">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Generalization.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_Generalization_4002"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="org.eclipse.papyrus.sysML.Deprecated_DataType" label="DataType (Deprecated)" description="Create a Deprecated DataType">
- <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/DataType.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_DataType_2010"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_DataType_3027"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_DataType_3043"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_DataType_3044"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.sysML.Deprecated_DataType_3045"/>
- </ownedConfigurations>
- </drawerConfigurations>
-</paletteconfiguration:PaletteConfiguration>
+<?xml version="1.0" encoding="ASCII"?>
+<paletteconfiguration:PaletteConfiguration
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:paletteconfiguration="http://www.eclipse.org/papyrus/diagram/paletteconfiguration/0.7"
+ id="palettemodel"
+ label="SysML">
+ <drawerConfigurations
+ id="WorkingPalette"
+ label="WorkingPalette"
+ description="WorkingPalette">
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.Block"
+ label="Block"
+ description="Create a Block">
+ <icon
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/blocks/Block.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Block_2008"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Block_3004"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Block_3008"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Block_3010"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Block_3014"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Block_NestedBlock_Classifier"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.Requirement"
+ label="Requirement"
+ description="Create a Requirement">
+ <icon
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/requirements/Requirement.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Requirement_2008"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Requirement_3004"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Requirement_3008"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Requirement_3010"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Requirement_3014"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.Satisfy_Abstraction"
+ label="Satisfy"
+ description="Create a Satisfy"
+ kind="ConnectionTool">
+ <icon
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/requirements/Satisfy.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Satisfy_Abstraction_4006"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.FlowPort"
+ label="FlowPort"
+ description="Create a FlowPort">
+ <icon
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/portandflows/FlowProperty.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.FlowPort_Label"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.ControlOperator_Operation_Operation_BorderItem"
+ label="Create ControlOperator"
+ description="Create ControlOperator">
+ <icon
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/portandflows/FlowProperty.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_Operation_BorderItem"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.SysML14.Verify_Abstraction_Verify_Link"
+ label="Verify_Link"
+ kind="ConnectionTool">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/InformationFlow.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.SysML14.Verify_Abstraction_Verify_Link"/>
+ </ownedConfigurations>
+ </drawerConfigurations>
+ <drawerConfigurations
+ id="Nodes"
+ label="Nodes"
+ description="Nodes">
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.AdjunctProperty"
+ label="AdjunctProperty"
+ description="Create a AdjunctProperty">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/Property.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3002"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3005"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3006"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3012"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3018"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.AdjunctProperty_3041"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.BoundReference"
+ label="BoundReference"
+ description="Create a BoundReference">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/Property.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3002"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3005"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3006"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3012"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3018"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.BoundReference_3041"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty"
+ label="ClassifierBehaviorProperty"
+ description="Create a ClassifierBehaviorProperty">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/Property.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3002"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3005"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3006"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3012"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3018"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ClassifierBehaviorProperty_3041"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.ConnectorProperty"
+ label="ConnectorProperty"
+ description="Create a ConnectorProperty">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/Property.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3002"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3005"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3006"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3012"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3018"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConnectorProperty_3041"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.ConstraintBlock"
+ label="ConstraintBlock"
+ description="Create a ConstraintBlock">
+ <icon
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/constraints/ConstraintBlock.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_2008"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_3004"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_3008"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_3010"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ConstraintBlock_3014"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.ControlOperator_Operation"
+ label="ControlOperator"
+ description="Create a ControlOperator">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/Operation.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3003"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3007"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3013"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3019"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.ControlOperator_Operation_3042"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.DistributedProperty"
+ label="DistributedProperty"
+ description="Create a DistributedProperty">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/Property.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3002"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3005"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3006"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3012"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.DistributedProperty_3018"/>
+ <elementDescriptors
+