diff options
author | Vincent Lorenzo | 2017-02-20 13:33:19 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2017-02-21 08:57:33 +0000 |
commit | fc1d95de63fdce2f174d04dc9d1897e6142b38aa (patch) | |
tree | 38cdd9c716184f4e339a6547788a86fc89dd0ef8 /plugins/toolsmiths | |
parent | 9a06b9b64cb38d534f9cb4f830b4ee88ab0cc713 (diff) | |
download | org.eclipse.papyrus-fc1d95de63fdce2f174d04dc9d1897e6142b38aa.tar.gz org.eclipse.papyrus-fc1d95de63fdce2f174d04dc9d1897e6142b38aa.tar.xz org.eclipse.papyrus-fc1d95de63fdce2f174d04dc9d1897e6142b38aa.zip |
Bug 511990: [Toolsmiths] plugin org.eclipse.papyrus.toolsmiths provides exception in the console
- This patych fix renaming bugs:
- some toolsmiths have been renamed into customization
- some customization have been renamed into toolsmiths
- extension point has been renamed to be consistent with the new plugin name
- file TestConfig.xmi seemed useless, so I remove it
- I did hand tests, wizard works fine
Change-Id: Ia223ed9ed3bbf07b766d9f011f9c96c8beba680f
Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins/toolsmiths')
37 files changed, 5279 insertions, 5551 deletions
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore index 600c48b31c7..381bc9ab3aa 100644 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.ecore @@ -1,6 +1,6 @@ <?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="toolsmithsplugin" nsURI="http://www.eclipse.org/papyrus/toolsmiths"
+ 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"
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel index 70669c67127..226abb8d6d1 100644 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization.genmodel @@ -1,10 +1,12 @@ <?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.toolsmiths/src-gen" editDirectory="/org.eclipse.papyrus.toolsmiths.edit/src-gen"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="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
"
+ 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"
- testsDirectory="/org.eclipse.papyrus.toolsmiths.tests/src-gen" testSuiteClass="org.eclipse.papyrus.toolsmiths.model.customizationplugin.tests.CustomizationAllTests"
+ 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"
editPluginID="org.eclipse.papyrus.toolsmiths.edit" editorPluginID="org.eclipse.papyrus.toolsmiths.editor">
<foreignModel>Customization.ecore</foreignModel>
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/Customization.ctx b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/Customization.ctx index 4d7cb2d14df..0b802eaa835 100644 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/Customization.ctx +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Customization/Customization.ctx @@ -307,6 +307,6 @@ <properties name="provider" /> </elements> <modelElementFactory - href="ppe:/environment/org.eclipse.papyrus.customization/Model/Environment.xmi#//@modelElementFactories.0" /> + href="ppe:/environment/org.eclipse.papyrus.toolsmiths/models/Environment.xmi#//@modelElementFactories.0" /> </dataContexts> </contexts:Context> diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Environment.xmi b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Environment.xmi index e761d49334d..0cb5998ceb8 100644 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Environment.xmi +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/Environment.xmi @@ -1,4 +1,9 @@ <?xml version="1.0" encoding="ASCII"?>
-<environment:Environment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:environment="http://www.eclipse.org/papyrus/properties/environment/0.9">
- <modelElementFactories name="Customization Plugin Factory" factoryClass="org.eclipse.papyrus.customization.modelelement.CustomizationModelElementFactory"/>
+<environment:Environment
+ xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:environment="http://www.eclipse.org/papyrus/properties/environment/0.9">
+ <modelElementFactories
+ name="Toolsmiths Plugin Factory"
+ factoryClass="org.eclipse.papyrus.toolsmiths.modelelement.CustomizationModelElementFactory"/>
</environment:Environment>
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/TestConfig.xmi b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/TestConfig.xmi deleted file mode 100644 index 7a89c1e6ed2..00000000000 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/models/TestConfig.xmi +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<custom:CustomizationConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:custom="http://www.eclipse.org/papyrus/customization" xsi:schemaLocation="http://www.eclipse.org/papyrus/customization Customization.ecore" plugin="org.eclipse.papyrus.customizationtest">
- <elements xsi:type="custom:FileBasedCustomizableElement" file="sampleUiCustom.xmi"/>
- <elements xsi:type="custom:FileBasedCustomizableElement" file="samplePalette.xmi" type="Palette"/>
- <elements xsi:type="custom:FileBasedCustomizableElement" file="samplePalette2.xmi" type="Palette"/>
-</custom:CustomizationConfiguration>
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml index 59553c3787d..57c87fa5346 100644 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/plugin.xml @@ -23,21 +23,21 @@ category="org.eclipse.papyrus.wizards.category"
class="org.eclipse.papyrus.toolsmiths.wizard.CreateNewCustomizationPluginWizard"
icon="icons/16-config.png"
- id="org.eclipse.papyrus.customization.wizard"
+ id="org.eclipse.papyrus.toolsmiths.wizard"
name="%wizard.name">
</wizard>
</extension>
<extension
point="org.eclipse.papyrus.infra.properties.contexts">
<context
- contextModel="Model/Customization/Customization.ctx"
+ contextModel="models/Customization/Customization.ctx"
isCustomizable="false">
</context>
</extension>
<extension
point="org.eclipse.papyrus.infra.properties.environments">
<environment
- environmentModel="Model/Environment.xmi">
+ environmentModel="models/Environment.xmi">
</environment>
</extension>
<extension
@@ -65,12 +65,5 @@ </factory>
</extension>
- <extension point="org.eclipse.emf.ecore.generated_package">
- <!-- @generated Customization -->
- <package
- uri="http://www.eclipse.org/papyrus/toolsmiths"
- class="org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage"
- genModel="models/Customization.genmodel"/>
- </extension>
</plugin>
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/schema/factory.exsd b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/schema/factory.exsd index 4ee4b2e0198..6d8a29ede62 100644 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/schema/factory.exsd +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/schema/factory.exsd @@ -1,104 +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>
+<?xml version='1.0' encoding='UTF-8'?> +<!-- Schema file written by PDE --> +<schema targetNamespace="org.eclipse.papyrus.toolsmiths" xmlns="http://www.w3.org/2001/XMLSchema"> +<annotation> + <appInfo> + <meta.schema plugin="org.eclipse.papyrus.toolsmiths" 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.toolsmiths.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/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ConstraintsEnvironment.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ConstraintsEnvironment.java index e2e40f059f4..2bde71c13c7 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ConstraintsEnvironment.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/ConstraintsEnvironment.java @@ -1,17 +1,27 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.model.customizationplugin;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Constraints Environment</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getConstraintsEnvironment()
- * @model
- * @generated
- */
-public interface ConstraintsEnvironment extends FileBasedCustomizableElement {
-} // ConstraintsEnvironment
+/** + * 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.toolsmiths.model.customizationplugin; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Constraints Environment</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getConstraintsEnvironment() + * @model + * @generated + */ +public interface ConstraintsEnvironment extends FileBasedCustomizableElement { +} // ConstraintsEnvironment diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizableElement.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizableElement.java index 8d8f09b922f..5a812189890 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizableElement.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizableElement.java @@ -1,27 +1,28 @@ -/*****************************************************************************
- * 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.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getCustomizableElement()
- * @model abstract="true"
- * @generated
- */
-public interface CustomizableElement extends EObject {
-} // CustomizableElement
+/** + * 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.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getCustomizableElement() + * @model abstract="true" + * @generated + */ +public interface CustomizableElement extends EObject { +} // CustomizableElement diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationConfiguration.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationConfiguration.java index 61c22bf621c..89af509c5cd 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationConfiguration.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationConfiguration.java @@ -1,79 +1,79 @@ -/*****************************************************************************
- * 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.toolsmiths.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>Customization Configuration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration#getPlugin <em>Plugin</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration#getElements <em>Elements</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration()
- * @model
- * @generated
- */
-public interface CustomizationConfiguration extends EObject {
- /**
- * Returns the value of the '<em><b>Plugin</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Plugin</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Plugin</em>' attribute.
- * @see #setPlugin(String)
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration_Plugin()
- * @model required="true"
- * @generated
- */
- String getPlugin();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getPlugin()
- * @generated
- */
- void setPlugin(String value);
-
- /**
- * Returns the value of the '<em><b>Elements</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizableElement}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Elements</em>' containment reference list.
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration_Elements()
- * @model containment="true"
- * @generated
- */
- EList<CustomizableElement> getElements();
-
-} // CustomizationConfiguration
+/** + * 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.toolsmiths.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>Customization Configuration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration#getPlugin <em>Plugin</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration#getElements <em>Elements</em>}</li> + * </ul> + * + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration() + * @model + * @generated + */ +public interface CustomizationConfiguration extends EObject { + /** + * Returns the value of the '<em><b>Plugin</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Plugin</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Plugin</em>' attribute. + * @see #setPlugin(String) + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration_Plugin() + * @model required="true" + * @generated + */ + String getPlugin(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getPlugin() + * @generated + */ + void setPlugin(String value); + + /** + * Returns the value of the '<em><b>Elements</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizableElement}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Elements</em>' containment reference list. + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getCustomizationConfiguration_Elements() + * @model containment="true" + * @generated + */ + EList<CustomizableElement> getElements(); + +} // CustomizationConfiguration diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginFactory.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginFactory.java index fdffdf5f32c..2a5ba430ff9 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginFactory.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/CustomizationPluginFactory.java @@ -1,136 +1,124 @@ -/*****************************************************************************
- * 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.toolsmiths.model.customizationplugin;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage
- * @generated
- */
-public interface CustomizationPluginFactory extends EFactory {
-
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- CustomizationPluginFactory eINSTANCE = org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Customization Configuration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Customization Configuration</em>'.
- * @generated
- */
- CustomizationConfiguration createCustomizationConfiguration();
-
- /**
- * 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
- */
- PropertyView createPropertyView();
-
- /**
- * 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
- */
- UICustom createUICustom();
-
- /**
- * 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
- */
- ModelTemplate createModelTemplate();
-
- /**
- * 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
- */
- Palette createPalette();
-
- /**
- * 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
- */
- Profile createProfile();
-
- /**
- * 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
- */
- CustomizationPluginPackage getCustomizationPluginPackage();
-
-} // CustomizationPluginFactory
+/** + * 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.toolsmiths.model.customizationplugin; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage + * @generated + */ +public interface CustomizationPluginFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + CustomizationPluginFactory eINSTANCE = org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Customization Configuration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Customization Configuration</em>'. + * @generated + */ + CustomizationConfiguration createCustomizationConfiguration(); + + /** + * 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 + */ + PropertyView createPropertyView(); + + /** + * 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 + */ + UICustom createUICustom(); + + /** + * 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 + */ + ModelTemplate createModelTemplate(); + + /** + * 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 + */ + Palette createPalette(); + + /** + * 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 + */ + Profile createProfile(); + + /** + * 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 + */ + CustomizationPluginPackage getCustomizationPluginPackage(); + +} //CustomizationPluginFactory 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 d47d581862b..8b73f9fadec 100644..100755 --- 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 @@ -1,1149 +1,1042 @@ -/*****************************************************************************
- * 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.toolsmiths.model.customizationplugin;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginFactory
- * @model kind="package"
- * @generated
- */
-public interface CustomizationPluginPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "customizationplugin";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/customization";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "custom";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- CustomizationPluginPackage eINSTANCE = org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl <em>Customization Configuration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizationConfiguration()
- * @generated
- */
- int CUSTOMIZATION_CONFIGURATION = 0;
-
- /**
- * The feature id for the '<em><b>Plugin</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOMIZATION_CONFIGURATION__PLUGIN = 0;
-
- /**
- * The feature id for the '<em><b>Elements</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOMIZATION_CONFIGURATION__ELEMENTS = 1;
-
- /**
- * The number of structural features of the '<em>Customization Configuration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOMIZATION_CONFIGURATION_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizableElementImpl <em>Customizable Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizableElementImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizableElement()
- * @generated
- */
- int CUSTOMIZABLE_ELEMENT = 1;
-
- /**
- * The number of structural features of the '<em>Customizable Element</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOMIZABLE_ELEMENT_FEATURE_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl <em>File Based Customizable Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getFileBasedCustomizableElement()
- * @generated
- */
- int FILE_BASED_CUSTOMIZABLE_ELEMENT = 2;
-
- /**
- * The feature id for the '<em><b>File</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE = CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>File Based Customizable Element</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT = CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewImpl <em>Property View</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyView()
- * @generated
- */
- int PROPERTY_VIEW = 3;
-
- /**
- * The feature id for the '<em><b>File</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_VIEW__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
-
- /**
- * The number of structural features of the '<em>Property View</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_VIEW_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl <em>UI Custom</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUICustom()
- * @generated
- */
- int UI_CUSTOM = 4;
-
- /**
- * The feature id for the '<em><b>File</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UI_CUSTOM__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
-
- /**
- * The feature id for the '<em><b>Load By Default</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UI_CUSTOM__LOAD_BY_DEFAULT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>UI Custom</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UI_CUSTOM_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl <em>Model Template</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getModelTemplate()
- * @generated
- */
- int MODEL_TEMPLATE = 5;
-
- /**
- * The feature id for the '<em><b>File</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL_TEMPLATE__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
-
- /**
- * The feature id for the '<em><b>Language</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL_TEMPLATE__LANGUAGE = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL_TEMPLATE__NAME = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL_TEMPLATE__ID = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>Model Template</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL_TEMPLATE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl <em>Palette</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPalette()
- * @generated
- */
- int PALETTE = 6;
-
- /**
- * The feature id for the '<em><b>File</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PALETTE__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
-
- /**
- * 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;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl <em>Profile</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getProfile()
- * @generated
- */
- int PROFILE = 7;
-
- /**
- * The feature id for the '<em><b>File</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
-
- /**
- * The feature id for the '<em><b>Qualifiednames</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE__QUALIFIEDNAMES = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Iconpath</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE__ICONPATH = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE__DESCRIPTION = 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 PROFILE__PROVIDER = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE__NAME = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 4;
-
- /**
- * The number of structural features of the '<em>Profile</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl <em>UML Model</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUMLModel()
- * @generated
- */
- int UML_MODEL = 8;
-
- /**
- * The feature id for the '<em><b>File</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_MODEL__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_MODEL__NAME = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Iconpath</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_MODEL__ICONPATH = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_MODEL__DESCRIPTION = 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 UML_MODEL__PROVIDER = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 3;
-
- /**
- * The number of structural features of the '<em>UML Model</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_MODEL_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 4;
-
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ConstraintsEnvironmentImpl <em>Constraints Environment</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ConstraintsEnvironmentImpl
- * @see org.eclipse.papyrus.toolsmiths.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 -->
- *
- * @generated
- * @ordered
- */
- int CONSTRAINTS_ENVIRONMENT_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewEnvironmentImpl <em>Property View Environment</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewEnvironmentImpl
- * @see org.eclipse.papyrus.toolsmiths.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.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationConfiguration
- * @generated
- */
- EClass getCustomizationConfiguration();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationConfiguration#getPlugin()
- * @see #getCustomizationConfiguration()
- * @generated
- */
- EAttribute getCustomizationConfiguration_Plugin();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationConfiguration#getElements()
- * @see #getCustomizationConfiguration()
- * @generated
- */
- EReference getCustomizationConfiguration_Elements();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizableElement
- * @generated
- */
- EClass getCustomizableElement();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.FileBasedCustomizableElement
- * @generated
- */
- EClass getFileBasedCustomizableElement();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.FileBasedCustomizableElement#getFile()
- * @see #getFileBasedCustomizableElement()
- * @generated
- */
- EAttribute getFileBasedCustomizableElement_File();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.PropertyView
- * @generated
- */
- EClass getPropertyView();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UICustom
- * @generated
- */
- EClass getUICustom();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UICustom#isLoadByDefault()
- * @see #getUICustom()
- * @generated
- */
- EAttribute getUICustom_LoadByDefault();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate
- * @generated
- */
- EClass getModelTemplate();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate#getLanguage()
- * @see #getModelTemplate()
- * @generated
- */
- EAttribute getModelTemplate_Language();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate#getName()
- * @see #getModelTemplate()
- * @generated
- */
- EAttribute getModelTemplate_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate#getId()
- * @see #getModelTemplate()
- * @generated
- */
- EAttribute getModelTemplate_Id();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Palette
- * @generated
- */
- EClass getPalette();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile
- * @generated
- */
- EClass getProfile();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getQualifiednames()
- * @see #getProfile()
- * @generated
- */
- EAttribute getProfile_Qualifiednames();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getIconpath()
- * @see #getProfile()
- * @generated
- */
- EAttribute getProfile_Iconpath();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getDescription()
- * @see #getProfile()
- * @generated
- */
- EAttribute getProfile_Description();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getProvider()
- * @see #getProfile()
- * @generated
- */
- EAttribute getProfile_Provider();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getName()
- * @see #getProfile()
- * @generated
- */
- EAttribute getProfile_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel
- * @generated
- */
- EClass getUMLModel();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel#getName()
- * @see #getUMLModel()
- * @generated
- */
- EAttribute getUMLModel_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel#getIconpath()
- * @see #getUMLModel()
- * @generated
- */
- EAttribute getUMLModel_Iconpath();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel#getDescription()
- * @see #getUMLModel()
- * @generated
- */
- EAttribute getUMLModel_Description();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel#getProvider()
- * @see #getUMLModel()
- * @generated
- */
- EAttribute getUMLModel_Provider();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ConstraintsEnvironment
- * @generated
- */
- EClass getConstraintsEnvironment();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.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
- */
- CustomizationPluginFactory getCustomizationPluginFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl <em>Customization Configuration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizationConfiguration()
- * @generated
- */
- EClass CUSTOMIZATION_CONFIGURATION = eINSTANCE.getCustomizationConfiguration();
-
- /**
- * The meta object literal for the '<em><b>Plugin</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CUSTOMIZATION_CONFIGURATION__PLUGIN = eINSTANCE.getCustomizationConfiguration_Plugin();
-
- /**
- * The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference CUSTOMIZATION_CONFIGURATION__ELEMENTS = eINSTANCE.getCustomizationConfiguration_Elements();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizableElementImpl <em>Customizable Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizableElementImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizableElement()
- * @generated
- */
- EClass CUSTOMIZABLE_ELEMENT = eINSTANCE.getCustomizableElement();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl <em>File Based Customizable Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getFileBasedCustomizableElement()
- * @generated
- */
- EClass FILE_BASED_CUSTOMIZABLE_ELEMENT = eINSTANCE.getFileBasedCustomizableElement();
-
- /**
- * The meta object literal for the '<em><b>File</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE = eINSTANCE.getFileBasedCustomizableElement_File();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewImpl <em>Property View</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyView()
- * @generated
- */
- EClass PROPERTY_VIEW = eINSTANCE.getPropertyView();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl <em>UI Custom</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUICustom()
- * @generated
- */
- EClass UI_CUSTOM = eINSTANCE.getUICustom();
-
- /**
- * The meta object literal for the '<em><b>Load By Default</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UI_CUSTOM__LOAD_BY_DEFAULT = eINSTANCE.getUICustom_LoadByDefault();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl <em>Model Template</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getModelTemplate()
- * @generated
- */
- EClass MODEL_TEMPLATE = eINSTANCE.getModelTemplate();
-
- /**
- * The meta object literal for the '<em><b>Language</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MODEL_TEMPLATE__LANGUAGE = eINSTANCE.getModelTemplate_Language();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MODEL_TEMPLATE__NAME = eINSTANCE.getModelTemplate_Name();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MODEL_TEMPLATE__ID = eINSTANCE.getModelTemplate_Id();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl <em>Palette</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPalette()
- * @generated
- */
- EClass PALETTE = eINSTANCE.getPalette();
-
- /**
- * 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 -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getProfile()
- * @generated
- */
- EClass PROFILE = eINSTANCE.getProfile();
-
- /**
- * The meta object literal for the '<em><b>Qualifiednames</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROFILE__QUALIFIEDNAMES = eINSTANCE.getProfile_Qualifiednames();
-
- /**
- * The meta object literal for the '<em><b>Iconpath</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROFILE__ICONPATH = eINSTANCE.getProfile_Iconpath();
-
- /**
- * The meta object literal for the '<em><b>Description</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROFILE__DESCRIPTION = eINSTANCE.getProfile_Description();
-
- /**
- * The meta object literal for the '<em><b>Provider</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROFILE__PROVIDER = eINSTANCE.getProfile_Provider();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROFILE__NAME = eINSTANCE.getProfile_Name();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl <em>UML Model</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUMLModel()
- * @generated
- */
- EClass UML_MODEL = eINSTANCE.getUMLModel();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_MODEL__NAME = eINSTANCE.getUMLModel_Name();
-
- /**
- * The meta object literal for the '<em><b>Iconpath</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_MODEL__ICONPATH = eINSTANCE.getUMLModel_Iconpath();
-
- /**
- * The meta object literal for the '<em><b>Description</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_MODEL__DESCRIPTION = eINSTANCE.getUMLModel_Description();
-
- /**
- * The meta object literal for the '<em><b>Provider</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_MODEL__PROVIDER = eINSTANCE.getUMLModel_Provider();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ConstraintsEnvironmentImpl <em>Constraints Environment</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ConstraintsEnvironmentImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getConstraintsEnvironment()
- * @generated
- */
- EClass CONSTRAINTS_ENVIRONMENT = eINSTANCE.getConstraintsEnvironment();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewEnvironmentImpl <em>Property View Environment</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewEnvironmentImpl
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyViewEnvironment()
- * @generated
- */
- EClass PROPERTY_VIEW_ENVIRONMENT = eINSTANCE.getPropertyViewEnvironment();
-
- }
-
-} // CustomizationPluginPackage
+/** + * 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.toolsmiths.model.customizationplugin; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginFactory + * @model kind="package" + * @generated + */ +public interface CustomizationPluginPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "customizationplugin"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/customization"; //$NON-NLS-1$ + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "custom"; //$NON-NLS-1$ + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + CustomizationPluginPackage eINSTANCE = org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl <em>Customization Configuration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizationConfiguration() + * @generated + */ + int CUSTOMIZATION_CONFIGURATION = 0; + + /** + * The feature id for the '<em><b>Plugin</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CUSTOMIZATION_CONFIGURATION__PLUGIN = 0; + + /** + * The feature id for the '<em><b>Elements</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CUSTOMIZATION_CONFIGURATION__ELEMENTS = 1; + + /** + * The number of structural features of the '<em>Customization Configuration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CUSTOMIZATION_CONFIGURATION_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizableElementImpl <em>Customizable Element</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizableElementImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizableElement() + * @generated + */ + int CUSTOMIZABLE_ELEMENT = 1; + + /** + * The number of structural features of the '<em>Customizable Element</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CUSTOMIZABLE_ELEMENT_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl <em>File Based Customizable Element</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getFileBasedCustomizableElement() + * @generated + */ + int FILE_BASED_CUSTOMIZABLE_ELEMENT = 2; + + /** + * The feature id for the '<em><b>File</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE = CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>File Based Customizable Element</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT = CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewImpl <em>Property View</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyView() + * @generated + */ + int PROPERTY_VIEW = 3; + + /** + * The feature id for the '<em><b>File</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROPERTY_VIEW__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE; + + /** + * The number of structural features of the '<em>Property View</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROPERTY_VIEW_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl <em>UI Custom</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUICustom() + * @generated + */ + int UI_CUSTOM = 4; + + /** + * The feature id for the '<em><b>File</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UI_CUSTOM__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE; + + /** + * The feature id for the '<em><b>Load By Default</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UI_CUSTOM__LOAD_BY_DEFAULT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>UI Custom</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UI_CUSTOM_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl <em>Model Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getModelTemplate() + * @generated + */ + int MODEL_TEMPLATE = 5; + + /** + * The feature id for the '<em><b>File</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODEL_TEMPLATE__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE; + + /** + * The feature id for the '<em><b>Language</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODEL_TEMPLATE__LANGUAGE = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODEL_TEMPLATE__NAME = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODEL_TEMPLATE__ID = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>Model Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODEL_TEMPLATE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl <em>Palette</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPalette() + * @generated + */ + int PALETTE = 6; + + /** + * The feature id for the '<em><b>File</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PALETTE__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE; + + /** + * 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; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl <em>Profile</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getProfile() + * @generated + */ + int PROFILE = 7; + + /** + * The feature id for the '<em><b>File</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROFILE__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE; + + /** + * The feature id for the '<em><b>Qualifiednames</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROFILE__QUALIFIEDNAMES = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Iconpath</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROFILE__ICONPATH = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROFILE__DESCRIPTION = 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 PROFILE__PROVIDER = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROFILE__NAME = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Profile</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROFILE_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl <em>UML Model</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUMLModel() + * @generated + */ + int UML_MODEL = 8; + + /** + * The feature id for the '<em><b>File</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UML_MODEL__FILE = FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UML_MODEL__NAME = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Iconpath</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UML_MODEL__ICONPATH = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UML_MODEL__DESCRIPTION = 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 UML_MODEL__PROVIDER = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>UML Model</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UML_MODEL_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ConstraintsEnvironmentImpl <em>Constraints Environment</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ConstraintsEnvironmentImpl + * @see org.eclipse.papyrus.toolsmiths.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 --> + * @generated + * @ordered + */ + int CONSTRAINTS_ENVIRONMENT_FEATURE_COUNT = FILE_BASED_CUSTOMIZABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewEnvironmentImpl <em>Property View Environment</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewEnvironmentImpl + * @see org.eclipse.papyrus.toolsmiths.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.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationConfiguration + * @generated + */ + EClass getCustomizationConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationConfiguration#getPlugin() + * @see #getCustomizationConfiguration() + * @generated + */ + EAttribute getCustomizationConfiguration_Plugin(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationConfiguration#getElements() + * @see #getCustomizationConfiguration() + * @generated + */ + EReference getCustomizationConfiguration_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizableElement + * @generated + */ + EClass getCustomizableElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.FileBasedCustomizableElement + * @generated + */ + EClass getFileBasedCustomizableElement(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.FileBasedCustomizableElement#getFile() + * @see #getFileBasedCustomizableElement() + * @generated + */ + EAttribute getFileBasedCustomizableElement_File(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.PropertyView + * @generated + */ + EClass getPropertyView(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UICustom + * @generated + */ + EClass getUICustom(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UICustom#isLoadByDefault() + * @see #getUICustom() + * @generated + */ + EAttribute getUICustom_LoadByDefault(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate + * @generated + */ + EClass getModelTemplate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate#getLanguage() + * @see #getModelTemplate() + * @generated + */ + EAttribute getModelTemplate_Language(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate#getName() + * @see #getModelTemplate() + * @generated + */ + EAttribute getModelTemplate_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate#getId() + * @see #getModelTemplate() + * @generated + */ + EAttribute getModelTemplate_Id(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Palette + * @generated + */ + EClass getPalette(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile + * @generated + */ + EClass getProfile(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getQualifiednames() + * @see #getProfile() + * @generated + */ + EAttribute getProfile_Qualifiednames(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getIconpath() + * @see #getProfile() + * @generated + */ + EAttribute getProfile_Iconpath(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getDescription() + * @see #getProfile() + * @generated + */ + EAttribute getProfile_Description(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getProvider() + * @see #getProfile() + * @generated + */ + EAttribute getProfile_Provider(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile#getName() + * @see #getProfile() + * @generated + */ + EAttribute getProfile_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel + * @generated + */ + EClass getUMLModel(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel#getName() + * @see #getUMLModel() + * @generated + */ + EAttribute getUMLModel_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel#getIconpath() + * @see #getUMLModel() + * @generated + */ + EAttribute getUMLModel_Iconpath(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel#getDescription() + * @see #getUMLModel() + * @generated + */ + EAttribute getUMLModel_Description(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel#getProvider() + * @see #getUMLModel() + * @generated + */ + EAttribute getUMLModel_Provider(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ConstraintsEnvironment + * @generated + */ + EClass getConstraintsEnvironment(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.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 + */ + CustomizationPluginFactory getCustomizationPluginFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl <em>Customization Configuration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizationConfiguration() + * @generated + */ + EClass CUSTOMIZATION_CONFIGURATION = eINSTANCE.getCustomizationConfiguration(); + + /** + * The meta object literal for the '<em><b>Plugin</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CUSTOMIZATION_CONFIGURATION__PLUGIN = eINSTANCE.getCustomizationConfiguration_Plugin(); + + /** + * The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CUSTOMIZATION_CONFIGURATION__ELEMENTS = eINSTANCE.getCustomizationConfiguration_Elements(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizableElementImpl <em>Customizable Element</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizableElementImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getCustomizableElement() + * @generated + */ + EClass CUSTOMIZABLE_ELEMENT = eINSTANCE.getCustomizableElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl <em>File Based Customizable Element</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getFileBasedCustomizableElement() + * @generated + */ + EClass FILE_BASED_CUSTOMIZABLE_ELEMENT = eINSTANCE.getFileBasedCustomizableElement(); + + /** + * The meta object literal for the '<em><b>File</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE = eINSTANCE.getFileBasedCustomizableElement_File(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewImpl <em>Property View</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyView() + * @generated + */ + EClass PROPERTY_VIEW = eINSTANCE.getPropertyView(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl <em>UI Custom</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUICustom() + * @generated + */ + EClass UI_CUSTOM = eINSTANCE.getUICustom(); + + /** + * The meta object literal for the '<em><b>Load By Default</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute UI_CUSTOM__LOAD_BY_DEFAULT = eINSTANCE.getUICustom_LoadByDefault(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl <em>Model Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getModelTemplate() + * @generated + */ + EClass MODEL_TEMPLATE = eINSTANCE.getModelTemplate(); + + /** + * The meta object literal for the '<em><b>Language</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MODEL_TEMPLATE__LANGUAGE = eINSTANCE.getModelTemplate_Language(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MODEL_TEMPLATE__NAME = eINSTANCE.getModelTemplate_Name(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MODEL_TEMPLATE__ID = eINSTANCE.getModelTemplate_Id(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl <em>Palette</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PaletteImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPalette() + * @generated + */ + EClass PALETTE = eINSTANCE.getPalette(); + + /** + * 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 --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getProfile() + * @generated + */ + EClass PROFILE = eINSTANCE.getProfile(); + + /** + * The meta object literal for the '<em><b>Qualifiednames</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PROFILE__QUALIFIEDNAMES = eINSTANCE.getProfile_Qualifiednames(); + + /** + * The meta object literal for the '<em><b>Iconpath</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PROFILE__ICONPATH = eINSTANCE.getProfile_Iconpath(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PROFILE__DESCRIPTION = eINSTANCE.getProfile_Description(); + + /** + * The meta object literal for the '<em><b>Provider</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PROFILE__PROVIDER = eINSTANCE.getProfile_Provider(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PROFILE__NAME = eINSTANCE.getProfile_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl <em>UML Model</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getUMLModel() + * @generated + */ + EClass UML_MODEL = eINSTANCE.getUMLModel(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute UML_MODEL__NAME = eINSTANCE.getUMLModel_Name(); + + /** + * The meta object literal for the '<em><b>Iconpath</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute UML_MODEL__ICONPATH = eINSTANCE.getUMLModel_Iconpath(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute UML_MODEL__DESCRIPTION = eINSTANCE.getUMLModel_Description(); + + /** + * The meta object literal for the '<em><b>Provider</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute UML_MODEL__PROVIDER = eINSTANCE.getUMLModel_Provider(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ConstraintsEnvironmentImpl <em>Constraints Environment</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ConstraintsEnvironmentImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getConstraintsEnvironment() + * @generated + */ + EClass CONSTRAINTS_ENVIRONMENT = eINSTANCE.getConstraintsEnvironment(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewEnvironmentImpl <em>Property View Environment</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.PropertyViewEnvironmentImpl + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationPluginPackageImpl#getPropertyViewEnvironment() + * @generated + */ + EClass PROPERTY_VIEW_ENVIRONMENT = eINSTANCE.getPropertyViewEnvironment(); + + } + +} //CustomizationPluginPackage diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/FileBasedCustomizableElement.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/FileBasedCustomizableElement.java index cf225f4158c..a7da9239f87 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/FileBasedCustomizableElement.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/FileBasedCustomizableElement.java @@ -1,60 +1,59 @@ -/*****************************************************************************
- * 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.toolsmiths.model.customizationplugin;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>File Based Customizable Element</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.FileBasedCustomizableElement#getFile <em>File</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getFileBasedCustomizableElement()
- * @model abstract="true"
- * @generated
- */
-public interface FileBasedCustomizableElement extends CustomizableElement {
- /**
- * Returns the value of the '<em><b>File</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>File</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>File</em>' attribute.
- * @see #setFile(String)
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getFileBasedCustomizableElement_File()
- * @model required="true"
- * @generated
- */
- String getFile();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getFile()
- * @generated
- */
- void setFile(String value);
-
-} // FileBasedCustomizableElement
+/** + * 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.toolsmiths.model.customizationplugin; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>File Based Customizable Element</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.FileBasedCustomizableElement#getFile <em>File</em>}</li> + * </ul> + * + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getFileBasedCustomizableElement() + * @model abstract="true" + * @generated + */ +public interface FileBasedCustomizableElement extends CustomizableElement { + /** + * Returns the value of the '<em><b>File</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>File</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>File</em>' attribute. + * @see #setFile(String) + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getFileBasedCustomizableElement_File() + * @model required="true" + * @generated + */ + String getFile(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getFile() + * @generated + */ + void setFile(String value); + +} // FileBasedCustomizableElement 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 cec2aa94486..10e62d14f0d 100644..100755 --- 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 @@ -1,120 +1,113 @@ -/*****************************************************************************
- * 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.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate#getLanguage <em>Language</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate#getId <em>Id</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Language()
- * @model
- * @generated
- */
- String getLanguage();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Id()
- * @model required="true"
- * @generated
- */
- String getId();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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
+/** + * 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.toolsmiths.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: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate#getLanguage <em>Language</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate#getId <em>Id</em>}</li> + * </ul> + * + * @see org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Language() + * @model + * @generated + */ + String getLanguage(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getModelTemplate_Id() + * @model required="true" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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/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 450ffbb45dd..4ed3dc081c2 100644..100755 --- 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 @@ -1,26 +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.toolsmiths.model.customizationplugin;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Palette</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette()
- * @model
- * @generated
- */
-public interface Palette extends FileBasedCustomizableElement {
-} // Palette
+/** + * 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.toolsmiths.model.customizationplugin; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Palette</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPalette() + * @model + * @generated + */ +public interface Palette extends FileBasedCustomizableElement { +} // Palette diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Profile.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Profile.java index 0bd42d2d68b..64b716cf64f 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Profile.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/Profile.java @@ -1,176 +1,167 @@ -/*****************************************************************************
- * 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.toolsmiths.model.customizationplugin;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Profile</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getQualifiednames <em>Qualifiednames</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getIconpath <em>Iconpath</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getProvider <em>Provider</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getProfile()
- * @model
- * @generated
- */
-public interface Profile extends FileBasedCustomizableElement {
- /**
- * Returns the value of the '<em><b>Qualifiednames</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Qualifiednames</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Qualifiednames</em>' attribute.
- * @see #setQualifiednames(String)
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getProfile_Qualifiednames()
- * @model
- * @generated
- */
- String getQualifiednames();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getQualifiednames()
- * @generated
- */
- void setQualifiednames(String value);
-
- /**
- * Returns the value of the '<em><b>Iconpath</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Iconpath</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Iconpath</em>' attribute.
- * @see #setIconpath(String)
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getProfile_Iconpath()
- * @model
- * @generated
- */
- String getIconpath();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getIconpath()
- * @generated
- */
- void setIconpath(String value);
-
- /**
- * Returns the value of the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Description</em>' attribute.
- * @see #setDescription(String)
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getProfile_Description()
- * @model
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getDescription()
- * @generated
- */
- void setDescription(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#getProfile_Provider()
- * @model
- * @generated
- */
- String getProvider();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getProvider()
- * @generated
- */
- void setProvider(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#getProfile_Name()
- * @model required="true"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
-} // Profile
+/** + * 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.toolsmiths.model.customizationplugin; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Profile</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getQualifiednames <em>Qualifiednames</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getIconpath <em>Iconpath</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getProvider <em>Provider</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile#getName <em>Name</em>}</li> + * </ul> + * + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getProfile() + * @model + * @generated + */ +public interface Profile extends FileBasedCustomizableElement { + /** + * Returns the value of the '<em><b>Qualifiednames</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Qualifiednames</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Qualifiednames</em>' attribute. + * @see #setQualifiednames(String) + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getProfile_Qualifiednames() + * @model + * @generated + */ + String getQualifiednames(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getQualifiednames() + * @generated + */ + void setQualifiednames(String value); + + /** + * Returns the value of the '<em><b>Iconpath</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Iconpath</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Iconpath</em>' attribute. + * @see #setIconpath(String) + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getProfile_Iconpath() + * @model + * @generated + */ + String getIconpath(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getIconpath() + * @generated + */ + void setIconpath(String value); + + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' attribute. + * @see #setDescription(String) + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getProfile_Description() + * @model + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getDescription() + * @generated + */ + void setDescription(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#getProfile_Provider() + * @model + * @generated + */ + String getProvider(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getProvider() + * @generated + */ + void setProvider(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#getProfile_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getName() + * @generated + */ + void setName(String value); + +} // Profile diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/PropertyView.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/PropertyView.java index 39b94e0f2e0..7898de4e5a9 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/PropertyView.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/PropertyView.java @@ -1,26 +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.toolsmiths.model.customizationplugin;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Property View</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPropertyView()
- * @model
- * @generated
- */
-public interface PropertyView extends FileBasedCustomizableElement {
-} // PropertyView
+/** + * 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.toolsmiths.model.customizationplugin; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Property View</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPropertyView() + * @model + * @generated + */ +public interface PropertyView extends FileBasedCustomizableElement { +} // PropertyView diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/PropertyViewEnvironment.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/PropertyViewEnvironment.java index c528723f0b9..b3a12beee2d 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/PropertyViewEnvironment.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/PropertyViewEnvironment.java @@ -1,17 +1,27 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPropertyViewEnvironment()
- * @model
- * @generated
- */
-public interface PropertyViewEnvironment extends FileBasedCustomizableElement {
-} // PropertyViewEnvironment
+/** + * 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.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getPropertyViewEnvironment() + * @model + * @generated + */ +public interface PropertyViewEnvironment extends FileBasedCustomizableElement { +} // PropertyViewEnvironment diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/UICustom.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/UICustom.java index 98db3423234..92eb516f527 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/UICustom.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/UICustom.java @@ -1,61 +1,60 @@ -/*****************************************************************************
- * 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.toolsmiths.model.customizationplugin;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UI Custom</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UICustom#isLoadByDefault <em>Load By Default</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUICustom()
- * @model
- * @generated
- */
-public interface UICustom extends FileBasedCustomizableElement {
- /**
- * Returns the value of the '<em><b>Load By Default</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Load By Default</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Load By Default</em>' attribute.
- * @see #setLoadByDefault(boolean)
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUICustom_LoadByDefault()
- * @model default="false"
- * @generated
- */
- boolean isLoadByDefault();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #isLoadByDefault()
- * @generated
- */
- void setLoadByDefault(boolean value);
-
-} // UICustom
+/** + * 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.toolsmiths.model.customizationplugin; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>UI Custom</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UICustom#isLoadByDefault <em>Load By Default</em>}</li> + * </ul> + * + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUICustom() + * @model + * @generated + */ +public interface UICustom extends FileBasedCustomizableElement { + /** + * Returns the value of the '<em><b>Load By Default</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Load By Default</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Load By Default</em>' attribute. + * @see #setLoadByDefault(boolean) + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUICustom_LoadByDefault() + * @model default="false" + * @generated + */ + boolean isLoadByDefault(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #isLoadByDefault() + * @generated + */ + void setLoadByDefault(boolean value); + +} // UICustom diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/UMLModel.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/UMLModel.java index 2997736bf4e..2a1dc07e8f5 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/UMLModel.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/UMLModel.java @@ -1,147 +1,140 @@ -/*****************************************************************************
- * 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.toolsmiths.model.customizationplugin;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML Model</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel#getIconpath <em>Iconpath</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel#getProvider <em>Provider</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUMLModel()
- * @model
- * @generated
- */
-public interface UMLModel extends FileBasedCustomizableElement {
- /**
- * 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#getUMLModel_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Iconpath</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Iconpath</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Iconpath</em>' attribute.
- * @see #setIconpath(String)
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUMLModel_Iconpath()
- * @model
- * @generated
- */
- String getIconpath();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getIconpath()
- * @generated
- */
- void setIconpath(String value);
-
- /**
- * Returns the value of the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Description</em>' attribute.
- * @see #setDescription(String)
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUMLModel_Description()
- * @model
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getDescription()
- * @generated
- */
- void setDescription(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#getUMLModel_Provider()
- * @model
- * @generated
- */
- String getProvider();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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.
- * @see #getProvider()
- * @generated
- */
- void setProvider(String value);
-
-} // UMLModel
+/** + * 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.toolsmiths.model.customizationplugin; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>UML Model</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel#getIconpath <em>Iconpath</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel#getProvider <em>Provider</em>}</li> + * </ul> + * + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUMLModel() + * @model + * @generated + */ +public interface UMLModel extends FileBasedCustomizableElement { + /** + * 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#getUMLModel_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Iconpath</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Iconpath</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Iconpath</em>' attribute. + * @see #setIconpath(String) + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUMLModel_Iconpath() + * @model + * @generated + */ + String getIconpath(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getIconpath() + * @generated + */ + void setIconpath(String value); + + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' attribute. + * @see #setDescription(String) + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#getUMLModel_Description() + * @model + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getDescription() + * @generated + */ + void setDescription(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#getUMLModel_Provider() + * @model + * @generated + */ + String getProvider(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.toolsmiths.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. + * @see #getProvider() + * @generated + */ + void setProvider(String value); + +} // UMLModel diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ConstraintsEnvironmentImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ConstraintsEnvironmentImpl.java index 0555a7d8fed..9cb50e68706 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ConstraintsEnvironmentImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ConstraintsEnvironmentImpl.java @@ -1,40 +1,47 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.ConstraintsEnvironment;
-import org.eclipse.papyrus.toolsmiths.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
+/** + * 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.toolsmiths.model.customizationplugin.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.ConstraintsEnvironment; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Constraints Environment</b></em>'. + * <!-- end-user-doc --> + * + * @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/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizableElementImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizableElementImpl.java index 96c300dcad5..b0d8aa773e3 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizableElementImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizableElementImpl.java @@ -1,41 +1,49 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizableElement;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Customizable Element</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public abstract class CustomizableElementImpl extends EObjectImpl implements CustomizableElement {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected CustomizableElementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.CUSTOMIZABLE_ELEMENT;
- }
-
-} // CustomizableElementImpl
+/** + * 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.toolsmiths.model.customizationplugin.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizableElement; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Customizable Element</b></em>'. + * <!-- end-user-doc --> + * + * @generated + */ +public abstract class CustomizableElementImpl extends EObjectImpl implements CustomizableElement { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CustomizableElementImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.CUSTOMIZABLE_ELEMENT; + } + +} //CustomizableElementImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationConfigurationImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationConfigurationImpl.java index 44448d32f5c..22145e37e25 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationConfigurationImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationConfigurationImpl.java @@ -1,234 +1,232 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizableElement;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-
-/**
- * <!-- begin-user-doc -->
- * 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.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl#getPlugin <em>Plugin</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl#getElements <em>Elements</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CustomizationConfigurationImpl extends EObjectImpl implements CustomizationConfiguration {
- /**
- * The default value of the '{@link #getPlugin() <em>Plugin</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPlugin()
- * @generated
- * @ordered
- */
- protected static final String PLUGIN_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPlugin() <em>Plugin</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPlugin()
- * @generated
- * @ordered
- */
- protected String plugin = PLUGIN_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getElements()
- * @generated
- * @ordered
- */
- protected EList<CustomizableElement> elements;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected CustomizationConfigurationImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.CUSTOMIZATION_CONFIGURATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getPlugin() {
- return plugin;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPlugin(String newPlugin) {
- String oldPlugin = plugin;
- plugin = newPlugin;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN, oldPlugin, plugin));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<CustomizableElement> getElements() {
- if (elements == null) {
- elements = new EObjectContainmentEList<CustomizableElement>(CustomizableElement.class, this, CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS);
- }
- return elements;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
- return ((InternalEList<?>) getElements()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
- return getPlugin();
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
- return getElements();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
- setPlugin((String) newValue);
- return;
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
- getElements().clear();
- getElements().addAll((Collection<? extends CustomizableElement>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
- setPlugin(PLUGIN_EDEFAULT);
- return;
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
- getElements().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN:
- return PLUGIN_EDEFAULT == null ? plugin != null : !PLUGIN_EDEFAULT.equals(plugin);
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS:
- return elements != null && !elements.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (plugin: ");
- result.append(plugin);
- result.append(')');
- return result.toString();
- }
-
-} // CustomizationConfigurationImpl
+/** + * 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.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizableElement; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Customization Configuration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl#getPlugin <em>Plugin</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.CustomizationConfigurationImpl#getElements <em>Elements</em>}</li> + * </ul> + * + * @generated + */ +public class CustomizationConfigurationImpl extends EObjectImpl implements CustomizationConfiguration { + /** + * The default value of the '{@link #getPlugin() <em>Plugin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPlugin() + * @generated + * @ordered + */ + protected static final String PLUGIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPlugin() <em>Plugin</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPlugin() + * @generated + * @ordered + */ + protected String plugin = PLUGIN_EDEFAULT; + + /** + * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getElements() + * @generated + * @ordered + */ + protected EList<CustomizableElement> elements; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CustomizationConfigurationImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.CUSTOMIZATION_CONFIGURATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPlugin() { + return plugin; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPlugin(String newPlugin) { + String oldPlugin = plugin; + plugin = newPlugin; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN, oldPlugin, plugin)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<CustomizableElement> getElements() { + if (elements == null) { + elements = new EObjectContainmentEList<CustomizableElement>(CustomizableElement.class, this, CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS); + } + return elements; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS: + return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN: + return getPlugin(); + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN: + setPlugin((String)newValue); + return; + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection<? extends CustomizableElement>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN: + setPlugin(PLUGIN_EDEFAULT); + return; + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__PLUGIN: + return PLUGIN_EDEFAULT == null ? plugin != null : !PLUGIN_EDEFAULT.equals(plugin); + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (plugin: "); //$NON-NLS-1$ + result.append(plugin); + result.append(')'); + return result.toString(); + } + +} //CustomizationConfigurationImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginFactoryImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginFactoryImpl.java index 861221ded58..17540dbcf8d 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginFactoryImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/CustomizationPluginFactoryImpl.java @@ -1,213 +1,193 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ConstraintsEnvironment;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginFactory;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyView;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyViewEnvironment;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UICustom;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class CustomizationPluginFactoryImpl extends EFactoryImpl implements CustomizationPluginFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static CustomizationPluginFactory init() {
- try {
- 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 CustomizationPluginFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public CustomizationPluginFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- 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();
- case CustomizationPluginPackage.CONSTRAINTS_ENVIRONMENT:
- return createConstraintsEnvironment();
- case CustomizationPluginPackage.PROPERTY_VIEW_ENVIRONMENT:
- return createPropertyViewEnvironment();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public CustomizationConfiguration createCustomizationConfiguration() {
- CustomizationConfigurationImpl customizationConfiguration = new CustomizationConfigurationImpl();
- return customizationConfiguration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PropertyView createPropertyView() {
- PropertyViewImpl propertyView = new PropertyViewImpl();
- return propertyView;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UICustom createUICustom() {
- UICustomImpl uiCustom = new UICustomImpl();
- return uiCustom;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModelTemplate createModelTemplate() {
- ModelTemplateImpl modelTemplate = new ModelTemplateImpl();
- return modelTemplate;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Palette createPalette() {
- PaletteImpl palette = new PaletteImpl();
- return palette;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Profile createProfile() {
- ProfileImpl profile = new ProfileImpl();
- return profile;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UMLModel createUMLModel() {
- UMLModelImpl umlModel = new UMLModelImpl();
- return umlModel;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- 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();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static CustomizationPluginPackage getPackage() {
- return CustomizationPluginPackage.eINSTANCE;
- }
-
-} // CustomizationPluginFactoryImpl
+/** + * 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.toolsmiths.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.toolsmiths.model.customizationplugin.*; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class CustomizationPluginFactoryImpl extends EFactoryImpl implements CustomizationPluginFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static CustomizationPluginFactory init() { + try { + CustomizationPluginFactory theCustomizationPluginFactory = (CustomizationPluginFactory)EPackage.Registry.INSTANCE.getEFactory(CustomizationPluginPackage.eNS_URI); + if (theCustomizationPluginFactory != null) { + return theCustomizationPluginFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new CustomizationPluginFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CustomizationPluginFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + 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(); + case CustomizationPluginPackage.CONSTRAINTS_ENVIRONMENT: return createConstraintsEnvironment(); + case CustomizationPluginPackage.PROPERTY_VIEW_ENVIRONMENT: return createPropertyViewEnvironment(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CustomizationConfiguration createCustomizationConfiguration() { + CustomizationConfigurationImpl customizationConfiguration = new CustomizationConfigurationImpl(); + return customizationConfiguration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PropertyView createPropertyView() { + PropertyViewImpl propertyView = new PropertyViewImpl(); + return propertyView; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public UICustom createUICustom() { + UICustomImpl uiCustom = new UICustomImpl(); + return uiCustom; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ModelTemplate createModelTemplate() { + ModelTemplateImpl modelTemplate = new ModelTemplateImpl(); + return modelTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Palette createPalette() { + PaletteImpl palette = new PaletteImpl(); + return palette; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Profile createProfile() { + ProfileImpl profile = new ProfileImpl(); + return profile; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public UMLModel createUMLModel() { + UMLModelImpl umlModel = new UMLModelImpl(); + return umlModel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + 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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static CustomizationPluginPackage getPackage() { + return CustomizationPluginPackage.eINSTANCE; + } + +} //CustomizationPluginFactoryImpl 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 e070e868bdc..7a4fb103113 100644..100755 --- 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 @@ -1,609 +1,572 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ConstraintsEnvironment;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizableElement;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginFactory;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.FileBasedCustomizableElement;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyView;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyViewEnvironment;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UICustom;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class CustomizationPluginPackageImpl extends EPackageImpl implements CustomizationPluginPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass customizationConfigurationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass customizableElementEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass fileBasedCustomizableElementEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass propertyViewEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass uiCustomEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass modelTemplateEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass paletteEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass profileEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- 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.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private CustomizationPluginPackageImpl() {
- super(eNS_URI, CustomizationPluginFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>
- * This method is used to initialize {@link 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 -->
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static CustomizationPluginPackage init() {
- if (isInited) {
- return (CustomizationPluginPackage) EPackage.Registry.INSTANCE.getEPackage(CustomizationPluginPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- 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
- theCustomizationPluginPackage.createPackageContents();
-
- // Initialize created meta-data
- theCustomizationPluginPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theCustomizationPluginPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(CustomizationPluginPackage.eNS_URI, theCustomizationPluginPackage);
- return theCustomizationPluginPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getCustomizationConfiguration() {
- return customizationConfigurationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getCustomizationConfiguration_Plugin() {
- return (EAttribute) customizationConfigurationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getCustomizationConfiguration_Elements() {
- return (EReference) customizationConfigurationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getCustomizableElement() {
- return customizableElementEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getFileBasedCustomizableElement() {
- return fileBasedCustomizableElementEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getFileBasedCustomizableElement_File() {
- return (EAttribute) fileBasedCustomizableElementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getPropertyView() {
- return propertyViewEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getUICustom() {
- return uiCustomEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getUICustom_LoadByDefault() {
- return (EAttribute) uiCustomEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getModelTemplate() {
- return modelTemplateEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getModelTemplate_Language() {
- return (EAttribute) modelTemplateEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getModelTemplate_Name() {
- return (EAttribute) modelTemplateEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getModelTemplate_Id() {
- return (EAttribute) modelTemplateEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getPalette() {
- return paletteEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getProfile() {
- return profileEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getProfile_Qualifiednames() {
- return (EAttribute) profileEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getProfile_Iconpath() {
- return (EAttribute) profileEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getProfile_Description() {
- return (EAttribute) profileEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getProfile_Provider() {
- return (EAttribute) profileEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getProfile_Name() {
- return (EAttribute) profileEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getUMLModel() {
- return umlModelEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getUMLModel_Name() {
- return (EAttribute) umlModelEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getUMLModel_Iconpath() {
- return (EAttribute) umlModelEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getUMLModel_Description() {
- return (EAttribute) umlModelEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getUMLModel_Provider() {
- return (EAttribute) umlModelEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- 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();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) {
- return;
- }
- isCreated = true;
-
- // Create classes and their features
- customizationConfigurationEClass = createEClass(CUSTOMIZATION_CONFIGURATION);
- createEAttribute(customizationConfigurationEClass, CUSTOMIZATION_CONFIGURATION__PLUGIN);
- createEReference(customizationConfigurationEClass, CUSTOMIZATION_CONFIGURATION__ELEMENTS);
-
- customizableElementEClass = createEClass(CUSTOMIZABLE_ELEMENT);
-
- fileBasedCustomizableElementEClass = createEClass(FILE_BASED_CUSTOMIZABLE_ELEMENT);
- createEAttribute(fileBasedCustomizableElementEClass, FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE);
-
- propertyViewEClass = createEClass(PROPERTY_VIEW);
-
- uiCustomEClass = createEClass(UI_CUSTOM);
- createEAttribute(uiCustomEClass, UI_CUSTOM__LOAD_BY_DEFAULT);
-
- modelTemplateEClass = createEClass(MODEL_TEMPLATE);
- createEAttribute(modelTemplateEClass, MODEL_TEMPLATE__LANGUAGE);
- createEAttribute(modelTemplateEClass, MODEL_TEMPLATE__NAME);
- createEAttribute(modelTemplateEClass, MODEL_TEMPLATE__ID);
-
- paletteEClass = createEClass(PALETTE);
-
- profileEClass = createEClass(PROFILE);
- createEAttribute(profileEClass, PROFILE__QUALIFIEDNAMES);
- createEAttribute(profileEClass, PROFILE__ICONPATH);
- createEAttribute(profileEClass, PROFILE__DESCRIPTION);
- createEAttribute(profileEClass, PROFILE__PROVIDER);
- createEAttribute(profileEClass, PROFILE__NAME);
-
- umlModelEClass = createEClass(UML_MODEL);
- createEAttribute(umlModelEClass, UML_MODEL__NAME);
- createEAttribute(umlModelEClass, UML_MODEL__ICONPATH);
- createEAttribute(umlModelEClass, UML_MODEL__DESCRIPTION);
- createEAttribute(umlModelEClass, UML_MODEL__PROVIDER);
-
- constraintsEnvironmentEClass = createEClass(CONSTRAINTS_ENVIRONMENT);
-
- propertyViewEnvironmentEClass = createEClass(PROPERTY_VIEW_ENVIRONMENT);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) {
- return;
- }
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- fileBasedCustomizableElementEClass.getESuperTypes().add(this.getCustomizableElement());
- propertyViewEClass.getESuperTypes().add(this.getFileBasedCustomizableElement());
- uiCustomEClass.getESuperTypes().add(this.getFileBasedCustomizableElement());
- modelTemplateEClass.getESuperTypes().add(this.getFileBasedCustomizableElement());
- paletteEClass.getESuperTypes().add(this.getFileBasedCustomizableElement());
- profileEClass.getESuperTypes().add(this.getFileBasedCustomizableElement());
- umlModelEClass.getESuperTypes().add(this.getFileBasedCustomizableElement());
- constraintsEnvironmentEClass.getESuperTypes().add(this.getFileBasedCustomizableElement());
- propertyViewEnvironmentEClass.getESuperTypes().add(this.getFileBasedCustomizableElement());
-
- // Initialize classes and features; add operations and parameters
- initEClass(customizationConfigurationEClass, CustomizationConfiguration.class, "CustomizationConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getCustomizationConfiguration_Plugin(), ecorePackage.getEString(), "plugin", null, 1, 1, CustomizationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getCustomizationConfiguration_Elements(), this.getCustomizableElement(), null, "elements", null, 0, -1, CustomizationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(customizableElementEClass, CustomizableElement.class, "CustomizableElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(fileBasedCustomizableElementEClass, FileBasedCustomizableElement.class, "FileBasedCustomizableElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getFileBasedCustomizableElement_File(), ecorePackage.getEString(), "file", null, 1, 1, FileBasedCustomizableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(propertyViewEClass, PropertyView.class, "PropertyView", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(uiCustomEClass, UICustom.class, "UICustom", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getUICustom_LoadByDefault(), ecorePackage.getEBoolean(), "loadByDefault", "false", 0, 1, UICustom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(modelTemplateEClass, ModelTemplate.class, "ModelTemplate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- 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);
- 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);
- 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);
-
- initEClass(paletteEClass, Palette.class, "Palette", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(profileEClass, Profile.class, "Profile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- 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);
- initEAttribute(getProfile_Iconpath(), ecorePackage.getEString(), "iconpath", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getProfile_Description(), ecorePackage.getEString(), "description", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getProfile_Provider(), ecorePackage.getEString(), "provider", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getProfile_Name(), ecorePackage.getEString(), "name", null, 1, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(umlModelEClass, UMLModel.class, "UMLModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getUMLModel_Name(), ecorePackage.getEString(), "name", null, 0, 1, UMLModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getUMLModel_Iconpath(), ecorePackage.getEString(), "iconpath", null, 0, 1, UMLModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getUMLModel_Description(), ecorePackage.getEString(), "description", null, 0, 1, UMLModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getUMLModel_Provider(), ecorePackage.getEString(), "provider", null, 0, 1, UMLModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(constraintsEnvironmentEClass, ConstraintsEnvironment.class, "ConstraintsEnvironment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(propertyViewEnvironmentEClass, PropertyViewEnvironment.class, "PropertyViewEnvironment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // CustomizationPluginPackageImpl
+/** + * 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.toolsmiths.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.toolsmiths.model.customizationplugin.ConstraintsEnvironment; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizableElement; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginFactory; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.FileBasedCustomizableElement; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyView; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyViewEnvironment; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UICustom; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class CustomizationPluginPackageImpl extends EPackageImpl implements CustomizationPluginPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass customizationConfigurationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass customizableElementEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass fileBasedCustomizableElementEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass propertyViewEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass uiCustomEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass modelTemplateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass paletteEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass profileEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + 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. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage#eNS_URI + * @see #init() + * @generated + */ + private CustomizationPluginPackageImpl() { + super(eNS_URI, CustomizationPluginFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>This method is used to initialize {@link 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 --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CustomizationPluginPackage init() { + if (isInited) return (CustomizationPluginPackage)EPackage.Registry.INSTANCE.getEPackage(CustomizationPluginPackage.eNS_URI); + + // Obtain or create and register package + 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 + theCustomizationPluginPackage.createPackageContents(); + + // Initialize created meta-data + theCustomizationPluginPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCustomizationPluginPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CustomizationPluginPackage.eNS_URI, theCustomizationPluginPackage); + return theCustomizationPluginPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCustomizationConfiguration() { + return customizationConfigurationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCustomizationConfiguration_Plugin() { + return (EAttribute)customizationConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCustomizationConfiguration_Elements() { + return (EReference)customizationConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCustomizableElement() { + return customizableElementEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFileBasedCustomizableElement() { + return fileBasedCustomizableElementEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFileBasedCustomizableElement_File() { + return (EAttribute)fileBasedCustomizableElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPropertyView() { + return propertyViewEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getUICustom() { + return uiCustomEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getUICustom_LoadByDefault() { + return (EAttribute)uiCustomEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getModelTemplate() { + return modelTemplateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getModelTemplate_Language() { + return (EAttribute)modelTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getModelTemplate_Name() { + return (EAttribute)modelTemplateEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getModelTemplate_Id() { + return (EAttribute)modelTemplateEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPalette() { + return paletteEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getProfile() { + return profileEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getProfile_Qualifiednames() { + return (EAttribute)profileEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getProfile_Iconpath() { + return (EAttribute)profileEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getProfile_Description() { + return (EAttribute)profileEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getProfile_Provider() { + return (EAttribute)profileEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getProfile_Name() { + return (EAttribute)profileEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getUMLModel() { + return umlModelEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getUMLModel_Name() { + return (EAttribute)umlModelEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getUMLModel_Iconpath() { + return (EAttribute)umlModelEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getUMLModel_Description() { + return (EAttribute)umlModelEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getUMLModel_Provider() { + return (EAttribute)umlModelEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + 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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + customizationConfigurationEClass = createEClass(CUSTOMIZATION_CONFIGURATION); + createEAttribute(customizationConfigurationEClass, CUSTOMIZATION_CONFIGURATION__PLUGIN); + createEReference(customizationConfigurationEClass, CUSTOMIZATION_CONFIGURATION__ELEMENTS); + + customizableElementEClass = createEClass(CUSTOMIZABLE_ELEMENT); + + fileBasedCustomizableElementEClass = createEClass(FILE_BASED_CUSTOMIZABLE_ELEMENT); + createEAttribute(fileBasedCustomizableElementEClass, FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE); + + propertyViewEClass = createEClass(PROPERTY_VIEW); + + uiCustomEClass = createEClass(UI_CUSTOM); + createEAttribute(uiCustomEClass, UI_CUSTOM__LOAD_BY_DEFAULT); + + modelTemplateEClass = createEClass(MODEL_TEMPLATE); + createEAttribute(modelTemplateEClass, MODEL_TEMPLATE__LANGUAGE); + createEAttribute(modelTemplateEClass, MODEL_TEMPLATE__NAME); + createEAttribute(modelTemplateEClass, MODEL_TEMPLATE__ID); + + paletteEClass = createEClass(PALETTE); + + profileEClass = createEClass(PROFILE); + createEAttribute(profileEClass, PROFILE__QUALIFIEDNAMES); + createEAttribute(profileEClass, PROFILE__ICONPATH); + createEAttribute(profileEClass, PROFILE__DESCRIPTION); + createEAttribute(profileEClass, PROFILE__PROVIDER); + createEAttribute(profileEClass, PROFILE__NAME); + + umlModelEClass = createEClass(UML_MODEL); + createEAttribute(umlModelEClass, UML_MODEL__NAME); + createEAttribute(umlModelEClass, UML_MODEL__ICONPATH); + createEAttribute(umlModelEClass, UML_MODEL__DESCRIPTION); + createEAttribute(umlModelEClass, UML_MODEL__PROVIDER); + + constraintsEnvironmentEClass = createEClass(CONSTRAINTS_ENVIRONMENT); + + propertyViewEnvironmentEClass = createEClass(PROPERTY_VIEW_ENVIRONMENT); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + fileBasedCustomizableElementEClass.getESuperTypes().add(this.getCustomizableElement()); + propertyViewEClass.getESuperTypes().add(this.getFileBasedCustomizableElement()); + uiCustomEClass.getESuperTypes().add(this.getFileBasedCustomizableElement()); + modelTemplateEClass.getESuperTypes().add(this.getFileBasedCustomizableElement()); + paletteEClass.getESuperTypes().add(this.getFileBasedCustomizableElement()); + profileEClass.getESuperTypes().add(this.getFileBasedCustomizableElement()); + umlModelEClass.getESuperTypes().add(this.getFileBasedCustomizableElement()); + constraintsEnvironmentEClass.getESuperTypes().add(this.getFileBasedCustomizableElement()); + propertyViewEnvironmentEClass.getESuperTypes().add(this.getFileBasedCustomizableElement()); + + // Initialize classes and features; add operations and parameters + initEClass(customizationConfigurationEClass, CustomizationConfiguration.class, "CustomizationConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getCustomizationConfiguration_Plugin(), ecorePackage.getEString(), "plugin", null, 1, 1, CustomizationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEReference(getCustomizationConfiguration_Elements(), this.getCustomizableElement(), null, "elements", null, 0, -1, CustomizationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(customizableElementEClass, CustomizableElement.class, "CustomizableElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(fileBasedCustomizableElementEClass, FileBasedCustomizableElement.class, "FileBasedCustomizableElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getFileBasedCustomizableElement_File(), ecorePackage.getEString(), "file", null, 1, 1, FileBasedCustomizableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(propertyViewEClass, PropertyView.class, "PropertyView", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(uiCustomEClass, UICustom.class, "UICustom", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getUICustom_LoadByDefault(), ecorePackage.getEBoolean(), "loadByDefault", "false", 0, 1, UICustom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ + + initEClass(modelTemplateEClass, ModelTemplate.class, "ModelTemplate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + 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$ + + initEClass(paletteEClass, Palette.class, "Palette", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$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$ + initEAttribute(getProfile_Iconpath(), ecorePackage.getEString(), "iconpath", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getProfile_Description(), ecorePackage.getEString(), "description", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getProfile_Provider(), ecorePackage.getEString(), "provider", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getProfile_Name(), ecorePackage.getEString(), "name", null, 1, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(umlModelEClass, UMLModel.class, "UMLModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getUMLModel_Name(), ecorePackage.getEString(), "name", null, 0, 1, UMLModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getUMLModel_Iconpath(), ecorePackage.getEString(), "iconpath", null, 0, 1, UMLModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getUMLModel_Description(), ecorePackage.getEString(), "description", null, 0, 1, UMLModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getUMLModel_Provider(), ecorePackage.getEString(), "provider", null, 0, 1, UMLModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(constraintsEnvironmentEClass, ConstraintsEnvironment.class, "ConstraintsEnvironment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(propertyViewEnvironmentEClass, PropertyViewEnvironment.class, "PropertyViewEnvironment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + // Create resource + createResource(eNS_URI); + } + +} //CustomizationPluginPackageImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/FileBasedCustomizableElementImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/FileBasedCustomizableElementImpl.java index fbeac277bd7..f2204283692 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/FileBasedCustomizableElementImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/FileBasedCustomizableElementImpl.java @@ -1,173 +1,172 @@ -/**
- */
-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.FileBasedCustomizableElement;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>File Based Customizable Element</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl#getFile <em>File</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class FileBasedCustomizableElementImpl extends CustomizableElementImpl implements FileBasedCustomizableElement {
- /**
- * The default value of the '{@link #getFile() <em>File</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFile()
- * @generated
- * @ordered
- */
- protected static final String FILE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getFile() <em>File</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFile()
- * @generated
- * @ordered
- */
- protected String file = FILE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected FileBasedCustomizableElementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.FILE_BASED_CUSTOMIZABLE_ELEMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getFile() {
- return file;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setFile(String newFile) {
- String oldFile = file;
- file = newFile;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE, oldFile, file));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
- return getFile();
- }
- 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.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
- setFile((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
- setFile(FILE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE:
- return FILE_EDEFAULT == null ? file != null : !FILE_EDEFAULT.equals(file);
- }
- 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(" (file: ");
- result.append(file);
- result.append(')');
- return result.toString();
- }
-
-} // FileBasedCustomizableElementImpl
+/** + * 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.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.FileBasedCustomizableElement; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>File Based Customizable Element</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.FileBasedCustomizableElementImpl#getFile <em>File</em>}</li> + * </ul> + * + * @generated + */ +public abstract class FileBasedCustomizableElementImpl extends CustomizableElementImpl implements FileBasedCustomizableElement { + /** + * The default value of the '{@link #getFile() <em>File</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFile() + * @generated + * @ordered + */ + protected static final String FILE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFile() <em>File</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFile() + * @generated + * @ordered + */ + protected String file = FILE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FileBasedCustomizableElementImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.FILE_BASED_CUSTOMIZABLE_ELEMENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFile() { + return file; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFile(String newFile) { + String oldFile = file; + file = newFile; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE, oldFile, file)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE: + return getFile(); + } + 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.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE: + setFile((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE: + setFile(FILE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.FILE_BASED_CUSTOMIZABLE_ELEMENT__FILE: + return FILE_EDEFAULT == null ? file != null : !FILE_EDEFAULT.equals(file); + } + 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(" (file: "); //$NON-NLS-1$ + result.append(file); + result.append(')'); + return result.toString(); + } + +} //FileBasedCustomizableElementImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ModelTemplateImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ModelTemplateImpl.java index 772f7c61267..adf252d6661 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ModelTemplateImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ModelTemplateImpl.java @@ -1,291 +1,280 @@ -/**
- */
-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.ModelTemplate;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Model Template</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl#getLanguage <em>Language</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl#getId <em>Id</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implements ModelTemplate {
- /**
- * The default value of the '{@link #getLanguage() <em>Language</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLanguage()
- * @generated
- * @ordered
- */
- protected static final String LANGUAGE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLanguage() <em>Language</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLanguage()
- * @generated
- * @ordered
- */
- protected String language = LANGUAGE_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 #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;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ModelTemplateImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.MODEL_TEMPLATE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getLanguage() {
- return language;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setLanguage(String newLanguage) {
- String oldLanguage = language;
- language = newLanguage;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE, oldLanguage, language));
- }
- }
-
- /**
- * <!-- 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.MODEL_TEMPLATE__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- 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.MODEL_TEMPLATE__ID, oldId, id));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE:
- return getLanguage();
- case CustomizationPluginPackage.MODEL_TEMPLATE__NAME:
- return getName();
- case CustomizationPluginPackage.MODEL_TEMPLATE__ID:
- return getId();
- }
- 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.MODEL_TEMPLATE__LANGUAGE:
- setLanguage((String) newValue);
- return;
- case CustomizationPluginPackage.MODEL_TEMPLATE__NAME:
- setName((String) newValue);
- return;
- case CustomizationPluginPackage.MODEL_TEMPLATE__ID:
- setId((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE:
- setLanguage(LANGUAGE_EDEFAULT);
- return;
- case CustomizationPluginPackage.MODEL_TEMPLATE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CustomizationPluginPackage.MODEL_TEMPLATE__ID:
- setId(ID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE:
- return LANGUAGE_EDEFAULT == null ? language != null : !LANGUAGE_EDEFAULT.equals(language);
- case CustomizationPluginPackage.MODEL_TEMPLATE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CustomizationPluginPackage.MODEL_TEMPLATE__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- }
- 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(" (language: ");
- result.append(language);
- result.append(", name: ");
- result.append(name);
- result.append(", id: ");
- result.append(id);
- result.append(')');
- return result.toString();
- }
-
-} // ModelTemplateImpl
+/** + * 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.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.ModelTemplate; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Model Template</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl#getLanguage <em>Language</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ModelTemplateImpl#getId <em>Id</em>}</li> + * </ul> + * + * @generated + */ +public class ModelTemplateImpl extends FileBasedCustomizableElementImpl implements ModelTemplate { + /** + * The default value of the '{@link #getLanguage() <em>Language</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLanguage() + * @generated + * @ordered + */ + protected static final String LANGUAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLanguage() <em>Language</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLanguage() + * @generated + * @ordered + */ + protected String language = LANGUAGE_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 #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; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ModelTemplateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.MODEL_TEMPLATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLanguage() { + return language; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLanguage(String newLanguage) { + String oldLanguage = language; + language = newLanguage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE, oldLanguage, language)); + } + + /** + * <!-- 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.MODEL_TEMPLATE__NAME, oldName, name)); + } + + /** + * <!-- 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.MODEL_TEMPLATE__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE: + return getLanguage(); + case CustomizationPluginPackage.MODEL_TEMPLATE__NAME: + return getName(); + case CustomizationPluginPackage.MODEL_TEMPLATE__ID: + return getId(); + } + 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.MODEL_TEMPLATE__LANGUAGE: + setLanguage((String)newValue); + return; + case CustomizationPluginPackage.MODEL_TEMPLATE__NAME: + setName((String)newValue); + return; + case CustomizationPluginPackage.MODEL_TEMPLATE__ID: + setId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE: + setLanguage(LANGUAGE_EDEFAULT); + return; + case CustomizationPluginPackage.MODEL_TEMPLATE__NAME: + setName(NAME_EDEFAULT); + return; + case CustomizationPluginPackage.MODEL_TEMPLATE__ID: + setId(ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.MODEL_TEMPLATE__LANGUAGE: + return LANGUAGE_EDEFAULT == null ? language != null : !LANGUAGE_EDEFAULT.equals(language); + case CustomizationPluginPackage.MODEL_TEMPLATE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case CustomizationPluginPackage.MODEL_TEMPLATE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + } + 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(" (language: "); //$NON-NLS-1$ + result.append(language); + result.append(", name: "); //$NON-NLS-1$ + result.append(name); + result.append(", id: "); //$NON-NLS-1$ + result.append(id); + result.append(')'); + return result.toString(); + } + +} //ModelTemplateImpl 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 214c2b1baec..046dab29954 100644..100755 --- 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 @@ -1,40 +1,47 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-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>
- * </p>
- *
- * @generated
- */
-public class PaletteImpl extends FileBasedCustomizableElementImpl implements Palette {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected PaletteImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.PALETTE;
- }
-
-} // PaletteImpl
+/** + * 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.toolsmiths.model.customizationplugin.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage; +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 --> + * + * @generated + */ +public class PaletteImpl extends FileBasedCustomizableElementImpl implements Palette { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PaletteImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.PALETTE; + } + +} //PaletteImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ProfileImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ProfileImpl.java index 069305c4fac..6e242e4499a 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ProfileImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/ProfileImpl.java @@ -1,409 +1,388 @@ -/**
- */
-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.Profile;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Profile</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getQualifiednames <em>Qualifiednames</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getIconpath <em>Iconpath</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getProvider <em>Provider</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ProfileImpl extends FileBasedCustomizableElementImpl implements Profile {
- /**
- * The default value of the '{@link #getQualifiednames() <em>Qualifiednames</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getQualifiednames()
- * @generated
- * @ordered
- */
- protected static final String QUALIFIEDNAMES_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getQualifiednames() <em>Qualifiednames</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getQualifiednames()
- * @generated
- * @ordered
- */
- protected String qualifiednames = QUALIFIEDNAMES_EDEFAULT;
-
- /**
- * The default value of the '{@link #getIconpath() <em>Iconpath</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getIconpath()
- * @generated
- * @ordered
- */
- protected static final String ICONPATH_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getIconpath() <em>Iconpath</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getIconpath()
- * @generated
- * @ordered
- */
- protected String iconpath = ICONPATH_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected String description = DESCRIPTION_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 #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ProfileImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.PROFILE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getQualifiednames() {
- return qualifiednames;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setQualifiednames(String newQualifiednames) {
- String oldQualifiednames = qualifiednames;
- qualifiednames = newQualifiednames;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES, oldQualifiednames, qualifiednames));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getIconpath() {
- return iconpath;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setIconpath(String newIconpath) {
- String oldIconpath = iconpath;
- iconpath = newIconpath;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__ICONPATH, oldIconpath, iconpath));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__DESCRIPTION, oldDescription, description));
- }
- }
-
- /**
- * <!-- 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.PROFILE__PROVIDER, oldProvider, provider));
- }
- }
-
- /**
- * <!-- 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.PROFILE__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES:
- return getQualifiednames();
- case CustomizationPluginPackage.PROFILE__ICONPATH:
- return getIconpath();
- case CustomizationPluginPackage.PROFILE__DESCRIPTION:
- return getDescription();
- case CustomizationPluginPackage.PROFILE__PROVIDER:
- return getProvider();
- case CustomizationPluginPackage.PROFILE__NAME:
- return getName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES:
- setQualifiednames((String) newValue);
- return;
- case CustomizationPluginPackage.PROFILE__ICONPATH:
- setIconpath((String) newValue);
- return;
- case CustomizationPluginPackage.PROFILE__DESCRIPTION:
- setDescription((String) newValue);
- return;
- case CustomizationPluginPackage.PROFILE__PROVIDER:
- setProvider((String) newValue);
- return;
- case CustomizationPluginPackage.PROFILE__NAME:
- setName((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES:
- setQualifiednames(QUALIFIEDNAMES_EDEFAULT);
- return;
- case CustomizationPluginPackage.PROFILE__ICONPATH:
- setIconpath(ICONPATH_EDEFAULT);
- return;
- case CustomizationPluginPackage.PROFILE__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CustomizationPluginPackage.PROFILE__PROVIDER:
- setProvider(PROVIDER_EDEFAULT);
- return;
- case CustomizationPluginPackage.PROFILE__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES:
- return QUALIFIEDNAMES_EDEFAULT == null ? qualifiednames != null : !QUALIFIEDNAMES_EDEFAULT.equals(qualifiednames);
- case CustomizationPluginPackage.PROFILE__ICONPATH:
- return ICONPATH_EDEFAULT == null ? iconpath != null : !ICONPATH_EDEFAULT.equals(iconpath);
- case CustomizationPluginPackage.PROFILE__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CustomizationPluginPackage.PROFILE__PROVIDER:
- return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider);
- case CustomizationPluginPackage.PROFILE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (qualifiednames: ");
- result.append(qualifiednames);
- result.append(", iconpath: ");
- result.append(iconpath);
- result.append(", description: ");
- result.append(description);
- result.append(", provider: ");
- result.append(provider);
- result.append(", name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} // ProfileImpl
+/** + * 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.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.Profile; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Profile</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getQualifiednames <em>Qualifiednames</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getIconpath <em>Iconpath</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getProvider <em>Provider</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.ProfileImpl#getName <em>Name</em>}</li> + * </ul> + * + * @generated + */ +public class ProfileImpl extends FileBasedCustomizableElementImpl implements Profile { + /** + * The default value of the '{@link #getQualifiednames() <em>Qualifiednames</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getQualifiednames() + * @generated + * @ordered + */ + protected static final String QUALIFIEDNAMES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getQualifiednames() <em>Qualifiednames</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getQualifiednames() + * @generated + * @ordered + */ + protected String qualifiednames = QUALIFIEDNAMES_EDEFAULT; + + /** + * The default value of the '{@link #getIconpath() <em>Iconpath</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIconpath() + * @generated + * @ordered + */ + protected static final String ICONPATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIconpath() <em>Iconpath</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIconpath() + * @generated + * @ordered + */ + protected String iconpath = ICONPATH_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_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 #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ProfileImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.PROFILE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getQualifiednames() { + return qualifiednames; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setQualifiednames(String newQualifiednames) { + String oldQualifiednames = qualifiednames; + qualifiednames = newQualifiednames; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES, oldQualifiednames, qualifiednames)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIconpath() { + return iconpath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIconpath(String newIconpath) { + String oldIconpath = iconpath; + iconpath = newIconpath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__ICONPATH, oldIconpath, iconpath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.PROFILE__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- 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.PROFILE__PROVIDER, oldProvider, provider)); + } + + /** + * <!-- 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.PROFILE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES: + return getQualifiednames(); + case CustomizationPluginPackage.PROFILE__ICONPATH: + return getIconpath(); + case CustomizationPluginPackage.PROFILE__DESCRIPTION: + return getDescription(); + case CustomizationPluginPackage.PROFILE__PROVIDER: + return getProvider(); + case CustomizationPluginPackage.PROFILE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES: + setQualifiednames((String)newValue); + return; + case CustomizationPluginPackage.PROFILE__ICONPATH: + setIconpath((String)newValue); + return; + case CustomizationPluginPackage.PROFILE__DESCRIPTION: + setDescription((String)newValue); + return; + case CustomizationPluginPackage.PROFILE__PROVIDER: + setProvider((String)newValue); + return; + case CustomizationPluginPackage.PROFILE__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES: + setQualifiednames(QUALIFIEDNAMES_EDEFAULT); + return; + case CustomizationPluginPackage.PROFILE__ICONPATH: + setIconpath(ICONPATH_EDEFAULT); + return; + case CustomizationPluginPackage.PROFILE__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case CustomizationPluginPackage.PROFILE__PROVIDER: + setProvider(PROVIDER_EDEFAULT); + return; + case CustomizationPluginPackage.PROFILE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.PROFILE__QUALIFIEDNAMES: + return QUALIFIEDNAMES_EDEFAULT == null ? qualifiednames != null : !QUALIFIEDNAMES_EDEFAULT.equals(qualifiednames); + case CustomizationPluginPackage.PROFILE__ICONPATH: + return ICONPATH_EDEFAULT == null ? iconpath != null : !ICONPATH_EDEFAULT.equals(iconpath); + case CustomizationPluginPackage.PROFILE__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case CustomizationPluginPackage.PROFILE__PROVIDER: + return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider); + case CustomizationPluginPackage.PROFILE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (qualifiednames: "); //$NON-NLS-1$ + result.append(qualifiednames); + result.append(", iconpath: "); //$NON-NLS-1$ + result.append(iconpath); + result.append(", description: "); //$NON-NLS-1$ + result.append(description); + result.append(", provider: "); //$NON-NLS-1$ + result.append(provider); + result.append(", name: "); //$NON-NLS-1$ + result.append(name); + result.append(')'); + return result.toString(); + } + +} //ProfileImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PropertyViewEnvironmentImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PropertyViewEnvironmentImpl.java index 201374023ac..243eb2aa779 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PropertyViewEnvironmentImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PropertyViewEnvironmentImpl.java @@ -1,40 +1,47 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-import org.eclipse.papyrus.toolsmiths.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
+/** + * 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.toolsmiths.model.customizationplugin.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyViewEnvironment; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Property View Environment</b></em>'. + * <!-- end-user-doc --> + * + * @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/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PropertyViewImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PropertyViewImpl.java index 7d41e4f2227..d0bcbc2c0e9 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PropertyViewImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/PropertyViewImpl.java @@ -1,40 +1,47 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyView;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Property View</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class PropertyViewImpl extends FileBasedCustomizableElementImpl implements PropertyView {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected PropertyViewImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.PROPERTY_VIEW;
- }
-
-} // PropertyViewImpl
+/** + * 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.toolsmiths.model.customizationplugin.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage; +import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyView; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Property View</b></em>'. + * <!-- end-user-doc --> + * + * @generated + */ +public class PropertyViewImpl extends FileBasedCustomizableElementImpl implements PropertyView { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PropertyViewImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.PROPERTY_VIEW; + } + +} //PropertyViewImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/UICustomImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/UICustomImpl.java index 8365e6fcedf..086a1489a5c 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/UICustomImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/UICustomImpl.java @@ -1,173 +1,172 @@ -/**
- */
-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.UICustom;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UI Custom</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl#isLoadByDefault <em>Load By Default</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class UICustomImpl extends FileBasedCustomizableElementImpl implements UICustom {
- /**
- * The default value of the '{@link #isLoadByDefault() <em>Load By Default</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isLoadByDefault()
- * @generated
- * @ordered
- */
- protected static final boolean LOAD_BY_DEFAULT_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isLoadByDefault() <em>Load By Default</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isLoadByDefault()
- * @generated
- * @ordered
- */
- protected boolean loadByDefault = LOAD_BY_DEFAULT_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UICustomImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.UI_CUSTOM;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isLoadByDefault() {
- return loadByDefault;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setLoadByDefault(boolean newLoadByDefault) {
- boolean oldLoadByDefault = loadByDefault;
- loadByDefault = newLoadByDefault;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT, oldLoadByDefault, loadByDefault));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
- return isLoadByDefault();
- }
- 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.UI_CUSTOM__LOAD_BY_DEFAULT:
- setLoadByDefault((Boolean) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
- setLoadByDefault(LOAD_BY_DEFAULT_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT:
- return loadByDefault != LOAD_BY_DEFAULT_EDEFAULT;
- }
- 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(" (loadByDefault: ");
- result.append(loadByDefault);
- result.append(')');
- return result.toString();
- }
-
-} // UICustomImpl
+/** + * 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.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.UICustom; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>UI Custom</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UICustomImpl#isLoadByDefault <em>Load By Default</em>}</li> + * </ul> + * + * @generated + */ +public class UICustomImpl extends FileBasedCustomizableElementImpl implements UICustom { + /** + * The default value of the '{@link #isLoadByDefault() <em>Load By Default</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isLoadByDefault() + * @generated + * @ordered + */ + protected static final boolean LOAD_BY_DEFAULT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isLoadByDefault() <em>Load By Default</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isLoadByDefault() + * @generated + * @ordered + */ + protected boolean loadByDefault = LOAD_BY_DEFAULT_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected UICustomImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.UI_CUSTOM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isLoadByDefault() { + return loadByDefault; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLoadByDefault(boolean newLoadByDefault) { + boolean oldLoadByDefault = loadByDefault; + loadByDefault = newLoadByDefault; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT, oldLoadByDefault, loadByDefault)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT: + return isLoadByDefault(); + } + 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.UI_CUSTOM__LOAD_BY_DEFAULT: + setLoadByDefault((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT: + setLoadByDefault(LOAD_BY_DEFAULT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.UI_CUSTOM__LOAD_BY_DEFAULT: + return loadByDefault != LOAD_BY_DEFAULT_EDEFAULT; + } + 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(" (loadByDefault: "); //$NON-NLS-1$ + result.append(loadByDefault); + result.append(')'); + return result.toString(); + } + +} //UICustomImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/UMLModelImpl.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/UMLModelImpl.java index 2c1fec4112a..695ed5e9fee 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/UMLModelImpl.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/impl/UMLModelImpl.java @@ -1,350 +1,334 @@ -/**
- */
-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.UMLModel;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML Model</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl#getIconpath <em>Iconpath</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl#getProvider <em>Provider</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UMLModel {
- /**
- * 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 #getIconpath() <em>Iconpath</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getIconpath()
- * @generated
- * @ordered
- */
- protected static final String ICONPATH_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getIconpath() <em>Iconpath</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getIconpath()
- * @generated
- * @ordered
- */
- protected String iconpath = ICONPATH_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected String description = DESCRIPTION_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;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLModelImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return CustomizationPluginPackage.Literals.UML_MODEL;
- }
-
- /**
- * <!-- 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.UML_MODEL__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getIconpath() {
- return iconpath;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setIconpath(String newIconpath) {
- String oldIconpath = iconpath;
- iconpath = newIconpath;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UML_MODEL__ICONPATH, oldIconpath, iconpath));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UML_MODEL__DESCRIPTION, oldDescription, description));
- }
- }
-
- /**
- * <!-- 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.UML_MODEL__PROVIDER, oldProvider, provider));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CustomizationPluginPackage.UML_MODEL__NAME:
- return getName();
- case CustomizationPluginPackage.UML_MODEL__ICONPATH:
- return getIconpath();
- case CustomizationPluginPackage.UML_MODEL__DESCRIPTION:
- return getDescription();
- case CustomizationPluginPackage.UML_MODEL__PROVIDER:
- return getProvider();
- }
- 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.UML_MODEL__NAME:
- setName((String) newValue);
- return;
- case CustomizationPluginPackage.UML_MODEL__ICONPATH:
- setIconpath((String) newValue);
- return;
- case CustomizationPluginPackage.UML_MODEL__DESCRIPTION:
- setDescription((String) newValue);
- return;
- case CustomizationPluginPackage.UML_MODEL__PROVIDER:
- setProvider((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.UML_MODEL__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CustomizationPluginPackage.UML_MODEL__ICONPATH:
- setIconpath(ICONPATH_EDEFAULT);
- return;
- case CustomizationPluginPackage.UML_MODEL__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CustomizationPluginPackage.UML_MODEL__PROVIDER:
- setProvider(PROVIDER_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CustomizationPluginPackage.UML_MODEL__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CustomizationPluginPackage.UML_MODEL__ICONPATH:
- return ICONPATH_EDEFAULT == null ? iconpath != null : !ICONPATH_EDEFAULT.equals(iconpath);
- case CustomizationPluginPackage.UML_MODEL__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CustomizationPluginPackage.UML_MODEL__PROVIDER:
- return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", iconpath: ");
- result.append(iconpath);
- result.append(", description: ");
- result.append(description);
- result.append(", provider: ");
- result.append(provider);
- result.append(')');
- return result.toString();
- }
-
-} // UMLModelImpl
+/** + * 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.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.UMLModel; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>UML Model</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl#getIconpath <em>Iconpath</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.papyrus.toolsmiths.model.customizationplugin.impl.UMLModelImpl#getProvider <em>Provider</em>}</li> + * </ul> + * + * @generated + */ +public class UMLModelImpl extends FileBasedCustomizableElementImpl implements UMLModel { + /** + * 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 #getIconpath() <em>Iconpath</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIconpath() + * @generated + * @ordered + */ + protected static final String ICONPATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIconpath() <em>Iconpath</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIconpath() + * @generated + * @ordered + */ + protected String iconpath = ICONPATH_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_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; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected UMLModelImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CustomizationPluginPackage.Literals.UML_MODEL; + } + + /** + * <!-- 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.UML_MODEL__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIconpath() { + return iconpath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIconpath(String newIconpath) { + String oldIconpath = iconpath; + iconpath = newIconpath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UML_MODEL__ICONPATH, oldIconpath, iconpath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CustomizationPluginPackage.UML_MODEL__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- 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.UML_MODEL__PROVIDER, oldProvider, provider)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CustomizationPluginPackage.UML_MODEL__NAME: + return getName(); + case CustomizationPluginPackage.UML_MODEL__ICONPATH: + return getIconpath(); + case CustomizationPluginPackage.UML_MODEL__DESCRIPTION: + return getDescription(); + case CustomizationPluginPackage.UML_MODEL__PROVIDER: + return getProvider(); + } + 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.UML_MODEL__NAME: + setName((String)newValue); + return; + case CustomizationPluginPackage.UML_MODEL__ICONPATH: + setIconpath((String)newValue); + return; + case CustomizationPluginPackage.UML_MODEL__DESCRIPTION: + setDescription((String)newValue); + return; + case CustomizationPluginPackage.UML_MODEL__PROVIDER: + setProvider((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.UML_MODEL__NAME: + setName(NAME_EDEFAULT); + return; + case CustomizationPluginPackage.UML_MODEL__ICONPATH: + setIconpath(ICONPATH_EDEFAULT); + return; + case CustomizationPluginPackage.UML_MODEL__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case CustomizationPluginPackage.UML_MODEL__PROVIDER: + setProvider(PROVIDER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CustomizationPluginPackage.UML_MODEL__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case CustomizationPluginPackage.UML_MODEL__ICONPATH: + return ICONPATH_EDEFAULT == null ? iconpath != null : !ICONPATH_EDEFAULT.equals(iconpath); + case CustomizationPluginPackage.UML_MODEL__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case CustomizationPluginPackage.UML_MODEL__PROVIDER: + return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); //$NON-NLS-1$ + result.append(name); + result.append(", iconpath: "); //$NON-NLS-1$ + result.append(iconpath); + result.append(", description: "); //$NON-NLS-1$ + result.append(description); + result.append(", provider: "); //$NON-NLS-1$ + result.append(provider); + result.append(')'); + return result.toString(); + } + +} //UMLModelImpl diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/util/CustomizationPluginAdapterFactory.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/util/CustomizationPluginAdapterFactory.java index efb0b7ed584..d0ad5f78cf8 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/util/CustomizationPluginAdapterFactory.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/util/CustomizationPluginAdapterFactory.java @@ -1,326 +1,310 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizableElement;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.FileBasedCustomizableElement;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyView;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UICustom;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel;
-
-/**
- * <!-- 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.toolsmiths.model.customizationplugin.CustomizationPluginPackage
- * @generated
- */
-public class CustomizationPluginAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static CustomizationPluginPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public CustomizationPluginAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = CustomizationPluginPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected CustomizationPluginSwitch<Adapter> modelSwitch =
- new CustomizationPluginSwitch<Adapter>() {
- @Override
- public Adapter caseCustomizationConfiguration(CustomizationConfiguration object) {
- return createCustomizationConfigurationAdapter();
- }
-
- @Override
- public Adapter caseCustomizableElement(CustomizableElement object) {
- return createCustomizableElementAdapter();
- }
-
- @Override
- public Adapter caseFileBasedCustomizableElement(FileBasedCustomizableElement object) {
- return createFileBasedCustomizableElementAdapter();
- }
-
- @Override
- public Adapter casePropertyView(PropertyView object) {
- return createPropertyViewAdapter();
- }
-
- @Override
- public Adapter caseUICustom(UICustom object) {
- return createUICustomAdapter();
- }
-
- @Override
- public Adapter caseModelTemplate(ModelTemplate object) {
- return createModelTemplateAdapter();
- }
-
- @Override
- public Adapter casePalette(Palette object) {
- return createPaletteAdapter();
- }
-
- @Override
- public Adapter caseProfile(Profile object) {
- return createProfileAdapter();
- }
-
- @Override
- public Adapter caseUMLModel(UMLModel object) {
- return createUMLModelAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject) target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationConfiguration
- * @generated
- */
- public Adapter createCustomizationConfigurationAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizableElement
- * @generated
- */
- public Adapter createCustomizableElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.FileBasedCustomizableElement
- * @generated
- */
- public Adapter createFileBasedCustomizableElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.PropertyView
- * @generated
- */
- public Adapter createPropertyViewAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UICustom
- * @generated
- */
- public Adapter createUICustomAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate
- * @generated
- */
- public Adapter createModelTemplateAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Palette
- * @generated
- */
- public Adapter createPaletteAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile
- * @generated
- */
- public Adapter createProfileAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel
- * @generated
- */
- public Adapter createUMLModelAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ConstraintsEnvironment
- * @generated
- */
- public Adapter createConstraintsEnvironmentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.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.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} // CustomizationPluginAdapterFactory
+/** + * 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.toolsmiths.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.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationPluginPackage + * @generated + */ +public class CustomizationPluginAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static CustomizationPluginPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CustomizationPluginAdapterFactory() { + if (modelPackage == null) { + modelPackage = CustomizationPluginPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CustomizationPluginSwitch<Adapter> modelSwitch = + new CustomizationPluginSwitch<Adapter>() { + @Override + public Adapter caseCustomizationConfiguration(CustomizationConfiguration object) { + return createCustomizationConfigurationAdapter(); + } + @Override + public Adapter caseCustomizableElement(CustomizableElement object) { + return createCustomizableElementAdapter(); + } + @Override + public Adapter caseFileBasedCustomizableElement(FileBasedCustomizableElement object) { + return createFileBasedCustomizableElementAdapter(); + } + @Override + public Adapter casePropertyView(PropertyView object) { + return createPropertyViewAdapter(); + } + @Override + public Adapter caseUICustom(UICustom object) { + return createUICustomAdapter(); + } + @Override + public Adapter caseModelTemplate(ModelTemplate object) { + return createModelTemplateAdapter(); + } + @Override + public Adapter casePalette(Palette object) { + return createPaletteAdapter(); + } + @Override + public Adapter caseProfile(Profile object) { + return createProfileAdapter(); + } + @Override + public Adapter caseUMLModel(UMLModel object) { + return createUMLModelAdapter(); + } + @Override + public Adapter caseConstraintsEnvironment(ConstraintsEnvironment object) { + return createConstraintsEnvironmentAdapter(); + } + @Override + public Adapter casePropertyViewEnvironment(PropertyViewEnvironment object) { + return createPropertyViewEnvironmentAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizationConfiguration + * @generated + */ + public Adapter createCustomizationConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.CustomizableElement + * @generated + */ + public Adapter createCustomizableElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.FileBasedCustomizableElement + * @generated + */ + public Adapter createFileBasedCustomizableElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.PropertyView + * @generated + */ + public Adapter createPropertyViewAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UICustom + * @generated + */ + public Adapter createUICustomAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ModelTemplate + * @generated + */ + public Adapter createModelTemplateAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Palette + * @generated + */ + public Adapter createPaletteAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.Profile + * @generated + */ + public Adapter createProfileAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.UMLModel + * @generated + */ + public Adapter createUMLModelAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ConstraintsEnvironment + * @generated + */ + public Adapter createConstraintsEnvironmentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.toolsmiths.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.toolsmiths.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. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //CustomizationPluginAdapterFactory diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/util/CustomizationPluginSwitch.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/util/CustomizationPluginSwitch.java index edb1949d9f3..0fed125e151 100644..100755 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/util/CustomizationPluginSwitch.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src-gen/org/eclipse/papyrus/toolsmiths/model/customizationplugin/util/CustomizationPluginSwitch.java @@ -1,403 +1,347 @@ -/**
- */
-package org.eclipse.papyrus.toolsmiths.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.toolsmiths.model.customizationplugin.ConstraintsEnvironment;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizableElement;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationConfiguration;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.FileBasedCustomizableElement;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.ModelTemplate;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Palette;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.Profile;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyView;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.PropertyViewEnvironment;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UICustom;
-import org.eclipse.papyrus.toolsmiths.model.customizationplugin.UMLModel;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage
- * @generated
- */
-public class CustomizationPluginSwitch<T> extends Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static CustomizationPluginPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public CustomizationPluginSwitch() {
- if (modelPackage == null) {
- modelPackage = CustomizationPluginPackage.eINSTANCE;
- }
- }
-
- /**
- * Checks whether this is a switch for the given package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage) {
- return ePackage == modelPackage;
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION: {
- CustomizationConfiguration customizationConfiguration = (CustomizationConfiguration) theEObject;
- T result = caseCustomizationConfiguration(customizationConfiguration);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CustomizationPluginPackage.CUSTOMIZABLE_ELEMENT: {
- CustomizableElement customizableElement = (CustomizableElement) theEObject;
- T result = caseCustomizableElement(customizableElement);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- 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 CustomizationPluginPackage.PROPERTY_VIEW: {
- PropertyView propertyView = (PropertyView) theEObject;
- T result = casePropertyView(propertyView);
- if (result == null) {
- result = caseFileBasedCustomizableElement(propertyView);
- }
- if (result == null) {
- result = caseCustomizableElement(propertyView);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CustomizationPluginPackage.UI_CUSTOM: {
- UICustom uiCustom = (UICustom) theEObject;
- T result = caseUICustom(uiCustom);
- if (result == null) {
- result = caseFileBasedCustomizableElement(uiCustom);
- }
- if (result == null) {
- result = caseCustomizableElement(uiCustom);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CustomizationPluginPackage.MODEL_TEMPLATE: {
- ModelTemplate modelTemplate = (ModelTemplate) theEObject;
- T result = caseModelTemplate(modelTemplate);
- if (result == null) {
- result = caseFileBasedCustomizableElement(modelTemplate);
- }
- if (result == null) {
- result = caseCustomizableElement(modelTemplate);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CustomizationPluginPackage.PALETTE: {
- Palette palette = (Palette) theEObject;
- T result = casePalette(palette);
- if (result == null) {
- result = caseFileBasedCustomizableElement(palette);
- }
- if (result == null) {
- result = caseCustomizableElement(palette);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CustomizationPluginPackage.PROFILE: {
- Profile profile = (Profile) theEObject;
- T result = caseProfile(profile);
- if (result == null) {
- result = caseFileBasedCustomizableElement(profile);
- }
- if (result == null) {
- result = caseCustomizableElement(profile);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CustomizationPluginPackage.UML_MODEL: {
- UMLModel umlModel = (UMLModel) theEObject;
- T result = caseUMLModel(umlModel);
- if (result == null) {
- result = caseFileBasedCustomizableElement(umlModel);
- }
- if (result == null) {
- result = caseCustomizableElement(umlModel);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * 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>Customization Configuration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCustomizationConfiguration(CustomizationConfiguration object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Customizable Element</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>Customizable Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCustomizableElement(CustomizableElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>File Based Customizable Element</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>File Based Customizable Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseFileBasedCustomizableElement(FileBasedCustomizableElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Property View</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</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePropertyView(PropertyView object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UI Custom</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>UI Custom</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUICustom(UICustom object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Model Template</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>Model Template</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseModelTemplate(ModelTemplate object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Palette</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>Palette</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePalette(Palette object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Profile</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>Profile</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseProfile(Profile object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Model</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>UML Model</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLModel(UMLModel object) {
- return null;
- }
-
- /**
- * 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;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object) {
- return null;
- }
-
-} // CustomizationPluginSwitch
+/** + * 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.toolsmiths.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.toolsmiths.model.customizationplugin.*; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.eclipse.papyrus.toolsmiths.model.customizationplugin.CustomizationPluginPackage + * @generated + */ +public class CustomizationPluginSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static CustomizationPluginPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CustomizationPluginSwitch() { + if (modelPackage == null) { + modelPackage = CustomizationPluginPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case CustomizationPluginPackage.CUSTOMIZATION_CONFIGURATION: { + CustomizationConfiguration customizationConfiguration = (CustomizationConfiguration)theEObject; + T result = caseCustomizationConfiguration(customizationConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CustomizationPluginPackage.CUSTOMIZABLE_ELEMENT: { + CustomizableElement customizableElement = (CustomizableElement)theEObject; + T result = caseCustomizableElement(customizableElement); + if (result == null) result = defaultCase(theEObject); + return result; + } + 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 CustomizationPluginPackage.PROPERTY_VIEW: { + PropertyView propertyView = (PropertyView)theEObject; + T result = casePropertyView(propertyView); + if (result == null) result = caseFileBasedCustomizableElement(propertyView); + if (result == null) result = caseCustomizableElement(propertyView); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CustomizationPluginPackage.UI_CUSTOM: { + UICustom uiCustom = (UICustom)theEObject; + T result = caseUICustom(uiCustom); + if (result == null) result = caseFileBasedCustomizableElement(uiCustom); + if (result == null) result = caseCustomizableElement(uiCustom); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CustomizationPluginPackage.MODEL_TEMPLATE: { + ModelTemplate modelTemplate = (ModelTemplate)theEObject; + T result = caseModelTemplate(modelTemplate); + if (result == null) result = caseFileBasedCustomizableElement(modelTemplate); + if (result == null) result = caseCustomizableElement(modelTemplate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CustomizationPluginPackage.PALETTE: { + Palette palette = (Palette)theEObject; + T result = casePalette(palette); + if (result == null) result = caseFileBasedCustomizableElement(palette); + if (result == null) result = caseCustomizableElement(palette); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CustomizationPluginPackage.PROFILE: { + Profile profile = (Profile)theEObject; + T result = caseProfile(profile); + if (result == null) result = caseFileBasedCustomizableElement(profile); + if (result == null) result = caseCustomizableElement(profile); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CustomizationPluginPackage.UML_MODEL: { + UMLModel umlModel = (UMLModel)theEObject; + T result = caseUMLModel(umlModel); + if (result == null) result = caseFileBasedCustomizableElement(umlModel); + if (result == null) result = caseCustomizableElement(umlModel); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CustomizationPluginPackage.CONSTRAINTS_ENVIRONMENT: { + ConstraintsEnvironment constraintsEnvironment = (ConstraintsEnvironment)theEObject; + T result = caseConstraintsEnvironment(constraintsEnvironment); + if (result == null) result = caseFileBasedCustomizableElement(constraintsEnvironment); + if (result == null) result = caseCustomizableElement(constraintsEnvironment); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CustomizationPluginPackage.PROPERTY_VIEW_ENVIRONMENT: { + PropertyViewEnvironment propertyViewEnvironment = (PropertyViewEnvironment)theEObject; + T result = casePropertyViewEnvironment(propertyViewEnvironment); + if (result == null) result = caseFileBasedCustomizableElement(propertyViewEnvironment); + if (result == null) result = caseCustomizableElement(propertyViewEnvironment); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * 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>Customization Configuration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCustomizationConfiguration(CustomizationConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Customizable Element</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>Customizable Element</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCustomizableElement(CustomizableElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>File Based Customizable Element</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>File Based Customizable Element</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFileBasedCustomizableElement(FileBasedCustomizableElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Property View</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</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePropertyView(PropertyView object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>UI Custom</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>UI Custom</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUICustom(UICustom object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Model Template</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>Model Template</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModelTemplate(ModelTemplate object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Palette</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>Palette</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePalette(Palette object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Profile</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>Profile</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProfile(Profile object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>UML Model</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>UML Model</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUMLModel(UMLModel object) { + return null; + } + + /** + * 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; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //CustomizationPluginSwitch diff --git a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/Activator.java b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/Activator.java index f1356fd7afc..c098511f311 100644 --- a/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/Activator.java +++ b/plugins/toolsmiths/org.eclipse.papyrus.toolsmiths/src/org/eclipse/papyrus/toolsmiths/Activator.java @@ -21,7 +21,7 @@ import org.osgi.framework.BundleContext; public class Activator extends AbstractUIPlugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.papyrus.customization"; //$NON-NLS-1$
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.toolsmiths"; //$NON-NLS-1$
// The shared instance
private static Activator plugin;
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 b611856316d..88bfd8c696c 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 @@ -15,7 +15,7 @@ import org.eclipse.osgi.util.NLS; public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.papyrus.customization.messages.messages"; //$NON-NLS-1$
+ private static final String BUNDLE_NAME = "org.eclipse.papyrus.toolsmiths.messages.messages"; //$NON-NLS-1$
public static String UICustomExtensionFactory_UICustom;
|