Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/DeploymentPlanImpl.java')
-rw-r--r--extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/DeploymentPlanImpl.java88
1 files changed, 33 insertions, 55 deletions
diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/DeploymentPlanImpl.java b/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/DeploymentPlanImpl.java
index e7d17eabb93..eeec84970e5 100644
--- a/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/DeploymentPlanImpl.java
+++ b/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/DeploymentPlanImpl.java
@@ -27,11 +27,11 @@ import org.eclipse.uml2.uml.InstanceSpecification;
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
+ * </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.FCM.impl.DeploymentPlanImpl#getMainInstance <em>Main Instance</em>}</li>
- * <li>{@link org.eclipse.papyrus.FCM.impl.DeploymentPlanImpl#getBase_Package <em>Base Package</em>}</li>
+ * <li>{@link org.eclipse.papyrus.FCM.impl.DeploymentPlanImpl#getMainInstance <em>Main Instance</em>}</li>
+ * <li>{@link org.eclipse.papyrus.FCM.impl.DeploymentPlanImpl#getBase_Package <em>Base Package</em>}</li>
* </ul>
- * </p>
*
* @generated
*/
@@ -40,7 +40,6 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
* The cached value of the '{@link #getMainInstance() <em>Main Instance</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getMainInstance()
* @generated
* @ordered
@@ -51,7 +50,6 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
* The cached value of the '{@link #getBase_Package() <em>Base Package</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Package()
* @generated
* @ordered
@@ -61,7 +59,6 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected DeploymentPlanImpl() {
@@ -71,7 +68,6 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -82,18 +78,16 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public InstanceSpecification getMainInstance() {
if (mainInstance != null && mainInstance.eIsProxy()) {
- InternalEObject oldMainInstance = (InternalEObject) mainInstance;
- mainInstance = (InstanceSpecification) eResolveProxy(oldMainInstance);
+ InternalEObject oldMainInstance = (InternalEObject)mainInstance;
+ mainInstance = (InstanceSpecification)eResolveProxy(oldMainInstance);
if (mainInstance != oldMainInstance) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE, oldMainInstance, mainInstance));
- }
}
}
return mainInstance;
@@ -102,7 +96,6 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public InstanceSpecification basicGetMainInstance() {
@@ -112,33 +105,29 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void setMainInstance(InstanceSpecification newMainInstance) {
InstanceSpecification oldMainInstance = mainInstance;
mainInstance = newMainInstance;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE, oldMainInstance, mainInstance));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public org.eclipse.uml2.uml.Package getBase_Package() {
if (base_Package != null && base_Package.eIsProxy()) {
- InternalEObject oldBase_Package = (InternalEObject) base_Package;
- base_Package = (org.eclipse.uml2.uml.Package) eResolveProxy(oldBase_Package);
+ InternalEObject oldBase_Package = (InternalEObject)base_Package;
+ base_Package = (org.eclipse.uml2.uml.Package)eResolveProxy(oldBase_Package);
if (base_Package != oldBase_Package) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE, oldBase_Package, base_Package));
- }
}
}
return base_Package;
@@ -147,7 +136,6 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public org.eclipse.uml2.uml.Package basicGetBase_Package() {
@@ -157,37 +145,30 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) {
org.eclipse.uml2.uml.Package oldBase_Package = base_Package;
base_Package = newBase_Package;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE, oldBase_Package, base_Package));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE:
- if (resolve) {
- return getMainInstance();
- }
- return basicGetMainInstance();
- case FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE:
- if (resolve) {
- return getBase_Package();
- }
- return basicGetBase_Package();
+ case FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE:
+ if (resolve) return getMainInstance();
+ return basicGetMainInstance();
+ case FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE:
+ if (resolve) return getBase_Package();
+ return basicGetBase_Package();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -195,18 +176,17 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE:
- setMainInstance((InstanceSpecification) newValue);
- return;
- case FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package) newValue);
- return;
+ case FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE:
+ setMainInstance((InstanceSpecification)newValue);
+ return;
+ case FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE:
+ setBase_Package((org.eclipse.uml2.uml.Package)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -214,18 +194,17 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE:
- setMainInstance((InstanceSpecification) null);
- return;
- case FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package) null);
- return;
+ case FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE:
+ setMainInstance((InstanceSpecification)null);
+ return;
+ case FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE:
+ setBase_Package((org.eclipse.uml2.uml.Package)null);
+ return;
}
super.eUnset(featureID);
}
@@ -233,16 +212,15 @@ public class DeploymentPlanImpl extends EObjectImpl implements DeploymentPlan {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE:
- return mainInstance != null;
- case FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE:
- return base_Package != null;
+ case FCMPackage.DEPLOYMENT_PLAN__MAIN_INSTANCE:
+ return mainInstance != null;
+ case FCMPackage.DEPLOYMENT_PLAN__BASE_PACKAGE:
+ return base_Package != null;
}
return super.eIsSet(featureID);
}

Back to the top