Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2011-12-21 10:34:25 -0500
committercletavernie2011-12-21 10:34:25 -0500
commit95805bac8c9093e325014c4295fafd1fa66e29f7 (patch)
treebc5b9498d170ebf2ac6b0dc450fe2ae759691dc6 /plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization
parent78f4e594778246a9621821023ee6fa09b044299e (diff)
downloadorg.eclipse.papyrus-95805bac8c9093e325014c4295fafd1fa66e29f7.tar.gz
org.eclipse.papyrus-95805bac8c9093e325014c4295fafd1fa66e29f7.tar.xz
org.eclipse.papyrus-95805bac8c9093e325014c4295fafd1fa66e29f7.zip
359794: [UML - Tools] Content/Label providers
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359794 367066: [Refactoring] There should be a central generic plug-in for pure EMF-based tools https://bugs.eclipse.org/bugs/show_bug.cgi?id=367066 351802: [Constraints] The Property View constraints model should be more generic https://bugs.eclipse.org/bugs/show_bug.cgi?id=351802
Diffstat (limited to 'plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization')
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java17
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java10
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java6
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java91
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java31
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java115
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java55
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java83
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java58
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java104
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java66
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java104
12 files changed, 259 insertions, 481 deletions
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java
index 6f3b4ad800d..38e5bc93e67 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java
@@ -14,16 +14,16 @@ import org.eclipse.emf.ecore.EObject;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Context Element</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements <em>Elements</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties <em>Properties</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements <em>Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties <em>Properties</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement()
* @model
* @generated
@@ -38,7 +38,6 @@ public interface ContextElement extends EObject {
* 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.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Elements()
* @model containment="true"
@@ -54,7 +53,6 @@ public interface ContextElement extends EObject {
* If the meaning of the '<em>Properties</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>Properties</em>' containment reference list.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Properties()
* @model containment="true"
@@ -69,7 +67,6 @@ public interface ContextElement extends EObject {
* If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Name()
@@ -82,9 +79,7 @@ public interface ContextElement extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
+ * @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java
index 09cbb9bdd0b..b3630e1b9d8 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java
@@ -14,15 +14,15 @@ import org.eclipse.emf.ecore.EObject;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Field Selection</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields <em>Fields</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements <em>Context Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields <em>Fields</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements <em>Context Elements</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection()
* @model
* @generated
@@ -37,7 +37,6 @@ public interface FieldSelection extends EObject {
* If the meaning of the '<em>Fields</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>Fields</em>' containment reference list.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection_Fields()
* @model containment="true"
@@ -53,7 +52,6 @@ public interface FieldSelection extends EObject {
* If the meaning of the '<em>Context 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>Context Elements</em>' containment reference list.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection_ContextElements()
* @model containment="true"
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java
index db6bc8bc292..b1a8ef9499b 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java
@@ -13,7 +13,6 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
* @generated
*/
@@ -23,7 +22,6 @@ public interface FieldSelectionFactory extends EFactory {
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
FieldSelectionFactory eINSTANCE = org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionFactoryImpl.init();
@@ -32,7 +30,6 @@ public interface FieldSelectionFactory extends EFactory {
* Returns a new object of class '<em>Field Selection</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return a new object of class '<em>Field Selection</em>'.
* @generated
*/
@@ -42,7 +39,6 @@ public interface FieldSelectionFactory extends EFactory {
* Returns a new object of class '<em>Property Definition</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return a new object of class '<em>Property Definition</em>'.
* @generated
*/
@@ -52,7 +48,6 @@ public interface FieldSelectionFactory extends EFactory {
* Returns a new object of class '<em>Context Element</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return a new object of class '<em>Context Element</em>'.
* @generated
*/
@@ -62,7 +57,6 @@ public interface FieldSelectionFactory extends EFactory {
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the package supported by this factory.
* @generated
*/
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java
index f46b5d04965..c4e9152ec0d 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java
@@ -23,7 +23,6 @@ import org.eclipse.emf.ecore.EReference;
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory
* @model kind="package"
* @generated
@@ -34,7 +33,6 @@ public interface FieldSelectionPackage extends EPackage {
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNAME = "fieldselection";
@@ -43,7 +41,6 @@ public interface FieldSelectionPackage extends EPackage {
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNS_URI = "http://www.eclipse.org/papyrus/properties/fieldSelection";
@@ -52,7 +49,6 @@ public interface FieldSelectionPackage extends EPackage {
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNS_PREFIX = "fs";
@@ -61,17 +57,14 @@ public interface FieldSelectionPackage extends EPackage {
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
FieldSelectionPackage eINSTANCE = org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl.init();
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl <em>Field Selection</em>}'
- * class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl <em>Field Selection</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getFieldSelection()
* @generated
@@ -82,7 +75,6 @@ public interface FieldSelectionPackage extends EPackage {
* The feature id for the '<em><b>Fields</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -92,7 +84,6 @@ public interface FieldSelectionPackage extends EPackage {
* The feature id for the '<em><b>Context Elements</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -102,18 +93,15 @@ public interface FieldSelectionPackage extends EPackage {
* The number of structural features of the '<em>Field Selection</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int FIELD_SELECTION_FEATURE_COUNT = 2;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl
- * <em>Property Definition</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl <em>Property Definition</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getPropertyDefinition()
* @generated
@@ -124,7 +112,6 @@ public interface FieldSelectionPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -134,7 +121,6 @@ public interface FieldSelectionPackage extends EPackage {
* The feature id for the '<em><b>Value Single</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -144,7 +130,6 @@ public interface FieldSelectionPackage extends EPackage {
* The feature id for the '<em><b>Value Multiple</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -154,18 +139,15 @@ public interface FieldSelectionPackage extends EPackage {
* The number of structural features of the '<em>Property Definition</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int PROPERTY_DEFINITION_FEATURE_COUNT = 3;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl <em>Context Element</em>}'
- * class.
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl <em>Context Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getContextElement()
* @generated
@@ -176,7 +158,6 @@ public interface FieldSelectionPackage extends EPackage {
* The feature id for the '<em><b>Elements</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -186,7 +167,6 @@ public interface FieldSelectionPackage extends EPackage {
* The feature id for the '<em><b>Properties</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -196,7 +176,6 @@ public interface FieldSelectionPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -206,7 +185,6 @@ public interface FieldSelectionPackage extends EPackage {
* The number of structural features of the '<em>Context Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -216,7 +194,6 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object id for the '<em>Value</em>' data type.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getValue()
* @generated
@@ -228,7 +205,6 @@ public interface FieldSelectionPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection <em>Field Selection</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for class '<em>Field Selection</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection
* @generated
@@ -236,11 +212,9 @@ public interface FieldSelectionPackage extends EPackage {
EClass getFieldSelection();
/**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields <em>Fields</em>}'.
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields <em>Fields</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the containment reference list '<em>Fields</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields()
* @see #getFieldSelection()
@@ -249,11 +223,9 @@ public interface FieldSelectionPackage extends EPackage {
EReference getFieldSelection_Fields();
/**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements <em>Context Elements</em>}'.
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements <em>Context Elements</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the containment reference list '<em>Context Elements</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements()
* @see #getFieldSelection()
@@ -262,11 +234,9 @@ public interface FieldSelectionPackage extends EPackage {
EReference getFieldSelection_ContextElements();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition
- * <em>Property Definition</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition <em>Property Definition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for class '<em>Property Definition</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition
* @generated
@@ -274,11 +244,9 @@ public interface FieldSelectionPackage extends EPackage {
EClass getPropertyDefinition();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName
- * <em>Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Name</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName()
* @see #getPropertyDefinition()
@@ -287,11 +255,9 @@ public interface FieldSelectionPackage extends EPackage {
EAttribute getPropertyDefinition_Name();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle
- * <em>Value Single</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Value Single</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle()
* @see #getPropertyDefinition()
@@ -300,11 +266,9 @@ public interface FieldSelectionPackage extends EPackage {
EAttribute getPropertyDefinition_ValueSingle();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple
- * <em>Value Multiple</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Value Multiple</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple()
* @see #getPropertyDefinition()
@@ -316,7 +280,6 @@ public interface FieldSelectionPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement <em>Context Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for class '<em>Context Element</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement
* @generated
@@ -324,11 +287,9 @@ public interface FieldSelectionPackage extends EPackage {
EClass getContextElement();
/**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements <em>Elements</em>}'.
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements <em>Elements</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the containment reference list '<em>Elements</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements()
* @see #getContextElement()
@@ -337,11 +298,9 @@ public interface FieldSelectionPackage extends EPackage {
EReference getContextElement_Elements();
/**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties <em>Properties</em>}'.
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties <em>Properties</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the containment reference list '<em>Properties</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties()
* @see #getContextElement()
@@ -350,11 +309,9 @@ public interface FieldSelectionPackage extends EPackage {
EReference getContextElement_Properties();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName
- * <em>Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Name</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName()
* @see #getContextElement()
@@ -366,7 +323,6 @@ public interface FieldSelectionPackage extends EPackage {
* Returns the meta object for data type '{@link org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for data type '<em>Value</em>'.
* @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
* @model instanceClass="org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State"
@@ -378,7 +334,6 @@ public interface FieldSelectionPackage extends EPackage {
* 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
*/
@@ -394,17 +349,14 @@ public interface FieldSelectionPackage extends EPackage {
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- *
* @generated
*/
interface Literals {
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl
- * <em>Field Selection</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl <em>Field Selection</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getFieldSelection()
* @generated
@@ -415,7 +367,6 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em><b>Fields</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference FIELD_SELECTION__FIELDS = eINSTANCE.getFieldSelection_Fields();
@@ -424,17 +375,14 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em><b>Context Elements</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference FIELD_SELECTION__CONTEXT_ELEMENTS = eINSTANCE.getFieldSelection_ContextElements();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl
- * <em>Property Definition</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl <em>Property Definition</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getPropertyDefinition()
* @generated
@@ -445,7 +393,6 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute PROPERTY_DEFINITION__NAME = eINSTANCE.getPropertyDefinition_Name();
@@ -454,7 +401,6 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em><b>Value Single</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute PROPERTY_DEFINITION__VALUE_SINGLE = eINSTANCE.getPropertyDefinition_ValueSingle();
@@ -463,17 +409,14 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em><b>Value Multiple</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute PROPERTY_DEFINITION__VALUE_MULTIPLE = eINSTANCE.getPropertyDefinition_ValueMultiple();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl
- * <em>Context Element</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl <em>Context Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getContextElement()
* @generated
@@ -484,7 +427,6 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference CONTEXT_ELEMENT__ELEMENTS = eINSTANCE.getContextElement_Elements();
@@ -493,7 +435,6 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference CONTEXT_ELEMENT__PROPERTIES = eINSTANCE.getContextElement_Properties();
@@ -502,7 +443,6 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute CONTEXT_ELEMENT__NAME = eINSTANCE.getContextElement_Name();
@@ -511,7 +451,6 @@ public interface FieldSelectionPackage extends EPackage {
* The meta object literal for the '<em>Value</em>' data type.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getValue()
* @generated
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java
index 004333fc917..6330076a5a2 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java
@@ -14,16 +14,16 @@ import org.eclipse.papyrus.customization.properties.generation.wizard.widget.Ter
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Property Definition</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition()
* @model
* @generated
@@ -37,7 +37,6 @@ public interface PropertyDefinition extends EObject {
* If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_Name()
@@ -50,9 +49,7 @@ public interface PropertyDefinition extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
+ * @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
@@ -66,7 +63,6 @@ public interface PropertyDefinition extends EObject {
* If the meaning of the '<em>Value Single</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Value Single</em>' attribute.
* @see #setValueSingle(State)
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_ValueSingle()
@@ -76,13 +72,10 @@ public interface PropertyDefinition extends EObject {
State getValueSingle();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}
- * ' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value Single</em>' attribute.
+ * @param value the new value of the '<em>Value Single</em>' attribute.
* @see #getValueSingle()
* @generated
*/
@@ -96,7 +89,6 @@ public interface PropertyDefinition extends EObject {
* If the meaning of the '<em>Value Multiple</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Value Multiple</em>' attribute.
* @see #setValueMultiple(State)
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_ValueMultiple()
@@ -106,13 +98,10 @@ public interface PropertyDefinition extends EObject {
State getValueMultiple();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple
- * <em>Value Multiple</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value Multiple</em>' attribute.
+ * @param value the new value of the '<em>Value Multiple</em>' attribute.
* @see #getValueMultiple()
* @generated
*/
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java
index 4cfe54e9eed..f91a8fca215 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java
@@ -33,12 +33,12 @@ import org.eclipse.papyrus.customization.properties.generation.fieldselection.Pr
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getElements <em>Elements</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getProperties <em>Properties</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getElements <em>Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getProperties <em>Properties</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getName <em>Name</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class ContextElementImpl extends EObjectImpl implements ContextElement {
@@ -47,7 +47,6 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
* The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getElements()
* @generated
* @ordered
@@ -58,7 +57,6 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
* The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getProperties()
* @generated
* @ordered
@@ -69,7 +67,6 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getName()
* @generated
* @ordered
@@ -80,7 +77,6 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getName()
* @generated
* @ordered
@@ -90,7 +86,6 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected ContextElementImpl() {
@@ -100,7 +95,6 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -111,11 +105,10 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<ContextElement> getElements() {
- if(elements == null) {
+ if (elements == null) {
elements = new EObjectContainmentEList<ContextElement>(ContextElement.class, this, FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS);
}
return elements;
@@ -124,11 +117,10 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<PropertyDefinition> getProperties() {
- if(properties == null) {
+ if (properties == null) {
properties = new EObjectContainmentEList<PropertyDefinition>(PropertyDefinition.class, this, FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES);
}
return properties;
@@ -137,7 +129,6 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getName() {
@@ -147,29 +138,27 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.CONTEXT_ELEMENT__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs);
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -177,18 +166,17 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- return getElements();
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- return getProperties();
- case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
- return getName();
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ return getElements();
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ return getProperties();
+ case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
+ return getName();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -196,24 +184,23 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- getElements().clear();
- getElements().addAll((Collection<? extends ContextElement>)newValue);
- return;
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- getProperties().clear();
- getProperties().addAll((Collection<? extends PropertyDefinition>)newValue);
- return;
- case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
- setName((String)newValue);
- return;
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends ContextElement>)newValue);
+ return;
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ getProperties().clear();
+ getProperties().addAll((Collection<? extends PropertyDefinition>)newValue);
+ return;
+ case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -221,21 +208,20 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- getElements().clear();
- return;
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- getProperties().clear();
- return;
- case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
- setName(NAME_EDEFAULT);
- return;
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ getElements().clear();
+ return;
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ getProperties().clear();
+ return;
+ case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -243,18 +229,17 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- return elements != null && !elements.isEmpty();
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- return properties != null && !properties.isEmpty();
- case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ return properties != null && !properties.isEmpty();
+ case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
}
return super.eIsSet(featureID);
}
@@ -262,13 +247,11 @@ public class ContextElementImpl extends EObjectImpl implements ContextElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java
index 8e631ca9d86..dd585f82fd9 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java
@@ -23,7 +23,6 @@ import org.eclipse.papyrus.customization.properties.generation.wizard.widget.Ter
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
- *
* @generated
*/
public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSelectionFactory {
@@ -32,16 +31,16 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static FieldSelectionFactory init() {
try {
- FieldSelectionFactory theFieldSelectionFactory = (FieldSelectionFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/properties/fieldSelection");
- if(theFieldSelectionFactory != null) {
+ FieldSelectionFactory theFieldSelectionFactory = (FieldSelectionFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/properties/fieldSelection");
+ if (theFieldSelectionFactory != null) {
return theFieldSelectionFactory;
}
- } catch (Exception exception) {
+ }
+ catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new FieldSelectionFactoryImpl();
@@ -51,7 +50,6 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public FieldSelectionFactoryImpl() {
@@ -61,59 +59,52 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case FieldSelectionPackage.FIELD_SELECTION:
- return createFieldSelection();
- case FieldSelectionPackage.PROPERTY_DEFINITION:
- return createPropertyDefinition();
- case FieldSelectionPackage.CONTEXT_ELEMENT:
- return createContextElement();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ switch (eClass.getClassifierID()) {
+ case FieldSelectionPackage.FIELD_SELECTION: return createFieldSelection();
+ case FieldSelectionPackage.PROPERTY_DEFINITION: return createPropertyDefinition();
+ case FieldSelectionPackage.CONTEXT_ELEMENT: return createContextElement();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
- switch(eDataType.getClassifierID()) {
- case FieldSelectionPackage.VALUE:
- return createValueFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ switch (eDataType.getClassifierID()) {
+ case FieldSelectionPackage.VALUE:
+ return createValueFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
- switch(eDataType.getClassifierID()) {
- case FieldSelectionPackage.VALUE:
- return convertValueToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ switch (eDataType.getClassifierID()) {
+ case FieldSelectionPackage.VALUE:
+ return convertValueToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public FieldSelection createFieldSelection() {
@@ -124,7 +115,6 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public PropertyDefinition createPropertyDefinition() {
@@ -135,7 +125,6 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public ContextElement createContextElement() {
@@ -146,7 +135,6 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public State createValueFromString(EDataType eDataType, String initialValue) {
@@ -156,7 +144,6 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String convertValueToString(EDataType eDataType, Object instanceValue) {
@@ -166,7 +153,6 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public FieldSelectionPackage getFieldSelectionPackage() {
@@ -176,7 +162,6 @@ public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @deprecated
* @generated
*/
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java
index 1d6b5dc3529..c39f998ad00 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java
@@ -32,11 +32,11 @@ import org.eclipse.papyrus.customization.properties.generation.fieldselection.Pr
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl#getFields <em>Fields</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl#getContextElements <em>Context Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl#getFields <em>Fields</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl#getContextElements <em>Context Elements</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
@@ -45,7 +45,6 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
* The cached value of the '{@link #getFields() <em>Fields</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getFields()
* @generated
* @ordered
@@ -56,7 +55,6 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
* The cached value of the '{@link #getContextElements() <em>Context Elements</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getContextElements()
* @generated
* @ordered
@@ -66,7 +64,6 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected FieldSelectionImpl() {
@@ -76,7 +73,6 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -87,11 +83,10 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<PropertyDefinition> getFields() {
- if(fields == null) {
+ if (fields == null) {
fields = new EObjectContainmentEList<PropertyDefinition>(PropertyDefinition.class, this, FieldSelectionPackage.FIELD_SELECTION__FIELDS);
}
return fields;
@@ -100,11 +95,10 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<ContextElement> getContextElements() {
- if(contextElements == null) {
+ if (contextElements == null) {
contextElements = new EObjectContainmentEList<ContextElement>(ContextElement.class, this, FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS);
}
return contextElements;
@@ -113,16 +107,15 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- return ((InternalEList<?>)getFields()).basicRemove(otherEnd, msgs);
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- return ((InternalEList<?>)getContextElements()).basicRemove(otherEnd, msgs);
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ return ((InternalEList<?>)getFields()).basicRemove(otherEnd, msgs);
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ return ((InternalEList<?>)getContextElements()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -130,16 +123,15 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- return getFields();
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- return getContextElements();
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ return getFields();
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ return getContextElements();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -147,21 +139,20 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- getFields().clear();
- getFields().addAll((Collection<? extends PropertyDefinition>)newValue);
- return;
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- getContextElements().clear();
- getContextElements().addAll((Collection<? extends ContextElement>)newValue);
- return;
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ getFields().clear();
+ getFields().addAll((Collection<? extends PropertyDefinition>)newValue);
+ return;
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ getContextElements().clear();
+ getContextElements().addAll((Collection<? extends ContextElement>)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -169,18 +160,17 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- getFields().clear();
- return;
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- getContextElements().clear();
- return;
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ getFields().clear();
+ return;
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ getContextElements().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -188,16 +178,15 @@ public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- return fields != null && !fields.isEmpty();
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- return contextElements != null && !contextElements.isEmpty();
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ return fields != null && !fields.isEmpty();
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ return contextElements != null && !contextElements.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java
index c26f0ba6d46..0cf0ebe5534 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java
@@ -26,7 +26,6 @@ import org.eclipse.papyrus.customization.properties.generation.wizard.widget.Ter
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
- *
* @generated
*/
public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSelectionPackage {
@@ -34,7 +33,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EClass fieldSelectionEClass = null;
@@ -42,7 +40,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EClass propertyDefinitionEClass = null;
@@ -50,7 +47,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EClass contextElementEClass = null;
@@ -58,19 +54,19 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EDataType valueEDataType = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the
- * package
+ * 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 -->
- *
+ * <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.customization.properties.generation.fieldselection.FieldSelectionPackage#eNS_URI
* @see #init()
@@ -83,7 +79,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private static boolean isInited = false;
@@ -91,18 +86,16 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* 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 FieldSelectionPackage#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 -->
- *
+ * <p>This method is used to initialize {@link FieldSelectionPackage#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 FieldSelectionPackage init() {
- if(isInited)
- return (FieldSelectionPackage)EPackage.Registry.INSTANCE.getEPackage(FieldSelectionPackage.eNS_URI);
+ if (isInited) return (FieldSelectionPackage)EPackage.Registry.INSTANCE.getEPackage(FieldSelectionPackage.eNS_URI);
// Obtain or create and register package
FieldSelectionPackageImpl theFieldSelectionPackage = (FieldSelectionPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FieldSelectionPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FieldSelectionPackageImpl());
@@ -118,7 +111,7 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
// Mark meta-data to indicate it can't be changed
theFieldSelectionPackage.freeze();
-
+
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(FieldSelectionPackage.eNS_URI, theFieldSelectionPackage);
return theFieldSelectionPackage;
@@ -127,7 +120,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EClass getFieldSelection() {
@@ -137,7 +129,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getFieldSelection_Fields() {
@@ -147,7 +138,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getFieldSelection_ContextElements() {
@@ -157,7 +147,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EClass getPropertyDefinition() {
@@ -167,7 +156,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getPropertyDefinition_Name() {
@@ -177,7 +165,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getPropertyDefinition_ValueSingle() {
@@ -187,7 +174,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getPropertyDefinition_ValueMultiple() {
@@ -197,7 +183,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EClass getContextElement() {
@@ -207,7 +192,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getContextElement_Elements() {
@@ -217,7 +201,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getContextElement_Properties() {
@@ -227,7 +210,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getContextElement_Name() {
@@ -237,7 +219,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EDataType getValue() {
@@ -247,7 +228,6 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public FieldSelectionFactory getFieldSelectionFactory() {
@@ -257,22 +237,19 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
+ * 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;
+ if (isCreated) return;
isCreated = true;
// Create classes and their features
@@ -297,22 +274,19 @@ public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSele
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
+ * 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;
+ if (isInitialized) return;
isInitialized = true;
// Initialize package
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java
index ab58d0fefd9..26584120949 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java
@@ -26,12 +26,12 @@ import org.eclipse.papyrus.customization.properties.generation.wizard.widget.Ter
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getValueSingle <em>Value Single</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getValueMultiple <em>Value Multiple</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getValueSingle <em>Value Single</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getValueMultiple <em>Value Multiple</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefinition {
@@ -40,7 +40,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getName()
* @generated
* @ordered
@@ -51,7 +50,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getName()
* @generated
* @ordered
@@ -62,7 +60,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
* The default value of the '{@link #getValueSingle() <em>Value Single</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getValueSingle()
* @generated
* @ordered
@@ -73,7 +70,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
* The cached value of the '{@link #getValueSingle() <em>Value Single</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getValueSingle()
* @generated
* @ordered
@@ -84,7 +80,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
* The default value of the '{@link #getValueMultiple() <em>Value Multiple</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getValueMultiple()
* @generated
* @ordered
@@ -95,7 +90,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
* The cached value of the '{@link #getValueMultiple() <em>Value Multiple</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getValueMultiple()
* @generated
* @ordered
@@ -105,7 +99,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected PropertyDefinitionImpl() {
@@ -115,7 +108,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -126,7 +118,6 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getName() {
@@ -136,20 +127,18 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public State getValueSingle() {
@@ -159,20 +148,18 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setValueSingle(State newValueSingle) {
State oldValueSingle = valueSingle;
valueSingle = newValueSingle;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE, oldValueSingle, valueSingle));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public State getValueMultiple() {
@@ -182,31 +169,29 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setValueMultiple(State newValueMultiple) {
State oldValueMultiple = valueMultiple;
valueMultiple = newValueMultiple;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE, oldValueMultiple, valueMultiple));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
- return getName();
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
- return getValueSingle();
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
- return getValueMultiple();
+ switch (featureID) {
+ case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
+ return getName();
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
+ return getValueSingle();
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
+ return getValueMultiple();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -214,21 +199,20 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
- setName((String)newValue);
- return;
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
- setValueSingle((State)newValue);
- return;
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
- setValueMultiple((State)newValue);
- return;
+ switch (featureID) {
+ case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
+ setName((String)newValue);
+ return;
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
+ setValueSingle((State)newValue);
+ return;
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
+ setValueMultiple((State)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -236,21 +220,20 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
- setName(NAME_EDEFAULT);
- return;
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
- setValueSingle(VALUE_SINGLE_EDEFAULT);
- return;
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
- setValueMultiple(VALUE_MULTIPLE_EDEFAULT);
- return;
+ switch (featureID) {
+ case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
+ setValueSingle(VALUE_SINGLE_EDEFAULT);
+ return;
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
+ setValueMultiple(VALUE_MULTIPLE_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -258,18 +241,17 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
- return VALUE_SINGLE_EDEFAULT == null ? valueSingle != null : !VALUE_SINGLE_EDEFAULT.equals(valueSingle);
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
- return VALUE_MULTIPLE_EDEFAULT == null ? valueMultiple != null : !VALUE_MULTIPLE_EDEFAULT.equals(valueMultiple);
+ switch (featureID) {
+ case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
+ return VALUE_SINGLE_EDEFAULT == null ? valueSingle != null : !VALUE_SINGLE_EDEFAULT.equals(valueSingle);
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
+ return VALUE_MULTIPLE_EDEFAULT == null ? valueMultiple != null : !VALUE_MULTIPLE_EDEFAULT.equals(valueMultiple);
}
return super.eIsSet(featureID);
}
@@ -277,13 +259,11 @@ public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefin
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java
index 02bdff0fb8b..7ccac8432a6 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java
@@ -20,7 +20,6 @@ import org.eclipse.papyrus.customization.properties.generation.fieldselection.*;
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
* @generated
*/
@@ -30,7 +29,6 @@ public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static FieldSelectionPackage modelPackage;
@@ -39,11 +37,10 @@ public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public FieldSelectionAdapterFactory() {
- if(modelPackage == null) {
+ if (modelPackage == null) {
modelPackage = FieldSelectionPackage.eINSTANCE;
}
}
@@ -53,16 +50,15 @@ public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
* <!-- 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) {
+ if (object == modelPackage) {
return true;
}
- if(object instanceof EObject) {
+ if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
@@ -72,39 +68,32 @@ public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected FieldSelectionSwitch<Adapter> modelSwitch = new FieldSelectionSwitch<Adapter>() {
-
- @Override
- public Adapter caseFieldSelection(FieldSelection object) {
- return createFieldSelectionAdapter();
- }
-
- @Override
- public Adapter casePropertyDefinition(PropertyDefinition object) {
- return createPropertyDefinitionAdapter();
- }
-
- @Override
- public Adapter caseContextElement(ContextElement object) {
- return createContextElementAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ @Override
+ public Adapter caseFieldSelection(FieldSelection object) {
+ return createFieldSelectionAdapter();
+ }
+ @Override
+ public Adapter casePropertyDefinition(PropertyDefinition object) {
+ return createPropertyDefinitionAdapter();
+ }
+ @Override
+ public Adapter caseContextElement(ContextElement object) {
+ return createContextElementAdapter();
+ }
+ @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.
+ * @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@@ -115,13 +104,11 @@ public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection
- * <em>Field Selection</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection <em>Field Selection</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection
* @generated
@@ -131,13 +118,11 @@ public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition
- * <em>Property Definition</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition <em>Property Definition</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition
* @generated
@@ -147,13 +132,11 @@ public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement
- * <em>Context Element</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement <em>Context Element</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement
* @generated
@@ -167,7 +150,6 @@ public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @generated
*/
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java
index 1fb025eeddd..a3ea0ddecc2 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java
@@ -11,6 +11,8 @@ import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.util.Switch;
import org.eclipse.papyrus.customization.properties.generation.fieldselection.*;
/**
@@ -22,17 +24,16 @@ import org.eclipse.papyrus.customization.properties.generation.fieldselection.*;
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
* @generated
*/
-public class FieldSelectionSwitch<T> {
+public class FieldSelectionSwitch<T> extends
+Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static FieldSelectionPackage modelPackage;
@@ -41,80 +42,56 @@ public class FieldSelectionSwitch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public FieldSelectionSwitch() {
- if(modelPackage == null) {
+ if (modelPackage == null) {
modelPackage = FieldSelectionPackage.eINSTANCE;
}
}
/**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @parameter ePackage the package in question.
+ * @return whether this is a switch for the given package.
* @generated
*/
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
+ @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
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if(theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- } else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * 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 FieldSelectionPackage.FIELD_SELECTION:
- {
- FieldSelection fieldSelection = (FieldSelection)theEObject;
- T result = caseFieldSelection(fieldSelection);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case FieldSelectionPackage.PROPERTY_DEFINITION:
- {
- PropertyDefinition propertyDefinition = (PropertyDefinition)theEObject;
- T result = casePropertyDefinition(propertyDefinition);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case FieldSelectionPackage.CONTEXT_ELEMENT:
- {
- ContextElement contextElement = (ContextElement)theEObject;
- T result = caseContextElement(contextElement);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
+ switch (classifierID) {
+ case FieldSelectionPackage.FIELD_SELECTION: {
+ FieldSelection fieldSelection = (FieldSelection)theEObject;
+ T result = caseFieldSelection(fieldSelection);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FieldSelectionPackage.PROPERTY_DEFINITION: {
+ PropertyDefinition propertyDefinition = (PropertyDefinition)theEObject;
+ T result = casePropertyDefinition(propertyDefinition);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FieldSelectionPackage.CONTEXT_ELEMENT: {
+ ContextElement contextElement = (ContextElement)theEObject;
+ T result = caseContextElement(contextElement);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
}
}
@@ -124,9 +101,7 @@ public class FieldSelectionSwitch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Field Selection</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -141,9 +116,7 @@ public class FieldSelectionSwitch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Property Definition</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -158,9 +131,7 @@ public class FieldSelectionSwitch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Context Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -175,13 +146,12 @@ public class FieldSelectionSwitch<T> {
* 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.
+ * @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;
}

Back to the top