Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/customization/org.eclipse.papyrus.infra.gmfdiag.expansion.edit')
-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
33 files changed, 2152 insertions, 0 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;
+ }
+ }
+
+}

Back to the top