diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ActivityPartitionShapeImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ActivityPartitionShapeImpl.java | 158 |
1 files changed, 91 insertions, 67 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ActivityPartitionShapeImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ActivityPartitionShapeImpl.java index 79613f717c0..982c50bd0b9 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ActivityPartitionShapeImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/ActivityPartitionShapeImpl.java @@ -22,7 +22,7 @@ import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.papyrus.umldi.ActivityPartitionShape; -import org.eclipse.papyrus.umldi.SubPartitionCompartment; +import org.eclipse.papyrus.umldi.SubpartitionCompartment; import org.eclipse.papyrus.umldi.UMLDIPackage; import org.eclipse.papyrus.umldi.UmlDiagramElement; @@ -36,45 +36,52 @@ import org.eclipse.uml2.common.util.DerivedUnionEObjectEList; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.umldi.impl.ActivityPartitionShapeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li> - * <li>{@link org.eclipse.papyrus.umldi.impl.ActivityPartitionShapeImpl#isVertical <em>Is Vertical</em>}</li> - * <li>{@link org.eclipse.papyrus.umldi.impl.ActivityPartitionShapeImpl#getSubPartitionCompartment <em>Sub Partition Compartment</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.ActivityPartitionShapeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.ActivityPartitionShapeImpl#isVertical <em>Is Vertical</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.ActivityPartitionShapeImpl#getSubpartitionCompartment <em>Subpartition Compartment</em>}</li> * </ul> * * @generated */ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implements ActivityPartitionShape { + /** * The default value of the '{@link #isVertical() <em>Is Vertical</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #isVertical() * @generated * @ordered */ protected static final boolean IS_VERTICAL_EDEFAULT = true; + /** * The cached value of the '{@link #isVertical() <em>Is Vertical</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #isVertical() * @generated * @ordered */ protected boolean isVertical = IS_VERTICAL_EDEFAULT; + /** - * The cached value of the '{@link #getSubPartitionCompartment() <em>Sub Partition Compartment</em>}' containment reference. + * The cached value of the '{@link #getSubpartitionCompartment() <em>Subpartition Compartment</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * @see #getSubPartitionCompartment() + * + * @see #getSubpartitionCompartment() * @generated * @ordered */ - protected SubPartitionCompartment subPartitionCompartment; + protected SubpartitionCompartment subpartitionCompartment; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected ActivityPartitionShapeImpl() { @@ -84,6 +91,7 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -94,6 +102,7 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -105,15 +114,17 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement * The array of subset feature identifiers for the '{@link #getOwnedUmlDiagramElement() <em>Owned Uml Diagram Element</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getOwnedUmlDiagramElement() * @generated * @ordered */ - protected static final int[] OWNED_UML_DIAGRAM_ELEMENT_ESUBSETS = new int[] {UMLDIPackage.ACTIVITY_PARTITION_SHAPE__MAIN_LABEL, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT}; + protected static final int[] OWNED_UML_DIAGRAM_ELEMENT_ESUBSETS = new int[]{ UMLDIPackage.ACTIVITY_PARTITION_SHAPE__STEREOTYPE_LABEL, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__MAIN_LABEL, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__STEREOTYPE_COMPARTMENT, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT }; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public boolean isVertical() { @@ -123,35 +134,41 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setIsVertical(boolean newIsVertical) { boolean oldIsVertical = isVertical; isVertical = newIsVertical; - if (eNotificationRequired()) + if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL, oldIsVertical, isVertical)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ - public SubPartitionCompartment getSubPartitionCompartment() { - return subPartitionCompartment; + public SubpartitionCompartment getSubpartitionCompartment() { + return subpartitionCompartment; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ - public NotificationChain basicSetSubPartitionCompartment(SubPartitionCompartment newSubPartitionCompartment, NotificationChain msgs) { - SubPartitionCompartment oldSubPartitionCompartment = subPartitionCompartment; - subPartitionCompartment = newSubPartitionCompartment; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT, oldSubPartitionCompartment, newSubPartitionCompartment); - if (msgs == null) msgs = notification; else msgs.add(notification); + public NotificationChain basicSetSubpartitionCompartment(SubpartitionCompartment newSubpartitionCompartment, NotificationChain msgs) { + SubpartitionCompartment oldSubpartitionCompartment = subpartitionCompartment; + subpartitionCompartment = newSubpartitionCompartment; + if(eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT, oldSubpartitionCompartment, newSubpartitionCompartment); + if(msgs == null) + msgs = notification; + else + msgs.add(notification); } return msgs; } @@ -159,34 +176,36 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ - public void setSubPartitionCompartment(SubPartitionCompartment newSubPartitionCompartment) { - if (newSubPartitionCompartment != subPartitionCompartment) { + public void setSubpartitionCompartment(SubpartitionCompartment newSubpartitionCompartment) { + if(newSubpartitionCompartment != subpartitionCompartment) { NotificationChain msgs = null; - if (subPartitionCompartment != null) - msgs = ((InternalEObject)subPartitionCompartment).eInverseRemove(this, UMLDIPackage.SUB_PARTITION_COMPARTMENT__ACTIVITY_PARTITION_SHAPE, SubPartitionCompartment.class, msgs); - if (newSubPartitionCompartment != null) - msgs = ((InternalEObject)newSubPartitionCompartment).eInverseAdd(this, UMLDIPackage.SUB_PARTITION_COMPARTMENT__ACTIVITY_PARTITION_SHAPE, SubPartitionCompartment.class, msgs); - msgs = basicSetSubPartitionCompartment(newSubPartitionCompartment, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT, newSubPartitionCompartment, newSubPartitionCompartment)); + if(subpartitionCompartment != null) + msgs = ((InternalEObject)subpartitionCompartment).eInverseRemove(this, UMLDIPackage.SUBPARTITION_COMPARTMENT__ACTIVITY_PARTITION_SHAPE, SubpartitionCompartment.class, msgs); + if(newSubpartitionCompartment != null) + msgs = ((InternalEObject)newSubpartitionCompartment).eInverseAdd(this, UMLDIPackage.SUBPARTITION_COMPARTMENT__ACTIVITY_PARTITION_SHAPE, SubpartitionCompartment.class, msgs); + msgs = basicSetSubpartitionCompartment(newSubpartitionCompartment, msgs); + if(msgs != null) + msgs.dispatch(); + } else if(eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT, newSubpartitionCompartment, newSubpartitionCompartment)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT: - if (subPartitionCompartment != null) - msgs = ((InternalEObject)subPartitionCompartment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT, null, msgs); - return basicSetSubPartitionCompartment((SubPartitionCompartment)otherEnd, msgs); + switch(featureID) { + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT: + if(subpartitionCompartment != null) + msgs = ((InternalEObject)subpartitionCompartment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT, null, msgs); + return basicSetSubpartitionCompartment((SubpartitionCompartment)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } @@ -194,13 +213,14 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT: - return basicSetSubPartitionCompartment(null, msgs); + switch(featureID) { + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT: + return basicSetSubpartitionCompartment(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -208,15 +228,16 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL: - return isVertical(); - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT: - return getSubPartitionCompartment(); + switch(featureID) { + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL: + return isVertical(); + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT: + return getSubpartitionCompartment(); } return super.eGet(featureID, resolve, coreType); } @@ -224,17 +245,18 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL: - setIsVertical((Boolean)newValue); - return; - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT: - setSubPartitionCompartment((SubPartitionCompartment)newValue); - return; + switch(featureID) { + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL: + setIsVertical((Boolean)newValue); + return; + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT: + setSubpartitionCompartment((SubpartitionCompartment)newValue); + return; } super.eSet(featureID, newValue); } @@ -242,17 +264,18 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL: - setIsVertical(IS_VERTICAL_EDEFAULT); - return; - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT: - setSubPartitionCompartment((SubPartitionCompartment)null); - return; + switch(featureID) { + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL: + setIsVertical(IS_VERTICAL_EDEFAULT); + return; + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT: + setSubpartitionCompartment((SubpartitionCompartment)null); + return; } super.eUnset(featureID); } @@ -260,17 +283,18 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__OWNED_UML_DIAGRAM_ELEMENT: - return isSetOwnedUmlDiagramElement(); - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL: - return isVertical != IS_VERTICAL_EDEFAULT; - case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT: - return subPartitionCompartment != null; + switch(featureID) { + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__OWNED_UML_DIAGRAM_ELEMENT: + return isSetOwnedUmlDiagramElement(); + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__IS_VERTICAL: + return isVertical != IS_VERTICAL_EDEFAULT; + case UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT: + return subpartitionCompartment != null; } return super.eIsSet(featureID); } @@ -278,12 +302,13 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- 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(" (isVertical: "); result.append(isVertical); @@ -294,12 +319,11 @@ public class ActivityPartitionShapeImpl extends ActivityGroupShapeImpl implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean isSetOwnedUmlDiagramElement() { - return super.isSetOwnedUmlDiagramElement() - || eIsSet(UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUB_PARTITION_COMPARTMENT); + return super.isSetOwnedUmlDiagramElement() || eIsSet(UMLDIPackage.ACTIVITY_PARTITION_SHAPE__SUBPARTITION_COMPARTMENT); } - } //ActivityPartitionShapeImpl |