Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Le Fevre2017-05-10 10:36:30 -0400
committerPatrick Tessier2017-05-30 10:10:14 -0400
commit56a09902350337ef043a6945a35fba72993c9503 (patch)
treec057377b67d3f8781d4be48fc516fc46c2228171
parent2f7cb31fce446f345170f5dfbfd602dd97154a57 (diff)
downloadorg.eclipse.papyrus-56a09902350337ef043a6945a35fba72993c9503.tar.gz
org.eclipse.papyrus-56a09902350337ef043a6945a35fba72993c9503.tar.xz
org.eclipse.papyrus-56a09902350337ef043a6945a35fba72993c9503.zip
Bug 516568 - [Toolsmiths][DSML Custo][Palette] add the management of
palette Actions -model modification -regeneration of custo without sucess, manually editing files -ui design Tests -create a plugin based on the following signature <extension point="org.eclipse.papyrus.infra.gmfdiag.common.paletteDefinition"> <paletteDefinition ID="org.eclipse.papyrus.sysml.diagram.blockdefinition.paletteconfiguration" class="org.eclipse.papyrus.infra.gmfdiag.common.service.palette.ExtendedPluginPaletteProvider" name="Papyrus SysML blockdefinition editor Plugin Palette" path="palettes/PapyrusSYSMLBlockDefinitionDiagram.paletteconfiguration" provider="Eclipse Modeling Project"> <Priority name="Lowest"> </Priority> <!-- Specify diagram this palette tools relate to --> <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"> </editor> </paletteDefinition> </extension> Change-Id: I01e97dba8860856c416e1eec5042c238dec91fbf Signed-off-by: Francois Le Fevre <francois.le-fevre@cea.fr>
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore21
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel99
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.notation26
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.uml18
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleConstraintsEnvironment.xwt9
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizableElement.xwt8
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizationConfiguration.xwt8
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleFileBasedCustomizableElement.xwt8
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePalette.xwt9
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleProfile.xwt16
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyView.xwt8
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyViewEnvironment.xwt9
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleConstraintsEnvironment.xwt16
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePalette.xwt2
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleProfile.xwt26
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyView.xwt11
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyViewEnvironment.xwt16
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml3
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginPackage.java170
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ModelTemplate.java4
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Palette.java167
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginPackageImpl.java70
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PaletteImpl.java382
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/factory/PaletteExtensionFactory.java95
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/Messages.java2
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/messages.properties1
26 files changed, 1154 insertions, 50 deletions
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore
index a00a8ef3fa8..40874655987 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore
@@ -22,10 +22,25 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="language" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="di_file" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="notation_file" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="di_file" ordered="false"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="notation_file" ordered="false"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Palette" eSuperTypes="#//FileBasedCustomizableElement">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="ID" ordered="false" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="clazz" ordered="false"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="provider" ordered="false"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="priorityName" ordered="false"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="editorId" ordered="false"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Palette" eSuperTypes="#//FileBasedCustomizableElement"/>
<eClassifiers xsi:type="ecore:EClass" name="Profile" eSuperTypes="#//FileBasedCustomizableElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="qualifiednames" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="iconpath" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel
index 226abb8d6d1..2bd2dc1f952 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel
@@ -1,49 +1,84 @@
<?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" copyrightText="Copyright (c) 2012 CEA LIST.&#xD;&#xA;&#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;&#xD;&#xA;Contributors:&#xD;&#xA; Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation&#xD;&#xA;"
+<genmodel:GenModel 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" xmlns:genmodel="http://www.eclipse.org/uml2/2.2.0/GenModel"
+ copyrightText="Copyright (c) 2012 CEA LIST.&#xD;&#xA;&#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;&#xD;&#xA;Contributors:&#xD;&#xA; Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation&#xD;&#xA;"
modelDirectory="/org.eclipse.papyrus.toolsmiths/src-gen" editDirectory="/org.eclipse.papyrus.toolsmiths.edit/src-gen"
editorDirectory="/org.eclipse.papyrus.toolsmiths.editor/src-gen" modelPluginID="org.eclipse.papyrus.toolsmiths"
modelName="Customization" editPluginClass="org.eclipse.papyrus.toolsmiths.model.customizationplugin.provider.CustomizationEditPlugin"
editorPluginClass="org.eclipse.papyrus.toolsmiths.model.customizationplugin.presentation.CustomizationEditorPlugin"
nonNLSMarkers="true" testsDirectory="/org.eclipse.papyrus.toolsmiths.tests/src-gen"
testSuiteClass="org.eclipse.papyrus.toolsmiths.model.customizationplugin.tests.CustomizationAllTests"
- importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false"
+ importerID="org.eclipse.uml2.uml.ecore.importer" complianceLevel="5.0" copyrightFields="false"
editPluginID="org.eclipse.papyrus.toolsmiths.edit" editorPluginID="org.eclipse.papyrus.toolsmiths.editor">
- <foreignModel>Customization.ecore</foreignModel>
- <genPackages prefix="CustomizationPlugin" basePackage="org.eclipse.papyrus.toolsmiths.model"
+ <genAnnotations source="http://www.eclipse.org/emf/2002/GenModel/importer/org.eclipse.uml2.uml.ecore.importer">
+ <details key="OPPOSITE_ROLE_NAMES" value="IGNORE"/>
+ <details key="DUPLICATE_FEATURES" value="DISCARD"/>
+ <details key="ANNOTATION_DETAILS" value="PROCESS"/>
+ <details key="PROPERTY_DEFAULT_EXPRESSIONS" value="IGNORE"/>
+ <details key="DUPLICATE_FEATURE_INHERITANCE" value="DISCARD"/>
+ <details key="COMMENTS" value="PROCESS"/>
+ <details key="DERIVED_FEATURES" value="PROCESS"/>
+ <details key="SUPER_CLASS_ORDER" value="PROCESS"/>
+ <details key="DUPLICATE_OPERATION_INHERITANCE" value="DISCARD"/>
+ <details key="REDEFINING_OPERATIONS" value="REPORT"/>
+ <details key="INVARIANT_CONSTRAINTS" value="PROCESS"/>
+ <details key="UNION_PROPERTIES" value="REPORT"/>
+ <details key="DUPLICATE_OPERATIONS" value="DISCARD"/>
+ <details key="NON_API_INVARIANTS" value="IGNORE"/>
+ <details key="CAMEL_CASE_NAMES" value="IGNORE"/>
+ <details key="SUBSETTING_PROPERTIES" value="REPORT"/>
+ <details key="OPERATION_BODIES" value="IGNORE"/>
+ <details key="ECORE_TAGGED_VALUES" value="PROCESS"/>
+ <details key="UNTYPED_PROPERTIES" value="REPORT"/>
+ <details key="REDEFINING_PROPERTIES" value="REPORT"/>
+ <details key="INVOCATION_DELEGATES" value="IGNORE"/>
+ <details key="VALIDATION_DELEGATES" value="IGNORE"/>
+ </genAnnotations>
+ <foreignModel>Customization.uml</foreignModel>
+ <genPackages xsi:type="genmodel:GenPackage" prefix="CustomizationPlugin" basePackage="org.eclipse.papyrus.toolsmiths.model"
disposableProviderFactory="true" ecorePackage="Customization.ecore#/">
- <genClasses ecoreClass="Customization.ecore#//CustomizationConfiguration">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//CustomizationConfiguration/plugin"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Customization.ecore#//CustomizationConfiguration/elements"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//CustomizationConfiguration">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//CustomizationConfiguration/plugin"/>
+ <genFeatures xsi:type="genmodel:GenFeature" property="None" children="true"
+ createChild="true" ecoreFeature="ecore:EReference Customization.ecore#//CustomizationConfiguration/elements"/>
</genClasses>
- <genClasses image="false" ecoreClass="Customization.ecore#//CustomizableElement"/>
- <genClasses ecoreClass="Customization.ecore#//FileBasedCustomizableElement">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//FileBasedCustomizableElement/file"/>
+ <genClasses xsi:type="genmodel:GenClass" image="false" ecoreClass="Customization.ecore#//CustomizableElement"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//FileBasedCustomizableElement">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//FileBasedCustomizableElement/file"/>
</genClasses>
- <genClasses ecoreClass="Customization.ecore#//PropertyView"/>
- <genClasses ecoreClass="Customization.ecore#//UICustom">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UICustom/loadByDefault"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//PropertyView"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//UICustom">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UICustom/loadByDefault"/>
</genClasses>
- <genClasses ecoreClass="Customization.ecore#//ModelTemplate">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//ModelTemplate/language"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//ModelTemplate/name"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//ModelTemplate/id"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//ModelTemplate">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//ModelTemplate/language"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//ModelTemplate/name"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//ModelTemplate/id"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//ModelTemplate/di_file"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//ModelTemplate/notation_file"/>
</genClasses>
- <genClasses ecoreClass="Customization.ecore#//Palette"/>
- <genClasses ecoreClass="Customization.ecore#//Profile">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/qualifiednames"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/iconpath"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/description"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/provider"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/name"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//Palette">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Palette/ID"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Palette/clazz"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Palette/name"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Palette/provider"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Palette/priorityName"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Palette/editorId"/>
</genClasses>
- <genClasses ecoreClass="Customization.ecore#//UMLModel">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UMLModel/name"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UMLModel/iconpath"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UMLModel/description"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UMLModel/provider"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//Profile">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/qualifiednames"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/iconpath"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/description"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/provider"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//Profile/name"/>
</genClasses>
- <genClasses ecoreClass="Customization.ecore#//ConstraintsEnvironment"/>
- <genClasses ecoreClass="Customization.ecore#//PropertyViewEnvironment"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//UMLModel">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UMLModel/name"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UMLModel/iconpath"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UMLModel/description"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute Customization.ecore#//UMLModel/provider"/>
+ </genClasses>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//ConstraintsEnvironment"/>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="Customization.ecore#//PropertyViewEnvironment"/>
</genPackages>
</genmodel:GenModel>
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.notation b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.notation
index 6254c543ad4..688f814f07f 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.notation
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.notation
@@ -242,6 +242,30 @@
<layoutConstraint xmi:type="notation:Location" xmi:id="_HUxrYS_QEeeS8plpp4CJkA" y="15"/>
</children>
<children xmi:type="notation:BasicCompartment" xmi:id="_HUxrYi_QEeeS8plpp4CJkA" type="Class_AttributeCompartment">
+ <children xmi:type="notation:Shape" xmi:id="_j_9_QDWIEeegraI1hOIC3w" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="Customization.uml#_j_jIgDWIEeegraI1hOIC3w"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_j_9_QTWIEeegraI1hOIC3w"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_pmSHgDWIEeegraI1hOIC3w" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="Customization.uml#_pl0NcDWIEeegraI1hOIC3w"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_pmSHgTWIEeegraI1hOIC3w"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_uTig0DWIEeegraI1hOIC3w" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="Customization.uml#_uTHDADWIEeegraI1hOIC3w"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_uTig0TWIEeegraI1hOIC3w"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_u5sh4DWIEeegraI1hOIC3w" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="Customization.uml#_u5QdADWIEeegraI1hOIC3w"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_u5sh4TWIEeegraI1hOIC3w"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_vrwQ8DWIEeegraI1hOIC3w" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="Customization.uml#_vrJ0ADWIEeegraI1hOIC3w"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_vrwQ8TWIEeegraI1hOIC3w"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_wMZf4DWIEeegraI1hOIC3w" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="Customization.uml#_wL5JkDWIEeegraI1hOIC3w"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_wMZf4TWIEeegraI1hOIC3w"/>
+ </children>
<styles xmi:type="notation:TitleStyle" xmi:id="_HUxrYy_QEeeS8plpp4CJkA"/>
<styles xmi:type="notation:SortingStyle" xmi:id="_HUxrZC_QEeeS8plpp4CJkA"/>
<styles xmi:type="notation:FilteringStyle" xmi:id="_HUxrZS_QEeeS8plpp4CJkA"/>
@@ -260,7 +284,7 @@
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_HUxrcC_QEeeS8plpp4CJkA"/>
</children>
<element xmi:type="uml:Class" href="Customization.uml#_euAb-i8xEeel4ff6F-Bn2A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HUxEUS_QEeeS8plpp4CJkA" x="480" y="600"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HUxEUS_QEeeS8plpp4CJkA" x="440" y="800"/>
</children>
<children xmi:type="notation:Shape" xmi:id="_HU94oy_QEeeS8plpp4CJkA" type="StereotypeComment">
<styles xmi:type="notation:TitleStyle" xmi:id="_HU94pC_QEeeS8plpp4CJkA"/>
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.uml b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.uml
index 0a92ad6affd..76857cad1e1 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.uml
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.uml
@@ -59,6 +59,24 @@
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_euAb-i8xEeel4ff6F-Bn2A" name="Palette">
<generalization xmi:type="uml:Generalization" xmi:id="_euAb-y8xEeel4ff6F-Bn2A" general="_euAb6S8xEeel4ff6F-Bn2A"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_j_jIgDWIEeegraI1hOIC3w" name="ID">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_pl0NcDWIEeegraI1hOIC3w" name="clazz">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_uTHDADWIEeegraI1hOIC3w" name="name">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_u5QdADWIEeegraI1hOIC3w" name="provider">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_vrJ0ADWIEeegraI1hOIC3w" name="priorityName">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_wL5JkDWIEeegraI1hOIC3w" name="editorId">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ </ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_euAb_C8xEeel4ff6F-Bn2A" name="Profile">
<generalization xmi:type="uml:Generalization" xmi:id="_euAb_S8xEeel4ff6F-Bn2A" general="_euAb6S8xEeel4ff6F-Bn2A"/>
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleConstraintsEnvironment.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleConstraintsEnvironment.xwt
new file mode 100644
index 00000000000..e29bdbb8542
--- /dev/null
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleConstraintsEnvironment.xwt
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Composite xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
+ xmlns:x="http://www.eclipse.org/xwt">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizableElement.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizableElement.xwt
index 64ba02d967a..58a47121f26 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizableElement.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizableElement.xwt
@@ -1,2 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:j="clr-namespace:java.lang" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
+<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizationConfiguration.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizationConfiguration.xwt
index 64ba02d967a..58a47121f26 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizationConfiguration.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleCustomizationConfiguration.xwt
@@ -1,2 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:j="clr-namespace:java.lang" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
+<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleFileBasedCustomizableElement.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleFileBasedCustomizableElement.xwt
index 64ba02d967a..58a47121f26 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleFileBasedCustomizableElement.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleFileBasedCustomizableElement.xwt
@@ -1,2 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:j="clr-namespace:java.lang" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
+<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePalette.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePalette.xwt
index 499c549e3f2..e29bdbb8542 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePalette.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePalette.xwt
@@ -1,2 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout" xmlns:j="clr-namespace:java.lang"><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><Label text="This element is not available yet"></Label></Composite> \ No newline at end of file
+<Composite xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
+ xmlns:x="http://www.eclipse.org/xwt">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleProfile.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleProfile.xwt
index 92819e2bf7e..89b69f5d0bc 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleProfile.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultipleProfile.xwt
@@ -1,2 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets" xmlns:j="clr-namespace:java.lang" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="customization:Profile:provider"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
+<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringEditor input="{Binding}"
+ property="customization:Profile:provider"></ppe:StringEditor>
+ </Composite>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyView.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyView.xwt
index 64ba02d967a..58a47121f26 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyView.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyView.xwt
@@ -1,2 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:j="clr-namespace:java.lang" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
+<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyViewEnvironment.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyViewEnvironment.xwt
new file mode 100644
index 00000000000..e29bdbb8542
--- /dev/null
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/MultiplePropertyViewEnvironment.xwt
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Composite xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
+ xmlns:x="http://www.eclipse.org/xwt">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleConstraintsEnvironment.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleConstraintsEnvironment.xwt
new file mode 100644
index 00000000000..7adf3b7f11d
--- /dev/null
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleConstraintsEnvironment.xwt
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Composite xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang" xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
+ xmlns:x="http://www.eclipse.org/xwt">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringEditor input="{Binding}"
+ property="customization:FileBasedCustomizableElement:file"></ppe:StringEditor>
+ </Composite>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePalette.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePalette.xwt
index 6e10791359a..ac6ffb768c7 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePalette.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePalette.xwt
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:j="clr-namespace:java.lang"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Label text="This element is not available yet"></Label></Composite> \ No newline at end of file
+<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:j="clr-namespace:java.lang" xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringFileSelector input="{Binding}" property="customization:FileBasedCustomizableElement:file" customLabel="path"></ppe:StringFileSelector><ppe:StringEditor input="{Binding}" property="customization:Palette:ID"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Palette:clazz"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Palette:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Palette:provider"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Palette:priorityName"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Palette:editorId"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleProfile.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleProfile.xwt
index 3865b3538c8..596d42dc380 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleProfile.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SingleProfile.xwt
@@ -1,2 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets" xmlns:j="clr-namespace:java.lang" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringFileSelector input="{Binding}" property="customization:FileBasedCustomizableElement:file"></ppe:StringFileSelector><ppe:StringEditor input="{Binding}" property="customization:Profile:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Profile:description"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Profile:iconpath"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Profile:provider"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="customization:Profile:qualifiednames"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
+<Composite
+ xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets"
+ xmlns:j="clr-namespace:java.lang" xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
+ xmlns:x="http://www.eclipse.org/xwt">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringFileSelector input="{Binding}"
+ property="customization:FileBasedCustomizableElement:file"></ppe:StringFileSelector>
+ <ppe:StringEditor input="{Binding}" property="customization:Profile:name"></ppe:StringEditor>
+ <ppe:StringEditor input="{Binding}"
+ property="customization:Profile:description"></ppe:StringEditor>
+ <ppe:StringEditor input="{Binding}"
+ property="customization:Profile:iconpath"></ppe:StringEditor>
+ <ppe:StringEditor input="{Binding}"
+ property="customization:Profile:provider"></ppe:StringEditor>
+ <ppe:StringEditor input="{Binding}"
+ property="customization:Profile:qualifiednames"></ppe:StringEditor>
+ </Composite>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyView.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyView.xwt
index 00af6a121b9..6ec1d45f8ca 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyView.xwt
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyView.xwt
@@ -1,2 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:j="clr-namespace:java.lang" xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringFileSelector input="{Binding}" property="customization:FileBasedCustomizableElement:file"></ppe:StringFileSelector></Composite> \ No newline at end of file
+<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
+ xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringFileSelector input="{Binding}"
+ property="customization:FileBasedCustomizableElement:file"></ppe:StringFileSelector>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyViewEnvironment.xwt b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyViewEnvironment.xwt
new file mode 100644
index 00000000000..7adf3b7f11d
--- /dev/null
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/ui/SinglePropertyViewEnvironment.xwt
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Composite xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:j="clr-namespace:java.lang" xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
+ xmlns:x="http://www.eclipse.org/xwt">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringEditor input="{Binding}"
+ property="customization:FileBasedCustomizableElement:file"></ppe:StringEditor>
+ </Composite>
+</Composite> \ No newline at end of file
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml
index eec1b042aa3..132150137a3 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml
@@ -47,6 +47,9 @@
factory="org.eclipse.papyrus.toolsmiths.factory.ModelTemplateExtensionFactory">
</factory>
<factory
+ factory="org.eclipse.papyrus.toolsmiths.factory.PaletteExtensionFactory">
+ </factory>
+ <factory
factory="org.eclipse.papyrus.toolsmiths.factory.ProfileExtensionFactory">
</factory>
<factory
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginPackage.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginPackage.java
index b76b7db4a66..65f5a53c3ab 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginPackage.java
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginPackage.java
@@ -307,13 +307,67 @@ public interface CustomizationPluginPackage extends EPackage {
int PALETTE__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
/**
+ * The feature id for the '<em><b>ID</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PALETTE__ID = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Clazz</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PALETTE__CLAZZ = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PALETTE__NAME = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Provider</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PALETTE__PROVIDER = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Priority Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PALETTE__PRIORITY_NAME = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Editor Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PALETTE__EDITOR_ID = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 5;
+
+ /**
* The number of structural features of the '<em>Palette</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int PALETTE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
+ int PALETTE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 6;
/**
* The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl <em>Profile</em>}' class.
@@ -679,6 +733,72 @@ public interface CustomizationPluginPackage extends EPackage {
EClass getPalette();
/**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getID <em>ID</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>ID</em>'.
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getID()
+ * @see #getPalette()
+ * @generated
+ */
+ EAttribute getPalette_ID();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getClazz <em>Clazz</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Clazz</em>'.
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getClazz()
+ * @see #getPalette()
+ * @generated
+ */
+ EAttribute getPalette_Clazz();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getName()
+ * @see #getPalette()
+ * @generated
+ */
+ EAttribute getPalette_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getProvider <em>Provider</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Provider</em>'.
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getProvider()
+ * @see #getPalette()
+ * @generated
+ */
+ EAttribute getPalette_Provider();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getPriorityName <em>Priority Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Priority Name</em>'.
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getPriorityName()
+ * @see #getPalette()
+ * @generated
+ */
+ EAttribute getPalette_PriorityName();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getEditorId <em>Editor Id</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Editor Id</em>'.
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getEditorId()
+ * @see #getPalette()
+ * @generated
+ */
+ EAttribute getPalette_EditorId();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile <em>Profile</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -982,6 +1102,54 @@ public interface CustomizationPluginPackage extends EPackage {
EClass PALETTE = eINSTANCE.getPalette();
/**
+ * The meta object literal for the '<em><b>ID</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PALETTE__ID = eINSTANCE.getPalette_ID();
+
+ /**
+ * The meta object literal for the '<em><b>Clazz</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PALETTE__CLAZZ = eINSTANCE.getPalette_Clazz();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PALETTE__NAME = eINSTANCE.getPalette_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Provider</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PALETTE__PROVIDER = eINSTANCE.getPalette_Provider();
+
+ /**
+ * The meta object literal for the '<em><b>Priority Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PALETTE__PRIORITY_NAME = eINSTANCE.getPalette_PriorityName();
+
+ /**
+ * The meta object literal for the '<em><b>Editor Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PALETTE__EDITOR_ID = eINSTANCE.getPalette_EditorId();
+
+ /**
* The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl <em>Profile</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ModelTemplate.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ModelTemplate.java
index 3541ffa911e..efa7ea3cc54 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ModelTemplate.java
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ModelTemplate.java
@@ -123,7 +123,7 @@ public interface ModelTemplate extends FileBasedCustomizableElement {
* @return the value of the '<em>Di file</em>' attribute.
* @see #setDi_file(String)
* @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Di_file()
- * @model
+ * @model ordered="false"
* @generated
*/
String getDi_file();
@@ -149,7 +149,7 @@ public interface ModelTemplate extends FileBasedCustomizableElement {
* @return the value of the '<em>Notation file</em>' attribute.
* @see #setNotation_file(String)
* @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Notation_file()
- * @model
+ * @model ordered="false"
* @generated
*/
String getNotation_file();
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Palette.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Palette.java
index 4ed3dc081c2..f696f8bd542 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Palette.java
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Palette.java
@@ -18,10 +18,177 @@ package org.eclipse.papyrus.toolsmiths.model.customizationplugin;
* A representation of the model object '<em><b>Palette</b></em>'.
* <!-- end-user-doc -->
*
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getID <em>ID</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getClazz <em>Clazz</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getProvider <em>Provider</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getPriorityName <em>Priority Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getEditorId <em>Editor Id</em>}</li>
+ * </ul>
*
* @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette()
* @model
* @generated
*/
public interface Palette extends FileBasedCustomizableElement {
+
+ /**
+ * 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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette_ID()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getID();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#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);
+
+ /**
+ * Returns the value of the '<em><b>Clazz</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Clazz</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Clazz</em>' attribute.
+ * @see #setClazz(String)
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette_Clazz()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getClazz();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getClazz <em>Clazz</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Clazz</em>' attribute.
+ * @see #getClazz()
+ * @generated
+ */
+ void setClazz(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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette_Name()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#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>Provider</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Provider</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Provider</em>' attribute.
+ * @see #setProvider(String)
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette_Provider()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getProvider();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getProvider <em>Provider</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Provider</em>' attribute.
+ * @see #getProvider()
+ * @generated
+ */
+ void setProvider(String value);
+
+ /**
+ * Returns the value of the '<em><b>Priority Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Priority 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>Priority Name</em>' attribute.
+ * @see #setPriorityName(String)
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette_PriorityName()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getPriorityName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getPriorityName <em>Priority Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Priority Name</em>' attribute.
+ * @see #getPriorityName()
+ * @generated
+ */
+ void setPriorityName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Editor Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Editor 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>Editor Id</em>' attribute.
+ * @see #setEditorId(String)
+ * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette_EditorId()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ String getEditorId();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette#getEditorId <em>Editor Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Editor Id</em>' attribute.
+ * @see #getEditorId()
+ * @generated
+ */
+ void setEditorId(String value);
} // Palette
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginPackageImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginPackageImpl.java
index 8b9e3f79bb9..ed6afe9304d 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginPackageImpl.java
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginPackageImpl.java
@@ -327,6 +327,60 @@ public class CustomizationPluginPackageImpl extends EPackageImpl implements Cust
* <!-- end-user-doc -->
* @generated
*/
+ public EAttribute getPalette_ID() {
+ return (EAttribute)paletteEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPalette_Clazz() {
+ return (EAttribute)paletteEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPalette_Name() {
+ return (EAttribute)paletteEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPalette_Provider() {
+ return (EAttribute)paletteEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPalette_PriorityName() {
+ return (EAttribute)paletteEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPalette_EditorId() {
+ return (EAttribute)paletteEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EClass getProfile() {
return profileEClass;
}
@@ -489,6 +543,12 @@ public class CustomizationPluginPackageImpl extends EPackageImpl implements Cust
createEAttribute(modelTemplateEClass, MODEL_TEMPLATE__NOTATION_FILE);
paletteEClass = createEClass(PALETTE);
+ createEAttribute(paletteEClass, PALETTE__ID);
+ createEAttribute(paletteEClass, PALETTE__CLAZZ);
+ createEAttribute(paletteEClass, PALETTE__NAME);
+ createEAttribute(paletteEClass, PALETTE__PROVIDER);
+ createEAttribute(paletteEClass, PALETTE__PRIORITY_NAME);
+ createEAttribute(paletteEClass, PALETTE__EDITOR_ID);
profileEClass = createEClass(PROFILE);
createEAttribute(profileEClass, PROFILE__QUALIFIEDNAMES);
@@ -565,10 +625,16 @@ public class CustomizationPluginPackageImpl extends EPackageImpl implements Cust
initEAttribute(getModelTemplate_Language(), ecorePackage.getEString(), "language", null, 0, 1, ModelTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getModelTemplate_Name(), ecorePackage.getEString(), "name", null, 0, 1, ModelTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getModelTemplate_Id(), ecorePackage.getEString(), "id", null, 1, 1, ModelTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getModelTemplate_Di_file(), ecorePackage.getEString(), "di_file", null, 0, 1, ModelTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getModelTemplate_Notation_file(), ecorePackage.getEString(), "notation_file", null, 0, 1, ModelTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getModelTemplate_Di_file(), ecorePackage.getEString(), "di_file", null, 0, 1, ModelTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getModelTemplate_Notation_file(), ecorePackage.getEString(), "notation_file", null, 0, 1, ModelTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
initEClass(paletteEClass, Palette.class, "Palette", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(getPalette_ID(), ecorePackage.getEString(), "ID", null, 1, 1, Palette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getPalette_Clazz(), ecorePackage.getEString(), "clazz", null, 1, 1, Palette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getPalette_Name(), ecorePackage.getEString(), "name", null, 1, 1, Palette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getPalette_Provider(), ecorePackage.getEString(), "provider", null, 1, 1, Palette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getPalette_PriorityName(), ecorePackage.getEString(), "priorityName", null, 1, 1, Palette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getPalette_EditorId(), ecorePackage.getEString(), "editorId", null, 1, 1, Palette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
initEClass(profileEClass, Profile.class, "Profile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getProfile_Qualifiednames(), ecorePackage.getEString(), "qualifiednames", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PaletteImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PaletteImpl.java
index 046dab29954..bcd960461f7 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PaletteImpl.java
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PaletteImpl.java
@@ -12,8 +12,10 @@
*/
package org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette;
@@ -21,11 +23,131 @@ import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette;
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Palette</b></em>'.
* <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl#getID <em>ID</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl#getClazz <em>Clazz</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl#getProvider <em>Provider</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl#getPriorityName <em>Priority Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl#getEditorId <em>Editor Id</em>}</li>
+ * </ul>
*
* @generated
*/
public class PaletteImpl extends FileBasedCustomizableElementImpl implements Palette {
/**
+ * The default value of the '{@link #getID() <em>ID</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getID()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+ /**
+ * The cached value of the '{@link #getID() <em>ID</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getID()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+ /**
+ * The default value of the '{@link #getClazz() <em>Clazz</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getClazz()
+ * @generated
+ * @ordered
+ */
+ protected static final String CLAZZ_EDEFAULT = null;
+ /**
+ * The cached value of the '{@link #getClazz() <em>Clazz</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getClazz()
+ * @generated
+ * @ordered
+ */
+ protected String clazz = CLAZZ_EDEFAULT;
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+ /**
+ * The default value of the '{@link #getProvider() <em>Provider</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProvider()
+ * @generated
+ * @ordered
+ */
+ protected static final String PROVIDER_EDEFAULT = null;
+ /**
+ * The cached value of the '{@link #getProvider() <em>Provider</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProvider()
+ * @generated
+ * @ordered
+ */
+ protected String provider = PROVIDER_EDEFAULT;
+ /**
+ * The default value of the '{@link #getPriorityName() <em>Priority Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPriorityName()
+ * @generated
+ * @ordered
+ */
+ protected static final String PRIORITY_NAME_EDEFAULT = null;
+ /**
+ * The cached value of the '{@link #getPriorityName() <em>Priority Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPriorityName()
+ * @generated
+ * @ordered
+ */
+ protected String priorityName = PRIORITY_NAME_EDEFAULT;
+ /**
+ * The default value of the '{@link #getEditorId() <em>Editor Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEditorId()
+ * @generated
+ * @ordered
+ */
+ protected static final String EDITOR_ID_EDEFAULT = null;
+ /**
+ * The cached value of the '{@link #getEditorId() <em>Editor Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEditorId()
+ * @generated
+ * @ordered
+ */
+ protected String editorId = EDITOR_ID_EDEFAULT;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -44,4 +166,264 @@ public class PaletteImpl extends FileBasedCustomizableElementImpl implements Pal
return CustomizationPluginPackage.Literals.PALETTE;
}
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getID() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setID(String newID) {
+ String oldID = id;
+ id = newID;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PALETTE__ID, oldID, id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getClazz() {
+ return clazz;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setClazz(String newClazz) {
+ String oldClazz = clazz;
+ clazz = newClazz;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PALETTE__CLAZZ, oldClazz, clazz));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PALETTE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getProvider() {
+ return provider;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProvider(String newProvider) {
+ String oldProvider = provider;
+ provider = newProvider;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PALETTE__PROVIDER, oldProvider, provider));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getPriorityName() {
+ return priorityName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPriorityName(String newPriorityName) {
+ String oldPriorityName = priorityName;
+ priorityName = newPriorityName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PALETTE__PRIORITY_NAME, oldPriorityName, priorityName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEditorId() {
+ return editorId;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEditorId(String newEditorId) {
+ String oldEditorId = editorId;
+ editorId = newEditorId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PALETTE__EDITOR_ID, oldEditorId, editorId));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case CustomizationPluginPackage.PALETTE__ID:
+ return getID();
+ case CustomizationPluginPackage.PALETTE__CLAZZ:
+ return getClazz();
+ case CustomizationPluginPackage.PALETTE__NAME:
+ return getName();
+ case CustomizationPluginPackage.PALETTE__PROVIDER:
+ return getProvider();
+ case CustomizationPluginPackage.PALETTE__PRIORITY_NAME:
+ return getPriorityName();
+ case CustomizationPluginPackage.PALETTE__EDITOR_ID:
+ return getEditorId();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case CustomizationPluginPackage.PALETTE__ID:
+ setID((String)newValue);
+ return;
+ case CustomizationPluginPackage.PALETTE__CLAZZ:
+ setClazz((String)newValue);
+ return;
+ case CustomizationPluginPackage.PALETTE__NAME:
+ setName((String)newValue);
+ return;
+ case CustomizationPluginPackage.PALETTE__PROVIDER:
+ setProvider((String)newValue);
+ return;
+ case CustomizationPluginPackage.PALETTE__PRIORITY_NAME:
+ setPriorityName((String)newValue);
+ return;
+ case CustomizationPluginPackage.PALETTE__EDITOR_ID:
+ setEditorId((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case CustomizationPluginPackage.PALETTE__ID:
+ setID(ID_EDEFAULT);
+ return;
+ case CustomizationPluginPackage.PALETTE__CLAZZ:
+ setClazz(CLAZZ_EDEFAULT);
+ return;
+ case CustomizationPluginPackage.PALETTE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case CustomizationPluginPackage.PALETTE__PROVIDER:
+ setProvider(PROVIDER_EDEFAULT);
+ return;
+ case CustomizationPluginPackage.PALETTE__PRIORITY_NAME:
+ setPriorityName(PRIORITY_NAME_EDEFAULT);
+ return;
+ case CustomizationPluginPackage.PALETTE__EDITOR_ID:
+ setEditorId(EDITOR_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case CustomizationPluginPackage.PALETTE__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case CustomizationPluginPackage.PALETTE__CLAZZ:
+ return CLAZZ_EDEFAULT == null ? clazz != null : !CLAZZ_EDEFAULT.equals(clazz);
+ case CustomizationPluginPackage.PALETTE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case CustomizationPluginPackage.PALETTE__PROVIDER:
+ return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider);
+ case CustomizationPluginPackage.PALETTE__PRIORITY_NAME:
+ return PRIORITY_NAME_EDEFAULT == null ? priorityName != null : !PRIORITY_NAME_EDEFAULT.equals(priorityName);
+ case CustomizationPluginPackage.PALETTE__EDITOR_ID:
+ return EDITOR_ID_EDEFAULT == null ? editorId != null : !EDITOR_ID_EDEFAULT.equals(editorId);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (ID: "); //$NON-NLS-1$
+ result.append(id);
+ result.append(", clazz: "); //$NON-NLS-1$
+ result.append(clazz);
+ result.append(", name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", provider: "); //$NON-NLS-1$
+ result.append(provider);
+ result.append(", priorityName: "); //$NON-NLS-1$
+ result.append(priorityName);
+ result.append(", editorId: "); //$NON-NLS-1$
+ result.append(editorId);
+ result.append(')');
+ return result.toString();
+ }
+
} //PaletteImpl
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/factory/PaletteExtensionFactory.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/factory/PaletteExtensionFactory.java
new file mode 100644
index 00000000000..011f4733b5f
--- /dev/null
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/factory/PaletteExtensionFactory.java
@@ -0,0 +1,95 @@
+/*****************************************************************************
+ * 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:
+ * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.toolsmiths.factory;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.papyrus.eclipse.project.editors.interfaces.IPluginEditor;
+import org.eclipse.papyrus.toolsmiths.messages.Messages;
+import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizableElement;
+import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
+import org.eclipse.papyrus.toolsmiths.model.customizationplugin.FileBasedCustomizableElement;
+import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette;
+import org.w3c.dom.Element;
+
+
+public class PaletteExtensionFactory extends FileBasedExtensionFactory {
+
+ public static final String PALETTE_ROOT_FOLDER = new String("palette");
+
+
+ public PaletteExtensionFactory() {
+ super(Messages.PaletteFactory_Palette, "org.eclipse.papyrus.infra.gmfdiag.common.paletteDefinition", "path", "paletteDefinition", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ }
+
+ @Override
+ public void addElement(CustomizableElement element, IPluginEditor editor) {
+ super.addElement(element, editor);
+
+ editor.addDependency("org.eclipse.papyrus.infra.gmfdiag.common"); //$NON-NLS-1$
+ }
+
+ @Override
+ protected Element createExtension(FileBasedCustomizableElement customizableElement, IPluginEditor editor) {
+ Element extension = super.createExtension(customizableElement, editor);
+ if (customizableElement instanceof Palette) {
+ Palette element = (Palette) customizableElement;
+
+ extension.setAttribute("ID", element.getID()); //$NON-NLS-1$
+
+ if (element.getName() != null) {
+ extension.setAttribute("name", element.getName()); //$NON-NLS-1$
+ }
+
+ if (element.getClazz() != null) {
+ extension.setAttribute("class", element.getClazz()); //$NON-NLS-1$
+ }
+
+ if (element.getProvider() != null) {
+ extension.setAttribute("provider", element.getProvider()); //$NON-NLS-1$
+ }
+ if (element.getPriorityName() != null) {
+ Element priority = extension.getOwnerDocument().createElement("Priority");//$NON-NLS-1$
+ priority.setAttribute("name", element.getPriorityName());
+ extension.appendChild(priority);
+ }
+ if (element.getProvider() != null) {
+ Element editor2 = extension.getOwnerDocument().createElement("editor");//$NON-NLS-1$
+ editor2.setAttribute("id", element.getEditorId());
+ extension.appendChild(editor2);
+ }
+
+ }
+
+ return extension;
+ }
+
+ @Override
+ protected String getTargetPath(FileBasedCustomizableElement element) {
+ return getFilePath(element.getFile()); //$NON-NLS-1$
+ }
+
+ protected String getFilePath(String file) {
+ return File.separator+PALETTE_ROOT_FOLDER+File.separator + getFileName(file);
+ }
+
+ public EClass getCustomizableElementClass() {
+ return CustomizationPluginPackage.eINSTANCE.getPalette();
+ }
+
+ protected void copyFile(FileBasedCustomizableElement element, IPluginEditor editor) throws FileNotFoundException, IOException {
+ copyFile(element.getFile(), getFilePath(((Palette)element).getFile()), editor);
+ }
+}
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/Messages.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/Messages.java
index 88bfd8c696c..134f6c4179d 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/Messages.java
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/Messages.java
@@ -17,6 +17,8 @@ public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.papyrus.toolsmiths.messages.messages"; //$NON-NLS-1$
+ public static String PaletteFactory_Palette;
+
public static String UICustomExtensionFactory_UICustom;
public static String ModelTemplateExtensionFactory_ModelTemplate;
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/messages.properties b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/messages.properties
index f5a7de1b4e7..d865074094b 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/messages.properties
+++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/messages/messages.properties
@@ -11,3 +11,4 @@ UMLModelExtensionFactory_UMLModel=UML Model
CreateNewCustomizationPluginWizard_CustomizationPlugin=DSML configuration plug-in
CustomizationPage_Customization=Customization
EnvironmentExtensionFactory_PropertyViewEnvironment=Property view Environment
+PaletteFactory_Palette=Palette

Back to the top