Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/AllocateImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/AllocateImpl.java75
1 files changed, 29 insertions, 46 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/AllocateImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/AllocateImpl.java
index 44488ff5966..9331126ba21 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/AllocateImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/AllocateImpl.java
@@ -1,23 +1,18 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
- *****************************************************************************/
+/**
+ */
package org.eclipse.papyrus.RobotML.impl;
import org.eclipse.emf.common.notify.Notification;
+
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
+
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.papyrus.RobotML.Allocate;
import org.eclipse.papyrus.RobotML.RobotMLPackage;
+
import org.eclipse.uml2.uml.Abstraction;
/**
@@ -27,19 +22,17 @@ import org.eclipse.uml2.uml.Abstraction;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.AllocateImpl#getBase_Abstraction <em>Base Abstraction</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.AllocateImpl#getBase_Abstraction <em>Base Abstraction</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class AllocateImpl extends EObjectImpl implements Allocate {
-
+public class AllocateImpl extends MinimalEObjectImpl.Container implements Allocate {
/**
* The cached value of the '{@link #getBase_Abstraction() <em>Base Abstraction</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Abstraction()
* @generated
* @ordered
@@ -49,7 +42,6 @@ public class AllocateImpl extends EObjectImpl implements Allocate {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected AllocateImpl() {
@@ -59,7 +51,6 @@ public class AllocateImpl extends EObjectImpl implements Allocate {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -70,15 +61,14 @@ public class AllocateImpl extends EObjectImpl implements Allocate {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Abstraction getBase_Abstraction() {
- if(base_Abstraction != null && base_Abstraction.eIsProxy()) {
+ if (base_Abstraction != null && base_Abstraction.eIsProxy()) {
InternalEObject oldBase_Abstraction = (InternalEObject)base_Abstraction;
base_Abstraction = (Abstraction)eResolveProxy(oldBase_Abstraction);
- if(base_Abstraction != oldBase_Abstraction) {
- if(eNotificationRequired())
+ if (base_Abstraction != oldBase_Abstraction) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, RobotMLPackage.ALLOCATE__BASE_ABSTRACTION, oldBase_Abstraction, base_Abstraction));
}
}
@@ -88,7 +78,6 @@ public class AllocateImpl extends EObjectImpl implements Allocate {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Abstraction basicGetBase_Abstraction() {
@@ -98,29 +87,26 @@ public class AllocateImpl extends EObjectImpl implements Allocate {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_Abstraction(Abstraction newBase_Abstraction) {
Abstraction oldBase_Abstraction = base_Abstraction;
base_Abstraction = newBase_Abstraction;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.ALLOCATE__BASE_ABSTRACTION, oldBase_Abstraction, base_Abstraction));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case RobotMLPackage.ALLOCATE__BASE_ABSTRACTION:
- if(resolve)
- return getBase_Abstraction();
- return basicGetBase_Abstraction();
+ switch (featureID) {
+ case RobotMLPackage.ALLOCATE__BASE_ABSTRACTION:
+ if (resolve) return getBase_Abstraction();
+ return basicGetBase_Abstraction();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -128,15 +114,14 @@ public class AllocateImpl extends EObjectImpl implements Allocate {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case RobotMLPackage.ALLOCATE__BASE_ABSTRACTION:
- setBase_Abstraction((Abstraction)newValue);
- return;
+ switch (featureID) {
+ case RobotMLPackage.ALLOCATE__BASE_ABSTRACTION:
+ setBase_Abstraction((Abstraction)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -144,15 +129,14 @@ public class AllocateImpl extends EObjectImpl implements Allocate {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case RobotMLPackage.ALLOCATE__BASE_ABSTRACTION:
- setBase_Abstraction((Abstraction)null);
- return;
+ switch (featureID) {
+ case RobotMLPackage.ALLOCATE__BASE_ABSTRACTION:
+ setBase_Abstraction((Abstraction)null);
+ return;
}
super.eUnset(featureID);
}
@@ -160,14 +144,13 @@ public class AllocateImpl extends EObjectImpl implements Allocate {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case RobotMLPackage.ALLOCATE__BASE_ABSTRACTION:
- return base_Abstraction != null;
+ switch (featureID) {
+ case RobotMLPackage.ALLOCATE__BASE_ABSTRACTION:
+ return base_Abstraction != null;
}
return super.eIsSet(featureID);
}

Back to the top