Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java')
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java84
1 files changed, 27 insertions, 57 deletions
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java
index c01a5a65948..a6186d939d3 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java
@@ -12,17 +12,21 @@
*/
package org.eclipse.papyrus.infra.extendedtypes.impl;
-import org.eclipse.emf.common.notify.Notification;
+import java.util.Collection;
+
import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
+
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.infra.extendedtypes.AspectSemanticTypeAdviceConfiguration;
import org.eclipse.papyrus.infra.extendedtypes.AspectSemanticTypeConfiguration;
import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
+import org.eclipse.papyrus.infra.extendedtypes.SemanticActionConfiguration;
/**
* <!-- begin-user-doc -->
@@ -31,7 +35,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.AspectSemanticTypeConfigurationImpl#getAdviceConfiguration <em>Advice Configuration</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.AspectSemanticTypeConfigurationImpl#getActionConfiguration <em>Action Configuration</em>}</li>
* </ul>
* </p>
*
@@ -40,15 +44,15 @@ import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurationImpl implements AspectSemanticTypeConfiguration {
/**
- * The cached value of the '{@link #getAdviceConfiguration() <em>Advice Configuration</em>}' containment reference.
+ * The cached value of the '{@link #getActionConfiguration() <em>Action Configuration</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
- * @see #getAdviceConfiguration()
+ * @see #getActionConfiguration()
* @generated
* @ordered
*/
- protected AspectSemanticTypeAdviceConfiguration adviceConfiguration;
+ protected EList<SemanticActionConfiguration> actionConfiguration;
/**
* <!-- begin-user-doc -->
@@ -77,47 +81,11 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
*
* @generated
*/
- public AspectSemanticTypeAdviceConfiguration getAdviceConfiguration() {
- return adviceConfiguration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetAdviceConfiguration(AspectSemanticTypeAdviceConfiguration newAdviceConfiguration, NotificationChain msgs) {
- AspectSemanticTypeAdviceConfiguration oldAdviceConfiguration = adviceConfiguration;
- adviceConfiguration = newAdviceConfiguration;
- if(eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION, oldAdviceConfiguration, newAdviceConfiguration);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ public EList<SemanticActionConfiguration> getActionConfiguration() {
+ if(actionConfiguration == null) {
+ actionConfiguration = new EObjectContainmentEList<SemanticActionConfiguration>(SemanticActionConfiguration.class, this, ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION);
}
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setAdviceConfiguration(AspectSemanticTypeAdviceConfiguration newAdviceConfiguration) {
- if(newAdviceConfiguration != adviceConfiguration) {
- NotificationChain msgs = null;
- if(adviceConfiguration != null)
- msgs = ((InternalEObject)adviceConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION, null, msgs);
- if(newAdviceConfiguration != null)
- msgs = ((InternalEObject)newAdviceConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION, null, msgs);
- msgs = basicSetAdviceConfiguration(newAdviceConfiguration, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION, newAdviceConfiguration, newAdviceConfiguration));
+ return actionConfiguration;
}
/**
@@ -129,8 +97,8 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch(featureID) {
- case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION:
- return basicSetAdviceConfiguration(null, msgs);
+ case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
+ return ((InternalEList<?>)getActionConfiguration()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -144,8 +112,8 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch(featureID) {
- case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION:
- return getAdviceConfiguration();
+ case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
+ return getActionConfiguration();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -156,11 +124,13 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
*
* @generated
*/
+ @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch(featureID) {
- case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION:
- setAdviceConfiguration((AspectSemanticTypeAdviceConfiguration)newValue);
+ case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
+ getActionConfiguration().clear();
+ getActionConfiguration().addAll((Collection<? extends SemanticActionConfiguration>)newValue);
return;
}
super.eSet(featureID, newValue);
@@ -175,8 +145,8 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
@Override
public void eUnset(int featureID) {
switch(featureID) {
- case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION:
- setAdviceConfiguration((AspectSemanticTypeAdviceConfiguration)null);
+ case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
+ getActionConfiguration().clear();
return;
}
super.eUnset(featureID);
@@ -191,8 +161,8 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
@Override
public boolean eIsSet(int featureID) {
switch(featureID) {
- case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ADVICE_CONFIGURATION:
- return adviceConfiguration != null;
+ case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
+ return actionConfiguration != null && !actionConfiguration.isEmpty();
}
return super.eIsSet(featureID);
}

Back to the top