Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-07-04 10:36:52 -0400
committercletavernie2012-07-04 10:36:52 -0400
commit0d6a2fde5b6cabaad865d6a8214a8eb2c6acd655 (patch)
treef46ffe1fd4c8622124891d049bd285665e3ec441 /plugins/customization
parente74e2d975c3087bead0a64b3e9957958c7cf316c (diff)
downloadorg.eclipse.papyrus-0d6a2fde5b6cabaad865d6a8214a8eb2c6acd655.tar.gz
org.eclipse.papyrus-0d6a2fde5b6cabaad865d6a8214a8eb2c6acd655.tar.xz
org.eclipse.papyrus-0d6a2fde5b6cabaad865d6a8214a8eb2c6acd655.zip
351695: Create a new plugin to edit project files
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351695
Diffstat (limited to 'plugins/customization')
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/META-INF/MANIFEST.MF8
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/Model/Customization.ecore9
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/Model/Customization.genmodel11
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/Model/Customization/Customization.ctx2
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/plugin.xml22
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/schema/factory.exsd104
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/schema/metamodel.exsd102
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizableElement.java22
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/ModelTemplate.java107
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/Palette.java21
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/PropertyView.java21
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/ConstraintsEnvironment.java17
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizableElement.java27
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationConfiguration.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationConfiguration.java)34
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationPluginFactory.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationFactory.java)60
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationPluginPackage.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationPackage.java)338
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/FileBasedCustomizableElement.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/FileBasedCustomizableElement.java)25
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/ModelTemplate.java120
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/Palette.java26
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/Profile.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/Profile.java)49
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/PropertyView.java26
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/PropertyViewEnvironment.java17
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/UICustom.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/UICustom.java)25
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/UMLModel.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/UMLModel.java)43
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ConstraintsEnvironmentImpl.java39
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizableElementImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizableElementImpl.java)14
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationConfigurationImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationConfigurationImpl.java)47
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationPluginFactoryImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationFactoryImpl.java)78
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationPluginPackageImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationPackageImpl.java)103
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/FileBasedCustomizableElementImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/FileBasedCustomizableElementImpl.java)27
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ModelTemplateImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/ModelTemplateImpl.java)51
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PaletteImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/PaletteImpl.java)13
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ProfileImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/ProfileImpl.java)75
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PropertyViewEnvironmentImpl.java39
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PropertyViewImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/PropertyViewImpl.java)13
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/UICustomImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/UICustomImpl.java)27
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/UMLModelImpl.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/UMLModelImpl.java)63
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/util/CustomizationPluginAdapterFactory.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/util/CustomizationAdapterFactory.java)101
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/util/CustomizationPluginSwitch.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/util/CustomizationSwitch.java)84
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/creation/CustomizationElementCreationFactory.java10
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ConstraintEnvironmentExtensionFactory.java43
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactory.java40
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactoryRegistry.java68
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/FileBasedExtensionFactory.java6
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ModelTemplateExtensionFactory.java20
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ProfileExtensionFactory.java18
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/PropertyViewEnvironmentExtensionFactory.java (renamed from plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/EnvironmentExtensionFactory.java)14
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/PropertyViewExtensionFactory.java12
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UICustomExtensionFactory.java14
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UMLModelExtensionFactory.java15
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/generator/PluginGenerator.java17
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/modelelement/CustomizationModelElement.java4
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/BuildEditor.java64
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/ManifestEditor.java136
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java4
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/ProjectEditor.java103
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CreateNewCustomizationPluginWizard.java2
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CustomizationPage.java6
58 files changed, 1508 insertions, 1098 deletions
diff --git a/plugins/customization/org.eclipse.papyrus.customization/META-INF/MANIFEST.MF b/plugins/customization/org.eclipse.papyrus.customization/META-INF/MANIFEST.MF
index 63cb02d0c12..c562e1fbc83 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/META-INF/MANIFEST.MF
+++ b/plugins/customization/org.eclipse.papyrus.customization/META-INF/MANIFEST.MF
@@ -1,7 +1,9 @@
Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.customization.model.customization,
- org.eclipse.papyrus.customization.model.customization.impl,
- org.eclipse.papyrus.customization.model.customization.util,
+Export-Package: org.eclipse.papyrus.customization.factory,
+ org.eclipse.papyrus.customization.generator,
+ org.eclipse.papyrus.customization.model.customizationplugin,
+ org.eclipse.papyrus.customization.model.customizationplugin.impl,
+ org.eclipse.papyrus.customization.model.customizationplugin.util,
org.eclipse.papyrus.customization.plugin
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .
diff --git a/plugins/customization/org.eclipse.papyrus.customization/Model/Customization.ecore b/plugins/customization/org.eclipse.papyrus.customization/Model/Customization.ecore
index 2a9ac47d87d..381bc9ab3aa 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/Model/Customization.ecore
+++ b/plugins/customization/org.eclipse.papyrus.customization/Model/Customization.ecore
@@ -1,8 +1,7 @@
<?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="customization"
- nsURI="http://www.eclipse.org/papyrus/customization" nsPrefix="custom">
+<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="customizationplugin" nsURI="http://www.eclipse.org/papyrus/customization"
+ nsPrefix="custom">
<eClassifiers xsi:type="ecore:EClass" name="CustomizationConfiguration">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="plugin" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
@@ -38,4 +37,6 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="provider" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ConstraintsEnvironment" eSuperTypes="#//FileBasedCustomizableElement"/>
+ <eClassifiers xsi:type="ecore:EClass" name="PropertyViewEnvironment" eSuperTypes="#//FileBasedCustomizableElement"/>
</ecore:EPackage>
diff --git a/plugins/customization/org.eclipse.papyrus.customization/Model/Customization.genmodel b/plugins/customization/org.eclipse.papyrus.customization/Model/Customization.genmodel
index f8c014ceb0d..68dc2e7b1e8 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/Model/Customization.genmodel
+++ b/plugins/customization/org.eclipse.papyrus.customization/Model/Customization.genmodel
@@ -1,12 +1,11 @@
<?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.customization/src-gen"
- editDirectory="/org.eclipse.papyrus.customization.edit/src-gen" editorDirectory="/org.eclipse.papyrus.customization.editor/src-gen"
- modelPluginID="org.eclipse.papyrus.customization" modelName="Customization" testsDirectory="/org.eclipse.papyrus.customization.tests/src-gen"
+<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.customization/src-gen" editDirectory="/org.eclipse.papyrus.customization.edit/src-gen"
+ editorDirectory="/org.eclipse.papyrus.customization.editor/src-gen" modelPluginID="org.eclipse.papyrus.customization"
+ modelName="Customization" testsDirectory="/org.eclipse.papyrus.customization.tests/src-gen"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false">
<foreignModel>Customization.ecore</foreignModel>
- <genPackages prefix="Customization" basePackage="org.eclipse.papyrus.customization.model"
+ <genPackages prefix="CustomizationPlugin" basePackage="org.eclipse.papyrus.customization.model"
disposableProviderFactory="true" ecorePackage="Customization.ecore#/">
<genClasses ecoreClass="Customization.ecore#//CustomizationConfiguration">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//CustomizationConfiguration/plugin"/>
diff --git a/plugins/customization/org.eclipse.papyrus.customization/Model/Customization/Customization.ctx b/plugins/customization/org.eclipse.papyrus.customization/Model/Customization/Customization.ctx
index f7f9cbd7971..7ec28a7500a 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/Model/Customization/Customization.ctx
+++ b/plugins/customization/org.eclipse.papyrus.customization/Model/Customization/Customization.ctx
@@ -2,7 +2,7 @@
<contexts:Context xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:contexts="http://www.eclipse.org/papyrus/properties/contexts/0.9"
xmlns:constraints="http://www.eclipse.org/papyrus/constraints/0.9"
- name="customization">
+ name="Customization plug-in">
<tabs label="Default" id="default" category="default">
<sections name="Single CustomizationConfiguration"
sectionFile="ui/SingleCustomizationConfiguration.xwt">
diff --git a/plugins/customization/org.eclipse.papyrus.customization/plugin.xml b/plugins/customization/org.eclipse.papyrus.customization/plugin.xml
index 3e40417372e..7170570d866 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/plugin.xml
+++ b/plugins/customization/org.eclipse.papyrus.customization/plugin.xml
@@ -9,11 +9,13 @@
-->
<plugin>
+ <extension-point id="factory" name="factory" schema="schema/factory.exsd"/>
+ <extension-point id="metamodel" name="metamodel" schema="schema/metamodel.exsd"/>
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri="http://www.eclipse.org/papyrus/customization"
- class="org.eclipse.papyrus.customization.model.customization.CustomizationPackage"
+ class="org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage"
genModel="Model/Customization.genmodel"/>
</extension>
<extension
@@ -38,5 +40,23 @@
environmentModel="Model/Environment.xmi">
</environment>
</extension>
+ <extension
+ point="org.eclipse.papyrus.customization.factory">
+ <factory
+ factory="org.eclipse.papyrus.customization.factory.ModelTemplateExtensionFactory">
+ </factory>
+ <factory
+ factory="org.eclipse.papyrus.customization.factory.ProfileExtensionFactory">
+ </factory>
+ <factory
+ factory="org.eclipse.papyrus.customization.factory.PropertyViewExtensionFactory">
+ </factory>
+ <factory
+ factory="org.eclipse.papyrus.customization.factory.UICustomExtensionFactory">
+ </factory>
+ <factory
+ factory="org.eclipse.papyrus.customization.factory.UMLModelExtensionFactory">
+ </factory>
+ </extension>
</plugin>
diff --git a/plugins/customization/org.eclipse.papyrus.customization/schema/factory.exsd b/plugins/customization/org.eclipse.papyrus.customization/schema/factory.exsd
new file mode 100644
index 00000000000..4ee4b2e0198
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/schema/factory.exsd
@@ -0,0 +1,104 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.papyrus.customization" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.papyrus.customization" id="factory" name="factory"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <choice>
+ <element ref="factory" minOccurs="1" maxOccurs="unbounded"/>
+ </choice>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="factory">
+ <complexType>
+ <attribute name="factory" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.papyrus.customization.factory.ExtensionFactory"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiinfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
diff --git a/plugins/customization/org.eclipse.papyrus.customization/schema/metamodel.exsd b/plugins/customization/org.eclipse.papyrus.customization/schema/metamodel.exsd
new file mode 100644
index 00000000000..abe6c35dcda
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/schema/metamodel.exsd
@@ -0,0 +1,102 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.papyrus.customization" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.papyrus.customization" id="metamodel" name="metamodel"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="metamodel" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="metamodel">
+ <complexType>
+ <attribute name="package" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.emf.ecore.EPackage"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiinfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizableElement.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizableElement.java
deleted file mode 100644
index 16de4a27d35..00000000000
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizableElement.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Customizable Element</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getCustomizableElement()
- * @model abstract="true"
- * @generated
- */
-public interface CustomizableElement extends EObject {
-} // CustomizableElement
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/ModelTemplate.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/ModelTemplate.java
deleted file mode 100644
index 9ee49eb2550..00000000000
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/ModelTemplate.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Model Template</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#getLanguage <em>Language</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#getId <em>Id</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getModelTemplate()
- * @model
- * @generated
- */
-public interface ModelTemplate extends FileBasedCustomizableElement {
- /**
- * Returns the value of the '<em><b>Language</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Language</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Language</em>' attribute.
- * @see #setLanguage(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getModelTemplate_Language()
- * @model
- * @generated
- */
- String getLanguage();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#getLanguage <em>Language</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Language</em>' attribute.
- * @see #getLanguage()
- * @generated
- */
- void setLanguage(String 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.customization.model.customization.CustomizationPackage#getModelTemplate_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#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>Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>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>Id</em>' attribute.
- * @see #setId(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getModelTemplate_Id()
- * @model required="true"
- * @generated
- */
- String getId();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#getId <em>Id</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Id</em>' attribute.
- * @see #getId()
- * @generated
- */
- void setId(String value);
-
-} // ModelTemplate
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/Palette.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/Palette.java
deleted file mode 100644
index 11bb7974c1e..00000000000
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/Palette.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Palette</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getPalette()
- * @model
- * @generated
- */
-public interface Palette extends FileBasedCustomizableElement {
-} // Palette
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/PropertyView.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/PropertyView.java
deleted file mode 100644
index e29bb5c920a..00000000000
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/PropertyView.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Property View</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getPropertyView()
- * @model
- * @generated
- */
-public interface PropertyView extends FileBasedCustomizableElement {
-} // PropertyView
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/ConstraintsEnvironment.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/ConstraintsEnvironment.java
new file mode 100644
index 00000000000..482e7f29d84
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/ConstraintsEnvironment.java
@@ -0,0 +1,17 @@
+/**
+ */
+package org.eclipse.papyrus.customization.model.customizationplugin;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Constraints Environment</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getConstraintsEnvironment()
+ * @model
+ * @generated
+ */
+public interface ConstraintsEnvironment extends FileBasedCustomizableElement {
+} // ConstraintsEnvironment
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizableElement.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizableElement.java
new file mode 100644
index 00000000000..03f416b87f8
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizableElement.java
@@ -0,0 +1,27 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Customizable Element</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getCustomizableElement()
+ * @model abstract="true"
+ * @generated
+ */
+public interface CustomizableElement extends EObject {
+} // CustomizableElement
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationConfiguration.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationConfiguration.java
index 1420e4a5824..2473c5b03a2 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationConfiguration.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationConfiguration.java
@@ -1,28 +1,34 @@
-/**
- * <copyright>
- * </copyright>
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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
*
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
import org.eclipse.emf.common.util.EList;
+
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Configuration</b></em>'.
+ * A representation of the model object '<em><b>Customization Configuration</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration#getPlugin <em>Plugin</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration#getElements <em>Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration#getPlugin <em>Plugin</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration#getElements <em>Elements</em>}</li>
* </ul>
* </p>
*
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getCustomizationConfiguration()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration()
* @model
* @generated
*/
@@ -37,14 +43,14 @@ public interface CustomizationConfiguration extends EObject {
* <!-- end-user-doc -->
* @return the value of the '<em>Plugin</em>' attribute.
* @see #setPlugin(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getCustomizationConfiguration_Plugin()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration_Plugin()
* @model required="true"
* @generated
*/
String getPlugin();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration#getPlugin <em>Plugin</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration#getPlugin <em>Plugin</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Plugin</em>' attribute.
@@ -55,7 +61,7 @@ public interface CustomizationConfiguration extends EObject {
/**
* Returns the value of the '<em><b>Elements</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.customization.model.customization.CustomizableElement}.
+ * The list contents are of type {@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Elements</em>' containment reference list isn't clear,
@@ -63,7 +69,7 @@ public interface CustomizationConfiguration extends EObject {
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Elements</em>' containment reference list.
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getCustomizationConfiguration_Elements()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration_Elements()
* @model containment="true"
* @generated
*/
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationPluginFactory.java
index 11b2497d92e..10ad675f732 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationPluginFactory.java
@@ -1,10 +1,15 @@
-/**
- * <copyright>
- * </copyright>
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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
*
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
import org.eclipse.emf.ecore.EFactory;
@@ -13,23 +18,27 @@ import org.eclipse.emf.ecore.EFactory;
* 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.customization.model.customization.CustomizationPackage
+ *
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage
* @generated
*/
-public interface CustomizationFactory extends EFactory {
+public interface CustomizationPluginFactory extends EFactory {
+
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- CustomizationFactory eINSTANCE = org.eclipse.papyrus.customization.model.customization.impl.CustomizationFactoryImpl.init();
+ CustomizationPluginFactory eINSTANCE = org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginFactoryImpl.init();
/**
- * Returns a new object of class '<em>Configuration</em>'.
+ * Returns a new object of class '<em>Customization Configuration</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return a new object of class '<em>Configuration</em>'.
+ *
+ * @return a new object of class '<em>Customization Configuration</em>'.
* @generated
*/
CustomizationConfiguration createCustomizationConfiguration();
@@ -38,6 +47,7 @@ public interface CustomizationFactory extends EFactory {
* Returns a new object of class '<em>Property View</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Property View</em>'.
* @generated
*/
@@ -47,6 +57,7 @@ public interface CustomizationFactory extends EFactory {
* Returns a new object of class '<em>UI Custom</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>UI Custom</em>'.
* @generated
*/
@@ -56,6 +67,7 @@ public interface CustomizationFactory extends EFactory {
* Returns a new object of class '<em>Model Template</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Model Template</em>'.
* @generated
*/
@@ -65,6 +77,7 @@ public interface CustomizationFactory extends EFactory {
* Returns a new object of class '<em>Palette</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Palette</em>'.
* @generated
*/
@@ -74,6 +87,7 @@ public interface CustomizationFactory extends EFactory {
* Returns a new object of class '<em>Profile</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Profile</em>'.
* @generated
*/
@@ -83,18 +97,38 @@ public interface CustomizationFactory extends EFactory {
* Returns a new object of class '<em>UML Model</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>UML Model</em>'.
* @generated
*/
UMLModel createUMLModel();
/**
+ * Returns a new object of class '<em>Constraints Environment</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Constraints Environment</em>'.
+ * @generated
+ */
+ ConstraintsEnvironment createConstraintsEnvironment();
+
+ /**
+ * Returns a new object of class '<em>Property View Environment</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Property View Environment</em>'.
+ * @generated
+ */
+ PropertyViewEnvironment createPropertyViewEnvironment();
+
+ /**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the package supported by this factory.
* @generated
*/
- CustomizationPackage getCustomizationPackage();
+ CustomizationPluginPackage getCustomizationPluginPackage();
-} //CustomizationFactory
+} //CustomizationPluginFactory
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationPackage.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationPluginPackage.java
index 79a9af0b58e..67fb3c07127 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/CustomizationPackage.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/CustomizationPluginPackage.java
@@ -1,10 +1,15 @@
-/**
- * <copyright>
- * </copyright>
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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
*
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
@@ -22,18 +27,18 @@ import org.eclipse.emf.ecore.EReference;
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationFactory
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginFactory
* @model kind="package"
* @generated
*/
-public interface CustomizationPackage extends EPackage {
+public interface CustomizationPluginPackage extends EPackage {
/**
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- String eNAME = "customization";
+ String eNAME = "customizationplugin";
/**
* The package namespace URI.
@@ -57,14 +62,14 @@ public interface CustomizationPackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- CustomizationPackage eINSTANCE = org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl.init();
+ CustomizationPluginPackage eINSTANCE = org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl.init();
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.CustomizationConfigurationImpl <em>Configuration</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationConfigurationImpl <em>Customization Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationConfigurationImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getCustomizationConfiguration()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationConfigurationImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizationConfiguration()
* @generated
*/
int CUSTOMIZATION_CONFIGURATION = 0;
@@ -88,7 +93,7 @@ public interface CustomizationPackage extends EPackage {
int CUSTOMIZATION_CONFIGURATION__ELEMENTS = 1;
/**
- * The number of structural features of the '<em>Configuration</em>' class.
+ * The number of structural features of the '<em>Customization Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -97,11 +102,11 @@ public interface CustomizationPackage extends EPackage {
int CUSTOMIZATION_CONFIGURATION_FEATURE_COUNT = 2;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.CustomizableElementImpl <em>Customizable Element</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizableElementImpl <em>Customizable Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizableElementImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getCustomizableElement()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizableElementImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizableElement()
* @generated
*/
int CUSTOMIZABLE_ELEMENT = 1;
@@ -116,11 +121,11 @@ public interface CustomizationPackage extends EPackage {
int CUSTOMIZABLE_ELEMENT_FEATURE_COUNT = 0;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.FileBasedCustomizableElementImpl <em>File Based Customizable Element</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.FileBasedCustomizableElementImpl <em>File Based Customizable Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.FileBasedCustomizableElementImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getFileBasedCustomizableElement()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.FileBasedCustomizableElementImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getFileBasedCustomizableElement()
* @generated
*/
int FILE_BASED_CUSTOMIZABLE_ELEMENT = 2;
@@ -144,11 +149,11 @@ public interface CustomizationPackage extends EPackage {
int FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT = CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.PropertyViewImpl <em>Property View</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.PropertyViewImpl <em>Property View</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.PropertyViewImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getPropertyView()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.PropertyViewImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyView()
* @generated
*/
int PROPERTY_VIEW = 3;
@@ -172,11 +177,11 @@ public interface CustomizationPackage extends EPackage {
int PROPERTY_VIEW_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.UICustomImpl <em>UI Custom</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UICustomImpl <em>UI Custom</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.UICustomImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getUICustom()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.UICustomImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUICustom()
* @generated
*/
int UI_CUSTOM = 4;
@@ -209,11 +214,11 @@ public interface CustomizationPackage extends EPackage {
int UI_CUSTOM_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.ModelTemplateImpl <em>Model Template</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ModelTemplateImpl <em>Model Template</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.ModelTemplateImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getModelTemplate()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.ModelTemplateImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getModelTemplate()
* @generated
*/
int MODEL_TEMPLATE = 5;
@@ -264,11 +269,11 @@ public interface CustomizationPackage extends EPackage {
int MODEL_TEMPLATE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 3;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.PaletteImpl <em>Palette</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.PaletteImpl <em>Palette</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.PaletteImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getPalette()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.PaletteImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPalette()
* @generated
*/
int PALETTE = 6;
@@ -292,11 +297,11 @@ public interface CustomizationPackage extends EPackage {
int PALETTE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl <em>Profile</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl <em>Profile</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getProfile()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getProfile()
* @generated
*/
int PROFILE = 7;
@@ -365,11 +370,11 @@ public interface CustomizationPackage extends EPackage {
int PROFILE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 5;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customization.impl.UMLModelImpl <em>UML Model</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UMLModelImpl <em>UML Model</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.UMLModelImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getUMLModel()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.UMLModelImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUMLModel()
* @generated
*/
int UML_MODEL = 8;
@@ -430,279 +435,356 @@ public interface CustomizationPackage extends EPackage {
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration <em>Configuration</em>}'.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ConstraintsEnvironmentImpl <em>Constraints Environment</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.ConstraintsEnvironmentImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getConstraintsEnvironment()
+ * @generated
+ */
+ int CONSTRAINTS_ENVIRONMENT = 9;
+
+ /**
+ * The feature id for the '<em><b>File</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CONSTRAINTS_ENVIRONMENT__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
+
+ /**
+ * The number of structural features of the '<em>Constraints Environment</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for class '<em>Configuration</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration
+ * @generated
+ * @ordered
+ */
+ int CONSTRAINTS_ENVIRONMENT_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.PropertyViewEnvironmentImpl <em>Property View Environment</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.PropertyViewEnvironmentImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyViewEnvironment()
+ * @generated
+ */
+ int PROPERTY_VIEW_ENVIRONMENT = 10;
+
+ /**
+ * The feature id for the '<em><b>File</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_VIEW_ENVIRONMENT__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
+
+ /**
+ * The number of structural features of the '<em>Property View Environment</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_VIEW_ENVIRONMENT_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration <em>Customization Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Customization Configuration</em>'.
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration
* @generated
*/
EClass getCustomizationConfiguration();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration#getPlugin <em>Plugin</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration#getPlugin <em>Plugin</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Plugin</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration#getPlugin()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration#getPlugin()
* @see #getCustomizationConfiguration()
* @generated
*/
EAttribute getCustomizationConfiguration_Plugin();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration#getElements <em>Elements</em>}'.
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration#getElements <em>Elements</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Elements</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration#getElements()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration#getElements()
* @see #getCustomizationConfiguration()
* @generated
*/
EReference getCustomizationConfiguration_Elements();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.CustomizableElement <em>Customizable Element</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement <em>Customizable Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Customizable Element</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.CustomizableElement
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement
* @generated
*/
EClass getCustomizableElement();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement <em>File Based Customizable Element</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement <em>File Based Customizable Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>File Based Customizable Element</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement
* @generated
*/
EClass getFileBasedCustomizableElement();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement#getFile <em>File</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement#getFile <em>File</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>File</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement#getFile()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement#getFile()
* @see #getFileBasedCustomizableElement()
* @generated
*/
EAttribute getFileBasedCustomizableElement_File();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.PropertyView <em>Property View</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.PropertyView <em>Property View</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Property View</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.PropertyView
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.PropertyView
* @generated
*/
EClass getPropertyView();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.UICustom <em>UI Custom</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.UICustom <em>UI Custom</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>UI Custom</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.UICustom
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UICustom
* @generated
*/
EClass getUICustom();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.UICustom#isLoadByDefault <em>Load By Default</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.UICustom#isLoadByDefault <em>Load By Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Load By Default</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.UICustom#isLoadByDefault()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UICustom#isLoadByDefault()
* @see #getUICustom()
* @generated
*/
EAttribute getUICustom_LoadByDefault();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate <em>Model Template</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate <em>Model Template</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Model Template</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.ModelTemplate
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate
* @generated
*/
EClass getModelTemplate();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#getLanguage <em>Language</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getLanguage <em>Language</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Language</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.ModelTemplate#getLanguage()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getLanguage()
* @see #getModelTemplate()
* @generated
*/
EAttribute getModelTemplate_Language();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#getName <em>Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.ModelTemplate#getName()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getName()
* @see #getModelTemplate()
* @generated
*/
EAttribute getModelTemplate_Name();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate#getId <em>Id</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getId <em>Id</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Id</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.ModelTemplate#getId()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getId()
* @see #getModelTemplate()
* @generated
*/
EAttribute getModelTemplate_Id();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.Palette <em>Palette</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.Palette <em>Palette</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Palette</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.Palette
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Palette
* @generated
*/
EClass getPalette();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.Profile <em>Profile</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile <em>Profile</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Profile</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.Profile
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Profile
* @generated
*/
EClass getProfile();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.Profile#getQualifiednames <em>Qualifiednames</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getQualifiednames <em>Qualifiednames</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Qualifiednames</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.Profile#getQualifiednames()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Profile#getQualifiednames()
* @see #getProfile()
* @generated
*/
EAttribute getProfile_Qualifiednames();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.Profile#getIconpath <em>Iconpath</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getIconpath <em>Iconpath</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Iconpath</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.Profile#getIconpath()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Profile#getIconpath()
* @see #getProfile()
* @generated
*/
EAttribute getProfile_Iconpath();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.Profile#getDescription <em>Description</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getDescription <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Description</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.Profile#getDescription()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Profile#getDescription()
* @see #getProfile()
* @generated
*/
EAttribute getProfile_Description();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.Profile#getProvider <em>Provider</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getProvider <em>Provider</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Provider</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.Profile#getProvider()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Profile#getProvider()
* @see #getProfile()
* @generated
*/
EAttribute getProfile_Provider();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.Profile#getName <em>Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.Profile#getName()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Profile#getName()
* @see #getProfile()
* @generated
*/
EAttribute getProfile_Name();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customization.UMLModel <em>UML Model</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel <em>UML Model</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>UML Model</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.UMLModel
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UMLModel
* @generated
*/
EClass getUMLModel();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getName <em>Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.UMLModel#getName()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getName()
* @see #getUMLModel()
* @generated
*/
EAttribute getUMLModel_Name();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getIconpath <em>Iconpath</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getIconpath <em>Iconpath</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Iconpath</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.UMLModel#getIconpath()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getIconpath()
* @see #getUMLModel()
* @generated
*/
EAttribute getUMLModel_Iconpath();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getDescription <em>Description</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getDescription <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Description</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.UMLModel#getDescription()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getDescription()
* @see #getUMLModel()
* @generated
*/
EAttribute getUMLModel_Description();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getProvider <em>Provider</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getProvider <em>Provider</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Provider</em>'.
- * @see org.eclipse.papyrus.customization.model.customization.UMLModel#getProvider()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getProvider()
* @see #getUMLModel()
* @generated
*/
EAttribute getUMLModel_Provider();
/**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.ConstraintsEnvironment <em>Constraints Environment</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Constraints Environment</em>'.
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.ConstraintsEnvironment
+ * @generated
+ */
+ EClass getConstraintsEnvironment();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.model.customizationplugin.PropertyViewEnvironment <em>Property View Environment</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Property View Environment</em>'.
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.PropertyViewEnvironment
+ * @generated
+ */
+ EClass getPropertyViewEnvironment();
+
+ /**
* 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
*/
- CustomizationFactory getCustomizationFactory();
+ CustomizationPluginFactory getCustomizationPluginFactory();
/**
* <!-- begin-user-doc -->
@@ -718,11 +800,11 @@ public interface CustomizationPackage extends EPackage {
*/
interface Literals {
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.CustomizationConfigurationImpl <em>Configuration</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationConfigurationImpl <em>Customization Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationConfigurationImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getCustomizationConfiguration()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationConfigurationImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizationConfiguration()
* @generated
*/
EClass CUSTOMIZATION_CONFIGURATION = eINSTANCE.getCustomizationConfiguration();
@@ -744,21 +826,21 @@ public interface CustomizationPackage extends EPackage {
EReference CUSTOMIZATION_CONFIGURATION__ELEMENTS = eINSTANCE.getCustomizationConfiguration_Elements();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.CustomizableElementImpl <em>Customizable Element</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizableElementImpl <em>Customizable Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizableElementImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getCustomizableElement()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizableElementImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizableElement()
* @generated
*/
EClass CUSTOMIZABLE_ELEMENT = eINSTANCE.getCustomizableElement();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.FileBasedCustomizableElementImpl <em>File Based Customizable Element</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.FileBasedCustomizableElementImpl <em>File Based Customizable Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.FileBasedCustomizableElementImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getFileBasedCustomizableElement()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.FileBasedCustomizableElementImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getFileBasedCustomizableElement()
* @generated
*/
EClass FILE_BASED_CUSTOMIZABLE_ELEMENT = eINSTANCE.getFileBasedCustomizableElement();
@@ -772,21 +854,21 @@ public interface CustomizationPackage extends EPackage {
EAttribute FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE = eINSTANCE.getFileBasedCustomizableElement_File();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.PropertyViewImpl <em>Property View</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.PropertyViewImpl <em>Property View</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.PropertyViewImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getPropertyView()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.PropertyViewImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyView()
* @generated
*/
EClass PROPERTY_VIEW = eINSTANCE.getPropertyView();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.UICustomImpl <em>UI Custom</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UICustomImpl <em>UI Custom</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.UICustomImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getUICustom()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.UICustomImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUICustom()
* @generated
*/
EClass UI_CUSTOM = eINSTANCE.getUICustom();
@@ -800,11 +882,11 @@ public interface CustomizationPackage extends EPackage {
EAttribute UI_CUSTOM__LOAD_BY_DEFAULT = eINSTANCE.getUICustom_LoadByDefault();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.ModelTemplateImpl <em>Model Template</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ModelTemplateImpl <em>Model Template</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.ModelTemplateImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getModelTemplate()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.ModelTemplateImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getModelTemplate()
* @generated
*/
EClass MODEL_TEMPLATE = eINSTANCE.getModelTemplate();
@@ -834,21 +916,21 @@ public interface CustomizationPackage extends EPackage {
EAttribute MODEL_TEMPLATE__ID = eINSTANCE.getModelTemplate_Id();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.PaletteImpl <em>Palette</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.PaletteImpl <em>Palette</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.PaletteImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getPalette()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.PaletteImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPalette()
* @generated
*/
EClass PALETTE = eINSTANCE.getPalette();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl <em>Profile</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl <em>Profile</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getProfile()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getProfile()
* @generated
*/
EClass PROFILE = eINSTANCE.getProfile();
@@ -894,11 +976,11 @@ public interface CustomizationPackage extends EPackage {
EAttribute PROFILE__NAME = eINSTANCE.getProfile_Name();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customization.impl.UMLModelImpl <em>UML Model</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UMLModelImpl <em>UML Model</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.impl.UMLModelImpl
- * @see org.eclipse.papyrus.customization.model.customization.impl.CustomizationPackageImpl#getUMLModel()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.UMLModelImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUMLModel()
* @generated
*/
EClass UML_MODEL = eINSTANCE.getUMLModel();
@@ -935,6 +1017,26 @@ public interface CustomizationPackage extends EPackage {
*/
EAttribute UML_MODEL__PROVIDER = eINSTANCE.getUMLModel_Provider();
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ConstraintsEnvironmentImpl <em>Constraints Environment</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.ConstraintsEnvironmentImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getConstraintsEnvironment()
+ * @generated
+ */
+ EClass CONSTRAINTS_ENVIRONMENT = eINSTANCE.getConstraintsEnvironment();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.PropertyViewEnvironmentImpl <em>Property View Environment</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.PropertyViewEnvironmentImpl
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyViewEnvironment()
+ * @generated
+ */
+ EClass PROPERTY_VIEW_ENVIRONMENT = eINSTANCE.getPropertyViewEnvironment();
+
}
-} //CustomizationPackage
+} //CustomizationPluginPackage
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/FileBasedCustomizableElement.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/FileBasedCustomizableElement.java
index 182693ff877..c83da362fc0 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/FileBasedCustomizableElement.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/FileBasedCustomizableElement.java
@@ -1,10 +1,15 @@
-/**
- * <copyright>
- * </copyright>
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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
*
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
/**
@@ -15,11 +20,11 @@ package org.eclipse.papyrus.customization.model.customization;
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement#getFile <em>File</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement#getFile <em>File</em>}</li>
* </ul>
* </p>
*
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getFileBasedCustomizableElement()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getFileBasedCustomizableElement()
* @model abstract="true"
* @generated
*/
@@ -34,14 +39,14 @@ public interface FileBasedCustomizableElement extends CustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>File</em>' attribute.
* @see #setFile(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getFileBasedCustomizableElement_File()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getFileBasedCustomizableElement_File()
* @model required="true"
* @generated
*/
String getFile();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement#getFile <em>File</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement#getFile <em>File</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>File</em>' attribute.
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/ModelTemplate.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/ModelTemplate.java
new file mode 100644
index 00000000000..067bb7176c4
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/ModelTemplate.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Model Template</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getLanguage <em>Language</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getId <em>Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getModelTemplate()
+ * @model
+ * @generated
+ */
+public interface ModelTemplate extends FileBasedCustomizableElement {
+
+ /**
+ * Returns the value of the '<em><b>Language</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Language</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Language</em>' attribute.
+ * @see #setLanguage(String)
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Language()
+ * @model
+ * @generated
+ */
+ String getLanguage();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getLanguage <em>Language</em>}'
+ * attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Language</em>' attribute.
+ * @see #getLanguage()
+ * @generated
+ */
+ void setLanguage(String 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.customization.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#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>Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>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>Id</em>' attribute.
+ * @see #setId(String)
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Id()
+ * @model required="true"
+ * @generated
+ */
+ String getId();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate#getId <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Id</em>' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
+
+} // ModelTemplate
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/Palette.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/Palette.java
new file mode 100644
index 00000000000..55dc29f213c
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/Palette.java
@@ -0,0 +1,26 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Palette</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getPalette()
+ * @model
+ * @generated
+ */
+public interface Palette extends FileBasedCustomizableElement {
+} // Palette
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/Profile.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/Profile.java
index f11f3e08506..fbbb13df3a9 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/Profile.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/Profile.java
@@ -1,10 +1,15 @@
-/**
- * <copyright>
- * </copyright>
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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
*
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
/**
@@ -15,15 +20,15 @@ package org.eclipse.papyrus.customization.model.customization;
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.Profile#getQualifiednames <em>Qualifiednames</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.Profile#getIconpath <em>Iconpath</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.Profile#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.Profile#getProvider <em>Provider</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.Profile#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getQualifiednames <em>Qualifiednames</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getIconpath <em>Iconpath</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getProvider <em>Provider</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getName <em>Name</em>}</li>
* </ul>
* </p>
*
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getProfile()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getProfile()
* @model
* @generated
*/
@@ -38,14 +43,14 @@ public interface Profile extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Qualifiednames</em>' attribute.
* @see #setQualifiednames(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getProfile_Qualifiednames()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getProfile_Qualifiednames()
* @model
* @generated
*/
String getQualifiednames();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.Profile#getQualifiednames <em>Qualifiednames</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getQualifiednames <em>Qualifiednames</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Qualifiednames</em>' attribute.
@@ -64,14 +69,14 @@ public interface Profile extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Iconpath</em>' attribute.
* @see #setIconpath(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getProfile_Iconpath()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getProfile_Iconpath()
* @model
* @generated
*/
String getIconpath();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.Profile#getIconpath <em>Iconpath</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getIconpath <em>Iconpath</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Iconpath</em>' attribute.
@@ -90,14 +95,14 @@ public interface Profile extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Description</em>' attribute.
* @see #setDescription(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getProfile_Description()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getProfile_Description()
* @model
* @generated
*/
String getDescription();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.Profile#getDescription <em>Description</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getDescription <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Description</em>' attribute.
@@ -116,14 +121,14 @@ public interface Profile extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Provider</em>' attribute.
* @see #setProvider(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getProfile_Provider()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getProfile_Provider()
* @model
* @generated
*/
String getProvider();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.Profile#getProvider <em>Provider</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getProvider <em>Provider</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Provider</em>' attribute.
@@ -142,14 +147,14 @@ public interface Profile extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getProfile_Name()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getProfile_Name()
* @model required="true"
* @generated
*/
String getName();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.Profile#getName <em>Name</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/PropertyView.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/PropertyView.java
new file mode 100644
index 00000000000..4531d5a5d00
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/PropertyView.java
@@ -0,0 +1,26 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Property View</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getPropertyView()
+ * @model
+ * @generated
+ */
+public interface PropertyView extends FileBasedCustomizableElement {
+} // PropertyView
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/PropertyViewEnvironment.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/PropertyViewEnvironment.java
new file mode 100644
index 00000000000..754200a0e16
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/PropertyViewEnvironment.java
@@ -0,0 +1,17 @@
+/**
+ */
+package org.eclipse.papyrus.customization.model.customizationplugin;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Property View Environment</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getPropertyViewEnvironment()
+ * @model
+ * @generated
+ */
+public interface PropertyViewEnvironment extends FileBasedCustomizableElement {
+} // PropertyViewEnvironment
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/UICustom.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/UICustom.java
index f0e29eefe88..5a5951fd38c 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/UICustom.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/UICustom.java
@@ -1,10 +1,15 @@
-/**
- * <copyright>
- * </copyright>
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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
*
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
/**
@@ -15,11 +20,11 @@ package org.eclipse.papyrus.customization.model.customization;
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.UICustom#isLoadByDefault <em>Load By Default</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.UICustom#isLoadByDefault <em>Load By Default</em>}</li>
* </ul>
* </p>
*
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getUICustom()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getUICustom()
* @model
* @generated
*/
@@ -35,14 +40,14 @@ public interface UICustom extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Load By Default</em>' attribute.
* @see #setLoadByDefault(boolean)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getUICustom_LoadByDefault()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getUICustom_LoadByDefault()
* @model default="false"
* @generated
*/
boolean isLoadByDefault();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.UICustom#isLoadByDefault <em>Load By Default</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.UICustom#isLoadByDefault <em>Load By Default</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Load By Default</em>' attribute.
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/UMLModel.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/UMLModel.java
index 387e7eb627e..8fd34d00398 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/UMLModel.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/UMLModel.java
@@ -1,10 +1,15 @@
-/**
- * <copyright>
- * </copyright>
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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
*
- * $Id$
- */
-package org.eclipse.papyrus.customization.model.customization;
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.model.customizationplugin;
/**
@@ -15,14 +20,14 @@ package org.eclipse.papyrus.customization.model.customization;
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getIconpath <em>Iconpath</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getProvider <em>Provider</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getIconpath <em>Iconpath</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getProvider <em>Provider</em>}</li>
* </ul>
* </p>
*
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getUMLModel()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getUMLModel()
* @model
* @generated
*/
@@ -37,14 +42,14 @@ public interface UMLModel extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getUMLModel_Name()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getUMLModel_Name()
* @model
* @generated
*/
String getName();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getName <em>Name</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
@@ -63,14 +68,14 @@ public interface UMLModel extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Iconpath</em>' attribute.
* @see #setIconpath(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getUMLModel_Iconpath()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getUMLModel_Iconpath()
* @model
* @generated
*/
String getIconpath();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getIconpath <em>Iconpath</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getIconpath <em>Iconpath</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Iconpath</em>' attribute.
@@ -89,14 +94,14 @@ public interface UMLModel extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Description</em>' attribute.
* @see #setDescription(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getUMLModel_Description()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getUMLModel_Description()
* @model
* @generated
*/
String getDescription();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getDescription <em>Description</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getDescription <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Description</em>' attribute.
@@ -115,14 +120,14 @@ public interface UMLModel extends FileBasedCustomizableElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Provider</em>' attribute.
* @see #setProvider(String)
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#getUMLModel_Provider()
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#getUMLModel_Provider()
* @model
* @generated
*/
String getProvider();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customization.UMLModel#getProvider <em>Provider</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel#getProvider <em>Provider</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Provider</em>' attribute.
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ConstraintsEnvironmentImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ConstraintsEnvironmentImpl.java
new file mode 100644
index 00000000000..78a76f45aeb
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ConstraintsEnvironmentImpl.java
@@ -0,0 +1,39 @@
+/**
+ */
+package org.eclipse.papyrus.customization.model.customizationplugin.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.ConstraintsEnvironment;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Constraints Environment</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class ConstraintsEnvironmentImpl extends FileBasedCustomizableElementImpl implements ConstraintsEnvironment {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ConstraintsEnvironmentImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return CustomizationPluginPackage.Literals.CONSTRAINTS_ENVIRONMENT;
+ }
+
+} //ConstraintsEnvironmentImpl
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizableElementImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizableElementImpl.java
index 76323429cf5..25ee87743a6 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizableElementImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizableElementImpl.java
@@ -1,15 +1,13 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.impl;
import org.eclipse.emf.ecore.EClass;
+
import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
/**
* <!-- begin-user-doc -->
@@ -37,7 +35,7 @@ public abstract class CustomizableElementImpl extends EObjectImpl implements Cus
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.CUSTOMIZABLE_ELEMENT;
+ return CustomizationPluginPackage.Literals.CUSTOMIZABLE_ELEMENT;
}
} //CustomizableElementImpl
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationConfigurationImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationConfigurationImpl.java
index e03f8a043af..2520e4380d8 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationConfigurationImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationConfigurationImpl.java
@@ -1,35 +1,36 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.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.EObjectImpl;
+
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
/**
* <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Configuration</b></em>'.
+ * An implementation of the model object '<em><b>Customization Configuration</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.CustomizationConfigurationImpl#getPlugin <em>Plugin</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.CustomizationConfigurationImpl#getElements <em>Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationConfigurationImpl#getPlugin <em>Plugin</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.CustomizationConfigurationImpl#getElements <em>Elements</em>}</li>
* </ul>
* </p>
*
@@ -82,7 +83,7 @@ public class CustomizationConfigurationImpl extends EObjectImpl implements Custo
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.CUSTOMIZATION_CONFIGURATION;
+ return CustomizationPluginPackage.Literals.CUSTOMIZATION_CONFIGURATION;
}
/**
@@ -103,7 +104,7 @@ public class CustomizationConfigurationImpl extends EObjectImpl implements Custo
String oldPlugin = plugin;
plugin = newPlugin;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN, oldPlugin, plugin));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN, oldPlugin, plugin));
}
/**
@@ -113,7 +114,7 @@ public class CustomizationConfigurationImpl extends EObjectImpl implements Custo
*/
public EList<CustomizableElement> getElements() {
if (elements == null) {
- elements = new EObjectContainmentEList<CustomizableElement>(CustomizableElement.class, this, CustomizationPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS);
+ elements = new EObjectContainmentEList<CustomizableElement>(CustomizableElement.class, this, CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS);
}
return elements;
}
@@ -126,7 +127,7 @@ public class CustomizationConfigurationImpl extends EObjectImpl implements Custo
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -140,9 +141,9 @@ public class CustomizationConfigurationImpl extends EObjectImpl implements Custo
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
return getPlugin();
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
return getElements();
}
return super.eGet(featureID, resolve, coreType);
@@ -157,10 +158,10 @@ public class CustomizationConfigurationImpl extends EObjectImpl implements Custo
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
setPlugin((String)newValue);
return;
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
getElements().clear();
getElements().addAll((Collection<? extends CustomizableElement>)newValue);
return;
@@ -176,10 +177,10 @@ public class CustomizationConfigurationImpl extends EObjectImpl implements Custo
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
setPlugin(PLUGIN_EDEFAULT);
return;
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
getElements().clear();
return;
}
@@ -194,9 +195,9 @@ public class CustomizationConfigurationImpl extends EObjectImpl implements Custo
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
return PLUGIN_EDEFAULT == null ? plugin != null : !PLUGIN_EDEFAULT.equals(plugin);
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
return elements != null && !elements.isEmpty();
}
return super.eIsSet(featureID);
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationFactoryImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationPluginFactoryImpl.java
index ef87eddf59e..6c89bbf460f 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationFactoryImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationPluginFactoryImpl.java
@@ -1,26 +1,16 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.impl;
import org.eclipse.emf.ecore.EClass;
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.customization.model.customization.*;
-import org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration;
-import org.eclipse.papyrus.customization.model.customization.CustomizationFactory;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.ModelTemplate;
-import org.eclipse.papyrus.customization.model.customization.Palette;
-import org.eclipse.papyrus.customization.model.customization.Profile;
-import org.eclipse.papyrus.customization.model.customization.PropertyView;
-import org.eclipse.papyrus.customization.model.customization.UICustom;
-import org.eclipse.papyrus.customization.model.customization.UMLModel;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.*;
/**
* <!-- begin-user-doc -->
@@ -28,24 +18,24 @@ import org.eclipse.papyrus.customization.model.customization.UMLModel;
* <!-- end-user-doc -->
* @generated
*/
-public class CustomizationFactoryImpl extends EFactoryImpl implements CustomizationFactory {
+public class CustomizationPluginFactoryImpl extends EFactoryImpl implements CustomizationPluginFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static CustomizationFactory init() {
+ public static CustomizationPluginFactory init() {
try {
- CustomizationFactory theCustomizationFactory = (CustomizationFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/customization");
- if (theCustomizationFactory != null) {
- return theCustomizationFactory;
+ CustomizationPluginFactory theCustomizationPluginFactory = (CustomizationPluginFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/customization");
+ if (theCustomizationPluginFactory != null) {
+ return theCustomizationPluginFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
- return new CustomizationFactoryImpl();
+ return new CustomizationPluginFactoryImpl();
}
/**
@@ -54,7 +44,7 @@ public class CustomizationFactoryImpl extends EFactoryImpl implements Customizat
* <!-- end-user-doc -->
* @generated
*/
- public CustomizationFactoryImpl() {
+ public CustomizationPluginFactoryImpl() {
super();
}
@@ -66,13 +56,13 @@ public class CustomizationFactoryImpl extends EFactoryImpl implements Customizat
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION: return createCustomizationConfiguration();
- case CustomizationPackage.PROPERTY_VIEW: return createPropertyView();
- case CustomizationPackage.UI_CUSTOM: return createUICustom();
- case CustomizationPackage.MODEL_TEMPLATE: return createModelTemplate();
- case CustomizationPackage.PALETTE: return createPalette();
- case CustomizationPackage.PROFILE: return createProfile();
- case CustomizationPackage.UML_MODEL: return createUMLModel();
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION: return createCustomizationConfiguration();
+ case CustomizationPluginPackage.PROPERTY_VIEW: return createPropertyView();
+ case CustomizationPluginPackage.UI_CUSTOM: return createUICustom();
+ case CustomizationPluginPackage.MODEL_TEMPLATE: return createModelTemplate();
+ case CustomizationPluginPackage.PALETTE: return createPalette();
+ case CustomizationPluginPackage.PROFILE: return createProfile();
+ case CustomizationPluginPackage.UML_MODEL: return createUMLModel();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -153,8 +143,28 @@ public class CustomizationFactoryImpl extends EFactoryImpl implements Customizat
* <!-- end-user-doc -->
* @generated
*/
- public CustomizationPackage getCustomizationPackage() {
- return (CustomizationPackage)getEPackage();
+ public ConstraintsEnvironment createConstraintsEnvironment() {
+ ConstraintsEnvironmentImpl constraintsEnvironment = new ConstraintsEnvironmentImpl();
+ return constraintsEnvironment;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PropertyViewEnvironment createPropertyViewEnvironment() {
+ PropertyViewEnvironmentImpl propertyViewEnvironment = new PropertyViewEnvironmentImpl();
+ return propertyViewEnvironment;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CustomizationPluginPackage getCustomizationPluginPackage() {
+ return (CustomizationPluginPackage)getEPackage();
}
/**
@@ -164,8 +174,8 @@ public class CustomizationFactoryImpl extends EFactoryImpl implements Customizat
* @generated
*/
@Deprecated
- public static CustomizationPackage getPackage() {
- return CustomizationPackage.eINSTANCE;
+ public static CustomizationPluginPackage getPackage() {
+ return CustomizationPluginPackage.eINSTANCE;
}
-} //CustomizationFactoryImpl
+} //CustomizationPluginFactoryImpl
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationPackageImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationPluginPackageImpl.java
index bb6cd298c29..fb4ea763ddf 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/CustomizationPackageImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/CustomizationPluginPackageImpl.java
@@ -1,27 +1,27 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.impl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
+
import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration;
-import org.eclipse.papyrus.customization.model.customization.CustomizationFactory;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.ModelTemplate;
-import org.eclipse.papyrus.customization.model.customization.Palette;
-import org.eclipse.papyrus.customization.model.customization.Profile;
-import org.eclipse.papyrus.customization.model.customization.PropertyView;
-import org.eclipse.papyrus.customization.model.customization.UICustom;
-import org.eclipse.papyrus.customization.model.customization.UMLModel;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.ConstraintsEnvironment;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginFactory;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate;
+import org.eclipse.papyrus.customization.model.customizationplugin.Palette;
+import org.eclipse.papyrus.customization.model.customizationplugin.Profile;
+import org.eclipse.papyrus.customization.model.customizationplugin.PropertyView;
+import org.eclipse.papyrus.customization.model.customizationplugin.PropertyViewEnvironment;
+import org.eclipse.papyrus.customization.model.customizationplugin.UICustom;
+import org.eclipse.papyrus.customization.model.customizationplugin.UMLModel;
/**
* <!-- begin-user-doc -->
@@ -29,8 +29,7 @@ import org.eclipse.papyrus.customization.model.customization.UMLModel;
* <!-- end-user-doc -->
* @generated
*/
-public class CustomizationPackageImpl extends EPackageImpl implements CustomizationPackage {
-
+public class CustomizationPluginPackageImpl extends EPackageImpl implements CustomizationPluginPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -95,6 +94,20 @@ public class CustomizationPackageImpl extends EPackageImpl implements Customizat
private EClass umlModelEClass = null;
/**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass constraintsEnvironmentEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass propertyViewEnvironmentEClass = 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.
@@ -102,14 +115,15 @@ public class CustomizationPackageImpl extends EPackageImpl implements Customizat
* 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 -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage#eNS_URI
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage#eNS_URI
* @see #init()
* @generated
*/
- private CustomizationPackageImpl() {
- super(eNS_URI, CustomizationFactory.eINSTANCE);
+ private CustomizationPluginPackageImpl() {
+ super(eNS_URI, CustomizationPluginFactory.eINSTANCE);
}
/**
@@ -122,35 +136,36 @@ public class CustomizationPackageImpl extends EPackageImpl implements Customizat
/**
* 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 CustomizationPackage#eINSTANCE} when that field is accessed.
+ * <p>This method is used to initialize {@link CustomizationPluginPackage#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 -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
- public static CustomizationPackage init() {
- if (isInited) return (CustomizationPackage)EPackage.Registry.INSTANCE.getEPackage(CustomizationPackage.eNS_URI);
+ public static CustomizationPluginPackage init() {
+ if (isInited) return (CustomizationPluginPackage)EPackage.Registry.INSTANCE.getEPackage(CustomizationPluginPackage.eNS_URI);
// Obtain or create and register package
- CustomizationPackageImpl theCustomizationPackage = (CustomizationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CustomizationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CustomizationPackageImpl());
+ CustomizationPluginPackageImpl theCustomizationPluginPackage = (CustomizationPluginPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CustomizationPluginPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CustomizationPluginPackageImpl());
isInited = true;
// Create package meta-data objects
- theCustomizationPackage.createPackageContents();
+ theCustomizationPluginPackage.createPackageContents();
// Initialize created meta-data
- theCustomizationPackage.initializePackageContents();
+ theCustomizationPluginPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
- theCustomizationPackage.freeze();
+ theCustomizationPluginPackage.freeze();
// Update the registry and return the package
- EPackage.Registry.INSTANCE.put(CustomizationPackage.eNS_URI, theCustomizationPackage);
- return theCustomizationPackage;
+ EPackage.Registry.INSTANCE.put(CustomizationPluginPackage.eNS_URI, theCustomizationPluginPackage);
+ return theCustomizationPluginPackage;
}
/**
@@ -383,8 +398,26 @@ public class CustomizationPackageImpl extends EPackageImpl implements Customizat
* <!-- end-user-doc -->
* @generated
*/
- public CustomizationFactory getCustomizationFactory() {
- return (CustomizationFactory)getEFactoryInstance();
+ public EClass getConstraintsEnvironment() {
+ return constraintsEnvironmentEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getPropertyViewEnvironment() {
+ return propertyViewEnvironmentEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CustomizationPluginFactory getCustomizationPluginFactory() {
+ return (CustomizationPluginFactory)getEFactoryInstance();
}
/**
@@ -516,4 +549,4 @@ public class CustomizationPackageImpl extends EPackageImpl implements Customizat
createResource(eNS_URI);
}
-} //CustomizationPackageImpl
+} //CustomizationPluginPackageImpl
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/FileBasedCustomizableElementImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/FileBasedCustomizableElementImpl.java
index dca409049e0..0180c2aa956 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/FileBasedCustomizableElementImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/FileBasedCustomizableElementImpl.java
@@ -1,16 +1,15 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.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.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
/**
* <!-- begin-user-doc -->
@@ -19,7 +18,7 @@ import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizab
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.FileBasedCustomizableElementImpl#getFile <em>File</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.FileBasedCustomizableElementImpl#getFile <em>File</em>}</li>
* </ul>
* </p>
*
@@ -62,7 +61,7 @@ public abstract class FileBasedCustomizableElementImpl extends CustomizableEleme
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.FILE_BASED_CUSTOMIZABLE_ELEMENT;
+ return CustomizationPluginPackage.Literals.FILE_BASED_CUSTOMIZABLE_ELEMENT;
}
/**
@@ -83,7 +82,7 @@ public abstract class FileBasedCustomizableElementImpl extends CustomizableEleme
String oldFile = file;
file = newFile;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE, oldFile, file));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE, oldFile, file));
}
/**
@@ -94,7 +93,7 @@ public abstract class FileBasedCustomizableElementImpl extends CustomizableEleme
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case CustomizationPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
+ case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
return getFile();
}
return super.eGet(featureID, resolve, coreType);
@@ -108,7 +107,7 @@ public abstract class FileBasedCustomizableElementImpl extends CustomizableEleme
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case CustomizationPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
+ case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
setFile((String)newValue);
return;
}
@@ -123,7 +122,7 @@ public abstract class FileBasedCustomizableElementImpl extends CustomizableEleme
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case CustomizationPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
+ case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
setFile(FILE_EDEFAULT);
return;
}
@@ -138,7 +137,7 @@ public abstract class FileBasedCustomizableElementImpl extends CustomizableEleme
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case CustomizationPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
+ case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
return FILE_EDEFAULT == null ? file != null : !FILE_EDEFAULT.equals(file);
}
return super.eIsSet(featureID);
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/ModelTemplateImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ModelTemplateImpl.java
index 6caad604a1d..fef5623948a 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/ModelTemplateImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ModelTemplateImpl.java
@@ -1,16 +1,15 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.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.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.ModelTemplate;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate;
/**
* <!-- begin-user-doc -->
@@ -19,9 +18,9 @@ import org.eclipse.papyrus.customization.model.customization.ModelTemplate;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.ModelTemplateImpl#getLanguage <em>Language</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.ModelTemplateImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.ModelTemplateImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ModelTemplateImpl#getLanguage <em>Language</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ModelTemplateImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ModelTemplateImpl#getId <em>Id</em>}</li>
* </ul>
* </p>
*
@@ -104,7 +103,7 @@ public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implemen
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.MODEL_TEMPLATE;
+ return CustomizationPluginPackage.Literals.MODEL_TEMPLATE;
}
/**
@@ -125,7 +124,7 @@ public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implemen
String oldLanguage = language;
language = newLanguage;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.MODEL_TEMPLATE__LANGUAGE, oldLanguage, language));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE, oldLanguage, language));
}
/**
@@ -146,7 +145,7 @@ public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implemen
String oldName = name;
name = newName;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.MODEL_TEMPLATE__NAME, oldName, name));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.MODEL_TEMPLATE__NAME, oldName, name));
}
/**
@@ -167,7 +166,7 @@ public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implemen
String oldId = id;
id = newId;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.MODEL_TEMPLATE__ID, oldId, id));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.MODEL_TEMPLATE__ID, oldId, id));
}
/**
@@ -178,11 +177,11 @@ public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implemen
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case CustomizationPackage.MODEL_TEMPLATE__LANGUAGE:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE:
return getLanguage();
- case CustomizationPackage.MODEL_TEMPLATE__NAME:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__NAME:
return getName();
- case CustomizationPackage.MODEL_TEMPLATE__ID:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__ID:
return getId();
}
return super.eGet(featureID, resolve, coreType);
@@ -196,13 +195,13 @@ public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implemen
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case CustomizationPackage.MODEL_TEMPLATE__LANGUAGE:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE:
setLanguage((String)newValue);
return;
- case CustomizationPackage.MODEL_TEMPLATE__NAME:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__NAME:
setName((String)newValue);
return;
- case CustomizationPackage.MODEL_TEMPLATE__ID:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__ID:
setId((String)newValue);
return;
}
@@ -217,13 +216,13 @@ public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implemen
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case CustomizationPackage.MODEL_TEMPLATE__LANGUAGE:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE:
setLanguage(LANGUAGE_EDEFAULT);
return;
- case CustomizationPackage.MODEL_TEMPLATE__NAME:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__NAME:
setName(NAME_EDEFAULT);
return;
- case CustomizationPackage.MODEL_TEMPLATE__ID:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__ID:
setId(ID_EDEFAULT);
return;
}
@@ -238,11 +237,11 @@ public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implemen
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case CustomizationPackage.MODEL_TEMPLATE__LANGUAGE:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE:
return LANGUAGE_EDEFAULT == null ? language != null : !LANGUAGE_EDEFAULT.equals(language);
- case CustomizationPackage.MODEL_TEMPLATE__NAME:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CustomizationPackage.MODEL_TEMPLATE__ID:
+ case CustomizationPluginPackage.MODEL_TEMPLATE__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
}
return super.eIsSet(featureID);
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/PaletteImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PaletteImpl.java
index fdd3a5df4de..6d4e62b7f8b 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/PaletteImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PaletteImpl.java
@@ -1,14 +1,11 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.impl;
import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.Palette;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.Palette;
/**
* <!-- begin-user-doc -->
@@ -36,7 +33,7 @@ public class PaletteImpl extends FileBasedCustomizableElementImpl implements Pal
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.PALETTE;
+ return CustomizationPluginPackage.Literals.PALETTE;
}
} //PaletteImpl
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/ProfileImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ProfileImpl.java
index bf032a98909..5a8bf275103 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/ProfileImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/ProfileImpl.java
@@ -1,16 +1,15 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.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.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.Profile;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.Profile;
/**
* <!-- begin-user-doc -->
@@ -19,11 +18,11 @@ import org.eclipse.papyrus.customization.model.customization.Profile;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl#getQualifiednames <em>Qualifiednames</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl#getIconpath <em>Iconpath</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl#getProvider <em>Provider</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.ProfileImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl#getQualifiednames <em>Qualifiednames</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl#getIconpath <em>Iconpath</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl#getProvider <em>Provider</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.ProfileImpl#getName <em>Name</em>}</li>
* </ul>
* </p>
*
@@ -146,7 +145,7 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.PROFILE;
+ return CustomizationPluginPackage.Literals.PROFILE;
}
/**
@@ -167,7 +166,7 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
String oldQualifiednames = qualifiednames;
qualifiednames = newQualifiednames;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.PROFILE__QUALIFIEDNAMES, oldQualifiednames, qualifiednames));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES, oldQualifiednames, qualifiednames));
}
/**
@@ -188,7 +187,7 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
String oldIconpath = iconpath;
iconpath = newIconpath;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.PROFILE__ICONPATH, oldIconpath, iconpath));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__ICONPATH, oldIconpath, iconpath));
}
/**
@@ -209,7 +208,7 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.PROFILE__DESCRIPTION, oldDescription, description));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__DESCRIPTION, oldDescription, description));
}
/**
@@ -230,7 +229,7 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
String oldProvider = provider;
provider = newProvider;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.PROFILE__PROVIDER, oldProvider, provider));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__PROVIDER, oldProvider, provider));
}
/**
@@ -251,7 +250,7 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
String oldName = name;
name = newName;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.PROFILE__NAME, oldName, name));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__NAME, oldName, name));
}
/**
@@ -262,15 +261,15 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case CustomizationPackage.PROFILE__QUALIFIEDNAMES:
+ case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES:
return getQualifiednames();
- case CustomizationPackage.PROFILE__ICONPATH:
+ case CustomizationPluginPackage.PROFILE__ICONPATH:
return getIconpath();
- case CustomizationPackage.PROFILE__DESCRIPTION:
+ case CustomizationPluginPackage.PROFILE__DESCRIPTION:
return getDescription();
- case CustomizationPackage.PROFILE__PROVIDER:
+ case CustomizationPluginPackage.PROFILE__PROVIDER:
return getProvider();
- case CustomizationPackage.PROFILE__NAME:
+ case CustomizationPluginPackage.PROFILE__NAME:
return getName();
}
return super.eGet(featureID, resolve, coreType);
@@ -284,19 +283,19 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case CustomizationPackage.PROFILE__QUALIFIEDNAMES:
+ case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES:
setQualifiednames((String)newValue);
return;
- case CustomizationPackage.PROFILE__ICONPATH:
+ case CustomizationPluginPackage.PROFILE__ICONPATH:
setIconpath((String)newValue);
return;
- case CustomizationPackage.PROFILE__DESCRIPTION:
+ case CustomizationPluginPackage.PROFILE__DESCRIPTION:
setDescription((String)newValue);
return;
- case CustomizationPackage.PROFILE__PROVIDER:
+ case CustomizationPluginPackage.PROFILE__PROVIDER:
setProvider((String)newValue);
return;
- case CustomizationPackage.PROFILE__NAME:
+ case CustomizationPluginPackage.PROFILE__NAME:
setName((String)newValue);
return;
}
@@ -311,19 +310,19 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case CustomizationPackage.PROFILE__QUALIFIEDNAMES:
+ case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES:
setQualifiednames(QUALIFIEDNAMES_EDEFAULT);
return;
- case CustomizationPackage.PROFILE__ICONPATH:
+ case CustomizationPluginPackage.PROFILE__ICONPATH:
setIconpath(ICONPATH_EDEFAULT);
return;
- case CustomizationPackage.PROFILE__DESCRIPTION:
+ case CustomizationPluginPackage.PROFILE__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
- case CustomizationPackage.PROFILE__PROVIDER:
+ case CustomizationPluginPackage.PROFILE__PROVIDER:
setProvider(PROVIDER_EDEFAULT);
return;
- case CustomizationPackage.PROFILE__NAME:
+ case CustomizationPluginPackage.PROFILE__NAME:
setName(NAME_EDEFAULT);
return;
}
@@ -338,15 +337,15 @@ public class ProfileImpl extends FileBasedCustomizableElementImpl implements Pro
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case CustomizationPackage.PROFILE__QUALIFIEDNAMES:
+ case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES:
return QUALIFIEDNAMES_EDEFAULT == null ? qualifiednames != null : !QUALIFIEDNAMES_EDEFAULT.equals(qualifiednames);
- case CustomizationPackage.PROFILE__ICONPATH:
+ case CustomizationPluginPackage.PROFILE__ICONPATH:
return ICONPATH_EDEFAULT == null ? iconpath != null : !ICONPATH_EDEFAULT.equals(iconpath);
- case CustomizationPackage.PROFILE__DESCRIPTION:
+ case CustomizationPluginPackage.PROFILE__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CustomizationPackage.PROFILE__PROVIDER:
+ case CustomizationPluginPackage.PROFILE__PROVIDER:
return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider);
- case CustomizationPackage.PROFILE__NAME:
+ case CustomizationPluginPackage.PROFILE__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
}
return super.eIsSet(featureID);
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PropertyViewEnvironmentImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PropertyViewEnvironmentImpl.java
new file mode 100644
index 00000000000..d0f78834b7d
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PropertyViewEnvironmentImpl.java
@@ -0,0 +1,39 @@
+/**
+ */
+package org.eclipse.papyrus.customization.model.customizationplugin.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.PropertyViewEnvironment;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Property View Environment</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class PropertyViewEnvironmentImpl extends FileBasedCustomizableElementImpl implements PropertyViewEnvironment {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected PropertyViewEnvironmentImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return CustomizationPluginPackage.Literals.PROPERTY_VIEW_ENVIRONMENT;
+ }
+
+} //PropertyViewEnvironmentImpl
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/PropertyViewImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PropertyViewImpl.java
index 545e9e115c2..b1f122cf96d 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/PropertyViewImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/PropertyViewImpl.java
@@ -1,14 +1,11 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.impl;
import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.PropertyView;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.PropertyView;
/**
* <!-- begin-user-doc -->
@@ -36,7 +33,7 @@ public class PropertyViewImpl extends FileBasedCustomizableElementImpl implement
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.PROPERTY_VIEW;
+ return CustomizationPluginPackage.Literals.PROPERTY_VIEW;
}
} //PropertyViewImpl
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/UICustomImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/UICustomImpl.java
index 6aec7661627..13bf8df0f2a 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/UICustomImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/UICustomImpl.java
@@ -1,16 +1,15 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.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.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.UICustom;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.UICustom;
/**
* <!-- begin-user-doc -->
@@ -19,7 +18,7 @@ import org.eclipse.papyrus.customization.model.customization.UICustom;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.UICustomImpl#isLoadByDefault <em>Load By Default</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UICustomImpl#isLoadByDefault <em>Load By Default</em>}</li>
* </ul>
* </p>
*
@@ -62,7 +61,7 @@ public class UICustomImpl extends FileBasedCustomizableElementImpl implements UI
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.UI_CUSTOM;
+ return CustomizationPluginPackage.Literals.UI_CUSTOM;
}
/**
@@ -83,7 +82,7 @@ public class UICustomImpl extends FileBasedCustomizableElementImpl implements UI
boolean oldLoadByDefault = loadByDefault;
loadByDefault = newLoadByDefault;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.UI_CUSTOM__LOAD_BY_DEFAULT, oldLoadByDefault, loadByDefault));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT, oldLoadByDefault, loadByDefault));
}
/**
@@ -94,7 +93,7 @@ public class UICustomImpl extends FileBasedCustomizableElementImpl implements UI
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case CustomizationPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
+ case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
return isLoadByDefault();
}
return super.eGet(featureID, resolve, coreType);
@@ -108,7 +107,7 @@ public class UICustomImpl extends FileBasedCustomizableElementImpl implements UI
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case CustomizationPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
+ case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
setLoadByDefault((Boolean)newValue);
return;
}
@@ -123,7 +122,7 @@ public class UICustomImpl extends FileBasedCustomizableElementImpl implements UI
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case CustomizationPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
+ case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
setLoadByDefault(LOAD_BY_DEFAULT_EDEFAULT);
return;
}
@@ -138,7 +137,7 @@ public class UICustomImpl extends FileBasedCustomizableElementImpl implements UI
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case CustomizationPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
+ case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
return loadByDefault != LOAD_BY_DEFAULT_EDEFAULT;
}
return super.eIsSet(featureID);
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/UMLModelImpl.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/UMLModelImpl.java
index e99a5702674..9ff338ad6c2 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/impl/UMLModelImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/impl/UMLModelImpl.java
@@ -1,16 +1,15 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.impl;
+package org.eclipse.papyrus.customization.model.customizationplugin.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.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.UMLModel;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.UMLModel;
/**
* <!-- begin-user-doc -->
@@ -19,10 +18,10 @@ import org.eclipse.papyrus.customization.model.customization.UMLModel;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.UMLModelImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.UMLModelImpl#getIconpath <em>Iconpath</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.UMLModelImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.model.customization.impl.UMLModelImpl#getProvider <em>Provider</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UMLModelImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UMLModelImpl#getIconpath <em>Iconpath</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UMLModelImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.model.customizationplugin.impl.UMLModelImpl#getProvider <em>Provider</em>}</li>
* </ul>
* </p>
*
@@ -125,7 +124,7 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
*/
@Override
protected EClass eStaticClass() {
- return CustomizationPackage.Literals.UML_MODEL;
+ return CustomizationPluginPackage.Literals.UML_MODEL;
}
/**
@@ -146,7 +145,7 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
String oldName = name;
name = newName;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.UML_MODEL__NAME, oldName, name));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UML_MODEL__NAME, oldName, name));
}
/**
@@ -167,7 +166,7 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
String oldIconpath = iconpath;
iconpath = newIconpath;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.UML_MODEL__ICONPATH, oldIconpath, iconpath));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UML_MODEL__ICONPATH, oldIconpath, iconpath));
}
/**
@@ -188,7 +187,7 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.UML_MODEL__DESCRIPTION, oldDescription, description));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UML_MODEL__DESCRIPTION, oldDescription, description));
}
/**
@@ -209,7 +208,7 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
String oldProvider = provider;
provider = newProvider;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPackage.UML_MODEL__PROVIDER, oldProvider, provider));
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UML_MODEL__PROVIDER, oldProvider, provider));
}
/**
@@ -220,13 +219,13 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case CustomizationPackage.UML_MODEL__NAME:
+ case CustomizationPluginPackage.UML_MODEL__NAME:
return getName();
- case CustomizationPackage.UML_MODEL__ICONPATH:
+ case CustomizationPluginPackage.UML_MODEL__ICONPATH:
return getIconpath();
- case CustomizationPackage.UML_MODEL__DESCRIPTION:
+ case CustomizationPluginPackage.UML_MODEL__DESCRIPTION:
return getDescription();
- case CustomizationPackage.UML_MODEL__PROVIDER:
+ case CustomizationPluginPackage.UML_MODEL__PROVIDER:
return getProvider();
}
return super.eGet(featureID, resolve, coreType);
@@ -240,16 +239,16 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case CustomizationPackage.UML_MODEL__NAME:
+ case CustomizationPluginPackage.UML_MODEL__NAME:
setName((String)newValue);
return;
- case CustomizationPackage.UML_MODEL__ICONPATH:
+ case CustomizationPluginPackage.UML_MODEL__ICONPATH:
setIconpath((String)newValue);
return;
- case CustomizationPackage.UML_MODEL__DESCRIPTION:
+ case CustomizationPluginPackage.UML_MODEL__DESCRIPTION:
setDescription((String)newValue);
return;
- case CustomizationPackage.UML_MODEL__PROVIDER:
+ case CustomizationPluginPackage.UML_MODEL__PROVIDER:
setProvider((String)newValue);
return;
}
@@ -264,16 +263,16 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case CustomizationPackage.UML_MODEL__NAME:
+ case CustomizationPluginPackage.UML_MODEL__NAME:
setName(NAME_EDEFAULT);
return;
- case CustomizationPackage.UML_MODEL__ICONPATH:
+ case CustomizationPluginPackage.UML_MODEL__ICONPATH:
setIconpath(ICONPATH_EDEFAULT);
return;
- case CustomizationPackage.UML_MODEL__DESCRIPTION:
+ case CustomizationPluginPackage.UML_MODEL__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
- case CustomizationPackage.UML_MODEL__PROVIDER:
+ case CustomizationPluginPackage.UML_MODEL__PROVIDER:
setProvider(PROVIDER_EDEFAULT);
return;
}
@@ -288,13 +287,13 @@ public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UM
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case CustomizationPackage.UML_MODEL__NAME:
+ case CustomizationPluginPackage.UML_MODEL__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CustomizationPackage.UML_MODEL__ICONPATH:
+ case CustomizationPluginPackage.UML_MODEL__ICONPATH:
return ICONPATH_EDEFAULT == null ? iconpath != null : !ICONPATH_EDEFAULT.equals(iconpath);
- case CustomizationPackage.UML_MODEL__DESCRIPTION:
+ case CustomizationPluginPackage.UML_MODEL__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CustomizationPackage.UML_MODEL__PROVIDER:
+ case CustomizationPluginPackage.UML_MODEL__PROVIDER:
return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider);
}
return super.eIsSet(featureID);
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/util/CustomizationAdapterFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/util/CustomizationPluginAdapterFactory.java
index 5e3ec814aa0..b96da790498 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/util/CustomizationAdapterFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/util/CustomizationPluginAdapterFactory.java
@@ -1,43 +1,32 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.util;
+package org.eclipse.papyrus.customization.model.customizationplugin.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.customization.model.customization.*;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.ModelTemplate;
-import org.eclipse.papyrus.customization.model.customization.Palette;
-import org.eclipse.papyrus.customization.model.customization.Profile;
-import org.eclipse.papyrus.customization.model.customization.PropertyView;
-import org.eclipse.papyrus.customization.model.customization.UICustom;
-import org.eclipse.papyrus.customization.model.customization.UMLModel;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.*;
/**
* <!-- 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.customization.model.customization.CustomizationPackage
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage
* @generated
*/
-public class CustomizationAdapterFactory extends AdapterFactoryImpl {
+public class CustomizationPluginAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected static CustomizationPackage modelPackage;
+ protected static CustomizationPluginPackage modelPackage;
/**
* Creates an instance of the adapter factory.
@@ -45,9 +34,9 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
* <!-- end-user-doc -->
* @generated
*/
- public CustomizationAdapterFactory() {
+ public CustomizationPluginAdapterFactory() {
if (modelPackage == null) {
- modelPackage = CustomizationPackage.eINSTANCE;
+ modelPackage = CustomizationPluginPackage.eINSTANCE;
}
}
@@ -76,8 +65,8 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
* <!-- end-user-doc -->
* @generated
*/
- protected CustomizationSwitch<Adapter> modelSwitch =
- new CustomizationSwitch<Adapter>() {
+ protected CustomizationPluginSwitch<Adapter> modelSwitch =
+ new CustomizationPluginSwitch<Adapter>() {
@Override
public Adapter caseCustomizationConfiguration(CustomizationConfiguration object) {
return createCustomizationConfigurationAdapter();
@@ -135,13 +124,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration <em>Configuration</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration <em>Customization Configuration</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.customization.model.customization.CustomizationConfiguration
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration
* @generated
*/
public Adapter createCustomizationConfigurationAdapter() {
@@ -149,13 +138,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.CustomizableElement <em>Customizable Element</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement <em>Customizable Element</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.customization.model.customization.CustomizableElement
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement
* @generated
*/
public Adapter createCustomizableElementAdapter() {
@@ -163,13 +152,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement <em>File Based Customizable Element</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement <em>File Based Customizable Element</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.customization.model.customization.FileBasedCustomizableElement
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement
* @generated
*/
public Adapter createFileBasedCustomizableElementAdapter() {
@@ -177,13 +166,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.PropertyView <em>Property View</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.PropertyView <em>Property View</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.customization.model.customization.PropertyView
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.PropertyView
* @generated
*/
public Adapter createPropertyViewAdapter() {
@@ -191,13 +180,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.UICustom <em>UI Custom</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.UICustom <em>UI Custom</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.customization.model.customization.UICustom
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UICustom
* @generated
*/
public Adapter createUICustomAdapter() {
@@ -205,13 +194,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.ModelTemplate <em>Model Template</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate <em>Model Template</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.customization.model.customization.ModelTemplate
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate
* @generated
*/
public Adapter createModelTemplateAdapter() {
@@ -219,13 +208,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.Palette <em>Palette</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.Palette <em>Palette</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.customization.model.customization.Palette
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Palette
* @generated
*/
public Adapter createPaletteAdapter() {
@@ -233,13 +222,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.Profile <em>Profile</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.Profile <em>Profile</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.customization.model.customization.Profile
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.Profile
* @generated
*/
public Adapter createProfileAdapter() {
@@ -247,13 +236,13 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customization.UMLModel <em>UML Model</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.UMLModel <em>UML Model</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.customization.model.customization.UMLModel
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.UMLModel
* @generated
*/
public Adapter createUMLModelAdapter() {
@@ -261,6 +250,34 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.ConstraintsEnvironment <em>Constraints Environment</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.customization.model.customizationplugin.ConstraintsEnvironment
+ * @generated
+ */
+ public Adapter createConstraintsEnvironmentAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.model.customizationplugin.PropertyViewEnvironment <em>Property View Environment</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.customization.model.customizationplugin.PropertyViewEnvironment
+ * @generated
+ */
+ public Adapter createPropertyViewEnvironmentAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
@@ -272,4 +289,4 @@ public class CustomizationAdapterFactory extends AdapterFactoryImpl {
return null;
}
-} //CustomizationAdapterFactory
+} //CustomizationPluginAdapterFactory
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/util/CustomizationSwitch.java b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/util/CustomizationPluginSwitch.java
index 7de3416e123..d074e197ccb 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customization/util/CustomizationSwitch.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src-gen/org/eclipse/papyrus/customization/model/customizationplugin/util/CustomizationPluginSwitch.java
@@ -1,25 +1,13 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
*/
-package org.eclipse.papyrus.customization.model.customization.util;
+package org.eclipse.papyrus.customization.model.customizationplugin.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
+
import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.customization.model.customization.*;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.ModelTemplate;
-import org.eclipse.papyrus.customization.model.customization.Palette;
-import org.eclipse.papyrus.customization.model.customization.Profile;
-import org.eclipse.papyrus.customization.model.customization.PropertyView;
-import org.eclipse.papyrus.customization.model.customization.UICustom;
-import org.eclipse.papyrus.customization.model.customization.UMLModel;
+
+import org.eclipse.papyrus.customization.model.customizationplugin.*;
/**
* <!-- begin-user-doc -->
@@ -31,17 +19,17 @@ import org.eclipse.papyrus.customization.model.customization.UMLModel;
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.customization.model.customization.CustomizationPackage
+ * @see org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage
* @generated
*/
-public class CustomizationSwitch<T> extends Switch<T> {
+public class CustomizationPluginSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected static CustomizationPackage modelPackage;
+ protected static CustomizationPluginPackage modelPackage;
/**
* Creates an instance of the switch.
@@ -49,9 +37,9 @@ public class CustomizationSwitch<T> extends Switch<T> {
* <!-- end-user-doc -->
* @generated
*/
- public CustomizationSwitch() {
+ public CustomizationPluginSwitch() {
if (modelPackage == null) {
- modelPackage = CustomizationPackage.eINSTANCE;
+ modelPackage = CustomizationPluginPackage.eINSTANCE;
}
}
@@ -78,26 +66,26 @@ public class CustomizationSwitch<T> extends Switch<T> {
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case CustomizationPackage.CUSTOMIZATION_CONFIGURATION: {
+ case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION: {
CustomizationConfiguration customizationConfiguration = (CustomizationConfiguration)theEObject;
T result = caseCustomizationConfiguration(customizationConfiguration);
if (result == null) result = defaultCase(theEObject);
return result;
}
- case CustomizationPackage.CUSTOMIZABLE_ELEMENT: {
+ case CustomizationPluginPackage.CUSTOMIZABLE_ELEMENT: {
CustomizableElement customizableElement = (CustomizableElement)theEObject;
T result = caseCustomizableElement(customizableElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
- case CustomizationPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT: {
+ case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT: {
FileBasedCustomizableElement fileBasedCustomizableElement = (FileBasedCustomizableElement)theEObject;
T result = caseFileBasedCustomizableElement(fileBasedCustomizableElement);
if (result == null) result = caseCustomizableElement(fileBasedCustomizableElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
- case CustomizationPackage.PROPERTY_VIEW: {
+ case CustomizationPluginPackage.PROPERTY_VIEW: {
PropertyView propertyView = (PropertyView)theEObject;
T result = casePropertyView(propertyView);
if (result == null) result = caseFileBasedCustomizableElement(propertyView);
@@ -105,7 +93,7 @@ public class CustomizationSwitch<T> extends Switch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
- case CustomizationPackage.UI_CUSTOM: {
+ case CustomizationPluginPackage.UI_CUSTOM: {
UICustom uiCustom = (UICustom)theEObject;
T result = caseUICustom(uiCustom);
if (result == null) result = caseFileBasedCustomizableElement(uiCustom);
@@ -113,7 +101,7 @@ public class CustomizationSwitch<T> extends Switch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
- case CustomizationPackage.MODEL_TEMPLATE: {
+ case CustomizationPluginPackage.MODEL_TEMPLATE: {
ModelTemplate modelTemplate = (ModelTemplate)theEObject;
T result = caseModelTemplate(modelTemplate);
if (result == null) result = caseFileBasedCustomizableElement(modelTemplate);
@@ -121,7 +109,7 @@ public class CustomizationSwitch<T> extends Switch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
- case CustomizationPackage.PALETTE: {
+ case CustomizationPluginPackage.PALETTE: {
Palette palette = (Palette)theEObject;
T result = casePalette(palette);
if (result == null) result = caseFileBasedCustomizableElement(palette);
@@ -129,7 +117,7 @@ public class CustomizationSwitch<T> extends Switch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
- case CustomizationPackage.PROFILE: {
+ case CustomizationPluginPackage.PROFILE: {
Profile profile = (Profile)theEObject;
T result = caseProfile(profile);
if (result == null) result = caseFileBasedCustomizableElement(profile);
@@ -137,7 +125,7 @@ public class CustomizationSwitch<T> extends Switch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
- case CustomizationPackage.UML_MODEL: {
+ case CustomizationPluginPackage.UML_MODEL: {
UMLModel umlModel = (UMLModel)theEObject;
T result = caseUMLModel(umlModel);
if (result == null) result = caseFileBasedCustomizableElement(umlModel);
@@ -150,13 +138,13 @@ public class CustomizationSwitch<T> extends Switch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Configuration</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>Customization Configuration</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>Configuration</em>'.
+ * @return the result of interpreting the object as an instance of '<em>Customization Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -285,6 +273,36 @@ public class CustomizationSwitch<T> extends Switch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Constraints Environment</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>Constraints Environment</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseConstraintsEnvironment(ConstraintsEnvironment object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Property View Environment</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>Property View Environment</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePropertyViewEnvironment(PropertyViewEnvironment object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
@@ -300,4 +318,4 @@ public class CustomizationSwitch<T> extends Switch<T> {
return null;
}
-} //CustomizationSwitch
+} //CustomizationPluginSwitch
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/creation/CustomizationElementCreationFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/creation/CustomizationElementCreationFactory.java
index 5ecbd4a873c..1253f08f310 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/creation/CustomizationElementCreationFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/creation/CustomizationElementCreationFactory.java
@@ -3,9 +3,9 @@ package org.eclipse.papyrus.customization.creation;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
-import org.eclipse.papyrus.customization.model.customization.Profile;
-import org.eclipse.papyrus.customization.model.customization.UMLModel;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.Profile;
+import org.eclipse.papyrus.customization.model.customizationplugin.UMLModel;
import org.eclipse.papyrus.customization.wizard.CreateNewCustomizationPluginWizard;
import org.eclipse.papyrus.views.properties.creation.EcorePropertyEditorFactory;
import org.eclipse.swt.widgets.Control;
@@ -27,9 +27,9 @@ public class CustomizationElementCreationFactory extends EcorePropertyEditorFact
}
EObject instance = eClass.getEPackage().getEFactoryInstance().create(eClass);
- if(eClass == CustomizationPackage.eINSTANCE.getProfile()) {
+ if(eClass == CustomizationPluginPackage.eINSTANCE.getProfile()) {
((Profile)instance).setProvider(CreateNewCustomizationPluginWizard.current.getProvider());
- } else if(eClass == CustomizationPackage.eINSTANCE.getUMLModel()) {
+ } else if(eClass == CustomizationPluginPackage.eINSTANCE.getUMLModel()) {
((UMLModel)instance).setProvider(CreateNewCustomizationPluginWizard.current.getProvider());
}
return instance;
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ConstraintEnvironmentExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ConstraintEnvironmentExtensionFactory.java
new file mode 100644
index 00000000000..201127987cf
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ConstraintEnvironmentExtensionFactory.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.factory;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.plugin.PluginEditor;
+
+
+public class ConstraintEnvironmentExtensionFactory extends FileBasedExtensionFactory {
+
+ public ConstraintEnvironmentExtensionFactory() {
+ super("Constraint environment", "org.eclipse.papyrus.infra.constraints.ConstraintEnvironment", "environmentModel", "environment", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ }
+
+ @Override
+ public void addElement(CustomizableElement element, PluginEditor editor) {
+ super.addElement(element, editor);
+
+ editor.getManifestEditor().addDependency("org.eclipse.papyrus.infra.constraints"); //$NON-NLS-1$
+ }
+
+ @Override
+ protected String getTargetPath(FileBasedCustomizableElement element) {
+ return "/constraintEnvironment/" + getFileName(element); //$NON-NLS-1$
+ }
+
+ public EClass getCustomizableElementClass() {
+ return CustomizationPluginPackage.eINSTANCE.getConstraintsEnvironment();
+ }
+
+}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactory.java
index 8a91c0e1fe1..13c1b3a1ece 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactory.java
@@ -11,51 +11,19 @@
*****************************************************************************/
package org.eclipse.papyrus.customization.factory;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
public interface ExtensionFactory {
- public static Registry registry = Registry.instance;
-
- public static class Registry {
-
- private static Registry instance = new Registry();
-
- private final Map<EClass, ExtensionFactory> factories;
-
- private Registry() {
- factories = new HashMap<EClass, ExtensionFactory>();
- factories.put(CustomizationPackage.eINSTANCE.getPropertyView(), new PropertyViewExtensionFactory());
- factories.put(CustomizationPackage.eINSTANCE.getModelTemplate(), new ModelTemplateExtensionFactory());
- factories.put(CustomizationPackage.eINSTANCE.getUICustom(), new UICustomExtensionFactory());
- //factoryMap.put("Palette", new Factory("oep.p", "file", "test", true));
- //factoryMap.put("PropertyView", ...);
- factories.put(CustomizationPackage.eINSTANCE.getProfile(), new ProfileExtensionFactory());
- factories.put(CustomizationPackage.eINSTANCE.getUMLModel(), new UMLModelExtensionFactory());
- }
-
- public ExtensionFactory getFactory(EClass type) {
- return factories.get(type);
- }
-
- public void registerFactory(EClass forType, ExtensionFactory factory) {
- factories.put(forType, factory);
- }
-
- public Collection<? extends ExtensionFactory> getFactories() {
- return factories.values();
- }
- }
+ public static ExtensionFactoryRegistry registry = ExtensionFactoryRegistry.instance;
public void addElement(CustomizableElement element, PluginEditor editor);
+ public EClass getCustomizableElementClass();
+
public String getName();
}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactoryRegistry.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactoryRegistry.java
new file mode 100644
index 00000000000..428dfe1345d
--- /dev/null
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ExtensionFactoryRegistry.java
@@ -0,0 +1,68 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.factory;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.papyrus.customization.Activator;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+
+public class ExtensionFactoryRegistry {
+
+ public static final String EXTENSION_ID = Activator.PLUGIN_ID + ".factory";
+
+ public static ExtensionFactoryRegistry instance = new ExtensionFactoryRegistry();
+
+ private final Map<EClass, ExtensionFactory> factories;
+
+ private ExtensionFactoryRegistry() {
+ factories = new HashMap<EClass, ExtensionFactory>();
+ loadExtensionFactories();
+ }
+
+ private void loadExtensionFactories() {
+ IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_ID);
+
+ for(IConfigurationElement e : config) {
+ ExtensionFactory factory;
+ try {
+ factory = (ExtensionFactory)e.createExecutableExtension("factory"); //$NON-NLS-1$
+ if(!CustomizationPluginPackage.eINSTANCE.getCustomizableElement().isSuperTypeOf(factory.getCustomizableElementClass())) {
+ Activator.log.warn(String.format("The plugin %s contributed an invalid factory (%s).\nThe associated EClass must implement CustomizableElement", e.getContributor().getName(), e.getAttribute("factory")));
+ continue;
+ }
+
+ factories.put(factory.getCustomizableElementClass(), factory);
+ } catch (Exception ex) {
+ Activator.log.warn(String.format("The plugin %s contributed an invalid factory (%s)", e.getContributor().getName(), e.getAttribute("factory")));
+ Activator.log.error(ex);
+ }
+ }
+ }
+
+ public ExtensionFactory getFactory(EClass type) {
+ return factories.get(type);
+ }
+
+ public void registerFactory(EClass forType, ExtensionFactory factory) {
+ factories.put(forType, factory);
+ }
+
+ public Collection<? extends ExtensionFactory> getFactories() {
+ return factories.values();
+ }
+}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/FileBasedExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/FileBasedExtensionFactory.java
index e7667ecece6..b9777967d63 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/FileBasedExtensionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/FileBasedExtensionFactory.java
@@ -19,14 +19,14 @@ import java.io.InputStream;
import java.io.OutputStream;
import org.eclipse.papyrus.customization.Activator;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
import org.eclipse.papyrus.infra.widgets.util.FileUtil;
import org.w3c.dom.Element;
-public class FileBasedExtensionFactory implements ExtensionFactory {
+public abstract class FileBasedExtensionFactory implements ExtensionFactory {
private final String extensionPoint;
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ModelTemplateExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ModelTemplateExtensionFactory.java
index 995f6a2d401..99b7017a6bf 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ModelTemplateExtensionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ModelTemplateExtensionFactory.java
@@ -11,25 +11,27 @@
*****************************************************************************/
package org.eclipse.papyrus.customization.factory;
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.ModelTemplate;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.ModelTemplate;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
import org.w3c.dom.Element;
public class ModelTemplateExtensionFactory extends FileBasedExtensionFactory {
- protected ModelTemplateExtensionFactory() {
- super(Messages.ModelTemplateExtensionFactory_ModelTemplate, "org.eclipse.papyrus.wizards.templates", "file", "template", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ public ModelTemplateExtensionFactory() {
+ super(Messages.ModelTemplateExtensionFactory_ModelTemplate, "org.eclipse.papyrus.uml.diagram.wizards.templates", "file", "template", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
@Override
public void addElement(CustomizableElement element, PluginEditor editor) {
super.addElement(element, editor);
- editor.getManifestEditor().addDependency("org.eclipse.papyrus.wizards.templates"); //$NON-NLS-1$
+ editor.getManifestEditor().addDependency("org.eclipse.papyrus.uml.diagram.wizards"); //$NON-NLS-1$
}
@Override
@@ -47,6 +49,8 @@ public class ModelTemplateExtensionFactory extends FileBasedExtensionFactory {
if(element.getLanguage() != null) {
extension.setAttribute("language", element.getLanguage()); //$NON-NLS-1$
}
+
+ //TODO: Papyrus now handles *.di and *.notation files
}
return extension;
@@ -56,4 +60,8 @@ public class ModelTemplateExtensionFactory extends FileBasedExtensionFactory {
protected String getTargetPath(FileBasedCustomizableElement element) {
return "/modelTemplate/" + getFileName(element); //$NON-NLS-1$
}
+
+ public EClass getCustomizableElementClass() {
+ return CustomizationPluginPackage.eINSTANCE.getModelTemplate();
+ }
}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ProfileExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ProfileExtensionFactory.java
index 455f053edd6..3a7fc8db854 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ProfileExtensionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/ProfileExtensionFactory.java
@@ -15,11 +15,13 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.papyrus.customization.Activator;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.Profile;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.Profile;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
import org.eclipse.papyrus.infra.widgets.util.FileUtil;
import org.w3c.dom.Element;
@@ -28,14 +30,14 @@ import org.w3c.dom.Element;
public class ProfileExtensionFactory extends FileBasedExtensionFactory {
public ProfileExtensionFactory() {
- super(Messages.ProfileExtensionFactory_Profile, "org.eclipse.papyrus.extensionpoints.uml2.UMLProfile", "path", "profile", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ super(Messages.ProfileExtensionFactory_Profile, "org.eclipse.papyrus.uml.extensionpoints.UMLProfile", "path", "profile", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
@Override
public void addElement(CustomizableElement element, PluginEditor editor) {
super.addElement(element, editor);
- editor.getManifestEditor().addDependency("org.eclipse.papyrus.extensionpoints.uml2"); //$NON-NLS-1$
+ editor.getManifestEditor().addDependency("org.eclipse.papyrus.uml.extensionpoints"); //$NON-NLS-1$
}
@Override
@@ -49,7 +51,7 @@ public class ProfileExtensionFactory extends FileBasedExtensionFactory {
extension.setAttribute("description", profile.getDescription()); //$NON-NLS-1$
}
- if(profile.getIconpath() != null) {
+ if(profile.getIconpath() != null && !profile.getIconpath().trim().equals("")) {
//extension.setAttribute("iconpath", profile.getIconpath()); //$NON-NLS-1$
copyIcon(profile.getIconpath(), editor);
extension.setAttribute("iconpath", getIconPath(profile.getIconpath())); //$NON-NLS-1$
@@ -98,4 +100,8 @@ public class ProfileExtensionFactory extends FileBasedExtensionFactory {
return "/umlProfile/" + getFileName(element); //$NON-NLS-1$
}
+ public EClass getCustomizableElementClass() {
+ return CustomizationPluginPackage.eINSTANCE.getProfile();
+ }
+
}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/EnvironmentExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/PropertyViewEnvironmentExtensionFactory.java
index 4b9ba0a6178..07c91131aaa 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/EnvironmentExtensionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/PropertyViewEnvironmentExtensionFactory.java
@@ -11,15 +11,17 @@
*****************************************************************************/
package org.eclipse.papyrus.customization.factory;
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
-public class EnvironmentExtensionFactory extends FileBasedExtensionFactory {
+public class PropertyViewEnvironmentExtensionFactory extends FileBasedExtensionFactory {
- public EnvironmentExtensionFactory() {
+ public PropertyViewEnvironmentExtensionFactory() {
super(Messages.EnvironmentExtensionFactory_PropertyViewEnvironment, "org.eclipse.papyrus.views.properties.Environment", "environmentModel", "environment", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
@@ -35,4 +37,8 @@ public class EnvironmentExtensionFactory extends FileBasedExtensionFactory {
return "/environment/" + getFileName(element); //$NON-NLS-1$
}
+ public EClass getCustomizableElementClass() {
+ return CustomizationPluginPackage.eINSTANCE.getPropertyViewEnvironment();
+ }
+
}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/PropertyViewExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/PropertyViewExtensionFactory.java
index cf5859d90cf..b89ede75d6e 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/PropertyViewExtensionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/PropertyViewExtensionFactory.java
@@ -20,6 +20,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
@@ -29,8 +30,9 @@ import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.papyrus.customization.Activator;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
import org.eclipse.papyrus.infra.widgets.util.FileUtil;
@@ -86,7 +88,7 @@ public class PropertyViewExtensionFactory extends FileBasedExtensionFactory {
// Activator.log.error(ex);
// }
//
- // editor.getBuildEditor().addToBuild(getTargetPath(element));
+ editor.getBuildEditor().addToBuild("propertyView/");
}
private void copyAll(final Context source, final File target) {
@@ -183,4 +185,8 @@ public class PropertyViewExtensionFactory extends FileBasedExtensionFactory {
//TODO : Copy the whole directory (.xwt files + model dependencies)
}
+ public EClass getCustomizableElementClass() {
+ return CustomizationPluginPackage.eINSTANCE.getPropertyView();
+ }
+
}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UICustomExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UICustomExtensionFactory.java
index 18f4842ddb2..8e637851478 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UICustomExtensionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UICustomExtensionFactory.java
@@ -11,10 +11,12 @@
*****************************************************************************/
package org.eclipse.papyrus.customization.factory;
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.UICustom;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.UICustom;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
import org.w3c.dom.Element;
@@ -22,7 +24,7 @@ import org.w3c.dom.Element;
public class UICustomExtensionFactory extends FileBasedExtensionFactory {
- protected UICustomExtensionFactory() {
+ public UICustomExtensionFactory() {
super(Messages.UICustomExtensionFactory_UICustom, "org.eclipse.emf.facet.infra.browser.custom.core.registration", "file", "browserCustomization", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
@@ -45,4 +47,8 @@ public class UICustomExtensionFactory extends FileBasedExtensionFactory {
return "/uiCustom/" + getFileName(element); //$NON-NLS-1$
}
+ public EClass getCustomizableElementClass() {
+ return CustomizationPluginPackage.eINSTANCE.getUICustom();
+ }
+
}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UMLModelExtensionFactory.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UMLModelExtensionFactory.java
index 47089e3959d..8cc7e251d74 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UMLModelExtensionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/factory/UMLModelExtensionFactory.java
@@ -11,10 +11,12 @@
*****************************************************************************/
package org.eclipse.papyrus.customization.factory;
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.UMLModel;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.FileBasedCustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.UMLModel;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
import org.w3c.dom.Element;
@@ -22,14 +24,14 @@ import org.w3c.dom.Element;
public class UMLModelExtensionFactory extends FileBasedExtensionFactory {
public UMLModelExtensionFactory() {
- super(Messages.UMLModelExtensionFactory_UMLModel, "org.eclipse.papyrus.extensionpoints.uml2.UMLLibrary", "path", "library", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ super(Messages.UMLModelExtensionFactory_UMLModel, "org.eclipse.papyrus.uml.extensionpoints.UMLLibrary", "path", "library", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
@Override
public void addElement(CustomizableElement element, PluginEditor editor) {
super.addElement(element, editor);
- editor.getManifestEditor().addDependency("org.eclipse.papyrus.extensionpoints.uml2"); //$NON-NLS-1$
+ editor.getManifestEditor().addDependency("org.eclipse.papyrus.uml.extensionpoints"); //$NON-NLS-1$
}
@Override
@@ -61,4 +63,7 @@ public class UMLModelExtensionFactory extends FileBasedExtensionFactory {
return "/umlLibrary/" + getFileName(element); //$NON-NLS-1$
}
+ public EClass getCustomizableElementClass() {
+ return CustomizationPluginPackage.eINSTANCE.getUMLModel();
+ }
}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/generator/PluginGenerator.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/generator/PluginGenerator.java
index be113de6a1d..ded494e7f83 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/generator/PluginGenerator.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/generator/PluginGenerator.java
@@ -27,9 +27,10 @@ import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.papyrus.customization.Activator;
import org.eclipse.papyrus.customization.factory.ExtensionFactory;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
-import org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
+import org.eclipse.papyrus.eclipse.project.editors.interfaces.IPluginProjectEditor;
import org.xml.sax.SAXException;
public class PluginGenerator {
@@ -48,6 +49,7 @@ public class PluginGenerator {
Set<String> natures = new HashSet<String>();
natures.add(PLUGIN_NATURE_ID);
editor.addNatures(natures);
+ editor.setSingleton(true);
for(CustomizableElement element : configuration.getElements()) {
ExtensionFactory factory = getFactory(element);
@@ -58,11 +60,12 @@ public class PluginGenerator {
}
}
- try {
- editor.save();
- } catch (Throwable ex) {
- Activator.log.error(ex);
- return;
+ editor.save();
+
+
+ if(editor.getPluginEditor().exists()) {
+ editor.getBuildEditor().addToBuild(IPluginProjectEditor.PLUGIN_XML_FILE);
+ editor.getBuildEditor().save();
}
String pluginId = configuration.getPlugin();
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/modelelement/CustomizationModelElement.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/modelelement/CustomizationModelElement.java
index b4ca933e2ed..880ca952993 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/modelelement/CustomizationModelElement.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/modelelement/CustomizationModelElement.java
@@ -5,7 +5,7 @@ import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.papyrus.customization.creation.CustomizationElementCreationFactory;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginPackage;
import org.eclipse.papyrus.infra.widgets.creation.ReferenceValueFactory;
import org.eclipse.papyrus.views.properties.modelelement.EMFModelElement;
@@ -23,7 +23,7 @@ public class CustomizationModelElement extends EMFModelElement {
@Override
public ReferenceValueFactory getValueFactory(String propertyPath) {
EStructuralFeature feature = getFeature(propertyPath);
- if(feature.getEType() == CustomizationPackage.eINSTANCE.getCustomizableElement()) {
+ if(feature.getEType() == CustomizationPluginPackage.eINSTANCE.getCustomizableElement()) {
return new CustomizationElementCreationFactory((EReference)feature);
}
return super.getValueFactory(propertyPath);
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/BuildEditor.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/BuildEditor.java
deleted file mode 100644
index 09743c009cd..00000000000
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/BuildEditor.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.plugin;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Properties;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.papyrus.infra.widgets.util.FileUtil;
-
-public class BuildEditor {
-
- private IProject project;
-
- private Properties buildConfig;
-
- private File buildFile;
-
- private final static String BUILD_KEY = "bin.includes"; //$NON-NLS-1$
-
- public BuildEditor(IProject project) throws IOException {
- this.project = project;
-
- buildConfig = new Properties();
-
- buildFile = FileUtil.getWorkspaceFile("/" + project.getName() + "/build.properties"); //$NON-NLS-1$ //$NON-NLS-2$
- if(buildFile == null || !buildFile.exists()) {
- if(!buildFile.getParentFile().exists()) {
- buildFile.getParentFile().mkdirs();
- }
- buildFile.createNewFile();
- }
-
- buildConfig.load(new FileInputStream(buildFile));
- }
-
- public void addToBuild(String path) {
- String currentValue = buildConfig.getProperty(BUILD_KEY);
-
- if(currentValue == null || currentValue.trim().equals("")) { //$NON-NLS-1$
- buildConfig.setProperty(BUILD_KEY, path);
- } else {
- //System.out.println("CurrentValue : \"" + currentValue + "\"");
- buildConfig.setProperty(BUILD_KEY, currentValue + "," + path); //$NON-NLS-1$
- }
- }
-
- public void save() throws IOException {
- buildConfig.store(new FileOutputStream(buildFile), ""); //$NON-NLS-1$
- }
-
-}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/ManifestEditor.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/ManifestEditor.java
deleted file mode 100644
index 9bdfbf43262..00000000000
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/ManifestEditor.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.plugin;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.StringReader;
-import java.util.jar.Attributes.Name;
-import java.util.jar.Manifest;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-
-public class ManifestEditor {
-
- private IProject project;
-
- private IFile manifestFile;
-
- private Manifest manifest;
-
- public ManifestEditor(IProject project) throws IOException, CoreException {
- this.project = project;
- manifestFile = getManifestFile();
-
- manifest = new Manifest(manifestFile.getContents());
- }
-
- public void addDependency(String dependency) {
- addDependency(dependency, null);
- }
-
- public void addDependency(String dependency, String version) {
- Name rqBundle = new Name("Require-Bundle"); //$NON-NLS-1$
- String requireBundle = manifest.getMainAttributes().getValue(rqBundle);
-
- //TODO : Improve the detection of existing dependency
- //If a.b.c exists, then a.b cannot be added (Because it is already contained)
- //Moreover, the Manifest allows newlines anywhere (Including in the
- //middle of a word) : check if these newlines appear in this map,
- //or if they have already been parsed. If the manifest value is copied as-is in the map,
- //then we need to take care of newlines when parsing it
-
- if(requireBundle == null) {
- requireBundle = dependency;
- if(version != null) {
- requireBundle += ";" + version; //$NON-NLS-1$
- }
- } else if(!requireBundle.contains(dependency)) {
- requireBundle += "," + dependency; //$NON-NLS-1$
- if(version != null) {
- requireBundle += ";" + version; //$NON-NLS-1$
- }
- }
-
- manifest.getMainAttributes().put(rqBundle, requireBundle);
- }
-
- public void setValue(String key, String value) {
- setValue(key, "", value); //$NON-NLS-1$
- }
-
- public void setSingleton(boolean singleton) {
- String value = manifest.getMainAttributes().getValue("bundle-symbolicName");
- String[] directives = value.split(";");
-
- if(directives.length == 0) {
- return; //This should not happen if the Manifest is well-formed
- } else {
- value = directives[0];
- boolean isDefined = false;
- for(int i = 1; i < directives.length; i++) {
- String directive = directives[i];
- if(directive.startsWith("singleton:=")) {
- directive = "singleton:=" + singleton;
- isDefined = true;
- }
- value += ";" + directive;
- }
- if(!isDefined) {
- value += ";singleton:=" + singleton;
- }
- }
-
- manifest.getMainAttributes().putValue("bundle-symbolicName", value);
- }
-
- public void setValue(String key, String name, String value) {
- manifest.getAttributes(key).put(name, value);
- }
-
- public void removeValue(String key, String value) {
-
- }
-
- public void removeValue(String key) {
- manifest.getAttributes(key).remove(key);
- }
-
- private IFile getManifestFile() {
- IFile manifest = project.getFile("META-INF/MANIFEST.MF"); //$NON-NLS-1$
- if(manifest.exists()) {
- return manifest;
- }
-
- //TODO : Manifest creation not supported
- return null;
- }
-
- public void save() throws IOException, CoreException {
-
- ByteArrayOutputStream os = new ByteArrayOutputStream();
-
- manifest.write(os);
-
- final StringReader reader = new StringReader(os.toString("UTF-8")); //$NON-NLS-1$
- manifestFile.setContents(new InputStream() {
-
- @Override
- public int read() throws IOException {
- return reader.read();
- }
- }, true, true, null);
- }
-}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java
index 23f9c48883d..a98ee215e7b 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java
@@ -25,8 +25,6 @@ import org.eclipse.papyrus.eclipse.project.editors.interfaces.IPluginProjectEdit
import org.eclipse.papyrus.eclipse.project.editors.project.PluginProjectEditor;
import org.xml.sax.SAXException;
-
-
public class PluginEditor extends PluginProjectEditor implements IPluginProjectEditor, IManifestEditor, IBuildEditor {
protected IManifestEditor manifest;
@@ -111,7 +109,7 @@ public class PluginEditor extends PluginProjectEditor implements IPluginProjectE
}
@Override
- public void save() throws Throwable {
+ public void save() {
super.save();
manifest.save();
build.save();
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/ProjectEditor.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/ProjectEditor.java
deleted file mode 100644
index 35d78ccb6d4..00000000000
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/ProjectEditor.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.plugin;
-
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.papyrus.customization.Activator;
-
-
-public class ProjectEditor {
-
- private IProject project;
-
- private PluginEditor pluginEditor;
-
- private ManifestEditor manifestEditor;
-
- private BuildEditor buildEditor;
-
-
- public ProjectEditor(IProject project) {
- this.project = project;
- }
-
- public IProject getProject() {
- return project;
- }
-
- public PluginEditor getPluginEditor() {
- if(pluginEditor == null) {
- try {
- pluginEditor = new PluginEditor(project);
- } catch (Exception ex) {
- Activator.log.error(ex);
- }
- }
- return pluginEditor;
- }
-
- public ManifestEditor getManifestEditor() {
- if(manifestEditor == null) {
- try {
- manifestEditor = new ManifestEditor(project);
- } catch (Exception ex) {
- Activator.log.error(ex);
- }
- }
- return manifestEditor;
- }
-
- public BuildEditor getBuildEditor() {
- if(buildEditor == null) {
- try {
- buildEditor = new BuildEditor(project);
- } catch (IOException ex) {
- Activator.log.error(ex);
- }
- }
- return buildEditor;
- }
-
- public void addNature(String nature) {
- IProjectDescription description;
- try {
- description = project.getDescription();
- } catch (CoreException ex) {
- Activator.log.error(ex);
- return;
- }
- List<String> natures = new LinkedList<String>(Arrays.asList(description.getNatureIds()));
- if(!natures.contains(nature)) {
- natures.add(nature);
- }
- description.setNatureIds(natures.toArray(new String[natures.size()]));
- }
-
- public void save() throws Exception {
- if(pluginEditor != null) {
- try {
- pluginEditor.save();
- } catch (Throwable t) {
- throw new Exception(t);
- }
- }
- getManifestEditor().save();
- getBuildEditor().save();
- }
-}
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CreateNewCustomizationPluginWizard.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CreateNewCustomizationPluginWizard.java
index 58806e9a33e..6226a84c0a1 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CreateNewCustomizationPluginWizard.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CreateNewCustomizationPluginWizard.java
@@ -21,7 +21,7 @@ import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.papyrus.customization.Activator;
import org.eclipse.papyrus.customization.generator.PluginGenerator;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration;
import org.eclipse.pde.internal.ui.wizards.plugin.NewPluginProjectWizard;
import org.eclipse.swt.graphics.Image;
import org.xml.sax.SAXException;
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CustomizationPage.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CustomizationPage.java
index 4330d422290..bf0e6089bf9 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CustomizationPage.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/wizard/CustomizationPage.java
@@ -18,8 +18,8 @@ import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.papyrus.customization.display.DisplayManager;
import org.eclipse.papyrus.customization.messages.Messages;
-import org.eclipse.papyrus.customization.model.customization.CustomizationConfiguration;
-import org.eclipse.papyrus.customization.model.customization.CustomizationPackage;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationConfiguration;
+import org.eclipse.papyrus.customization.model.customizationplugin.CustomizationPluginFactory;
import org.eclipse.papyrus.views.properties.contexts.View;
import org.eclipse.papyrus.views.properties.runtime.EmbeddedDisplayEngine;
import org.eclipse.papyrus.views.properties.runtime.ViewConstraintEngine;
@@ -54,7 +54,7 @@ public class CustomizationPage extends WizardPage {
container.setLayout(new PropertiesLayout());
if(configuration == null) {
- this.configuration = CustomizationPackage.eINSTANCE.getCustomizationFactory().createCustomizationConfiguration();
+ this.configuration = CustomizationPluginFactory.eINSTANCE.createCustomizationConfiguration();
}
IStructuredSelection selection = new StructuredSelection(configuration);

Back to the top