diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/di/impl/ShapeImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/di/impl/ShapeImpl.java | 78 |
1 files changed, 44 insertions, 34 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/di/impl/ShapeImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/di/impl/ShapeImpl.java index bfa1d26e1ba..e8e97183140 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/di/impl/ShapeImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/di/impl/ShapeImpl.java @@ -25,15 +25,14 @@ import org.eclipse.papyrus.dd.di.DIPackage; import org.eclipse.papyrus.dd.di.Shape; /** - * <!-- begin-user-doc --> An implementation of the model object ' - * <em><b>Shape</b></em>'. <!-- end-user-doc --> + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Shape</b></em>'. <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.dd.di.impl.ShapeImpl#getBounds <em>Bounds</em>}</li> + * <li>{@link org.eclipse.papyrus.dd.di.impl.ShapeImpl#getBounds <em>Bounds</em>}</li> * </ul> * </p> - * + * * @generated */ public abstract class ShapeImpl extends DiagramElementImpl implements Shape { @@ -41,6 +40,7 @@ public abstract class ShapeImpl extends DiagramElementImpl implements Shape { /** * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getBounds() * @generated * @ordered @@ -49,6 +49,7 @@ public abstract class ShapeImpl extends DiagramElementImpl implements Shape { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected ShapeImpl() { @@ -57,6 +58,7 @@ public abstract class ShapeImpl extends DiagramElementImpl implements Shape { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -66,6 +68,7 @@ public abstract class ShapeImpl extends DiagramElementImpl implements Shape { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public Bounds getBounds() { @@ -74,103 +77,110 @@ public abstract class ShapeImpl extends DiagramElementImpl implements Shape { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ - public NotificationChain basicSetBounds(Bounds newBounds, - NotificationChain msgs) { + public NotificationChain basicSetBounds(Bounds newBounds, NotificationChain msgs) { Bounds oldBounds = bounds; bounds = newBounds; - if (eNotificationRequired()) { + if(eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DIPackage.SHAPE__BOUNDS, oldBounds, newBounds); - if (msgs == null) msgs = notification; else msgs.add(notification); + if(msgs == null) + msgs = notification; + else + msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public void setBounds(Bounds newBounds) { - if (newBounds != bounds) { + if(newBounds != bounds) { NotificationChain msgs = null; - if (bounds != null) + if(bounds != null) msgs = ((InternalEObject)bounds).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DIPackage.SHAPE__BOUNDS, null, msgs); - if (newBounds != null) + if(newBounds != null) msgs = ((InternalEObject)newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DIPackage.SHAPE__BOUNDS, null, msgs); msgs = basicSetBounds(newBounds, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) + if(msgs != null) + msgs.dispatch(); + } else if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DIPackage.SHAPE__BOUNDS, newBounds, newBounds)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, - int featureID, NotificationChain msgs) { - switch (featureID) { - case DIPackage.SHAPE__BOUNDS: - return basicSetBounds(null, msgs); + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch(featureID) { + case DIPackage.SHAPE__BOUNDS: + return basicSetBounds(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case DIPackage.SHAPE__BOUNDS: - return getBounds(); + switch(featureID) { + case DIPackage.SHAPE__BOUNDS: + return getBounds(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case DIPackage.SHAPE__BOUNDS: - setBounds((Bounds)newValue); - return; + switch(featureID) { + case DIPackage.SHAPE__BOUNDS: + setBounds((Bounds)newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case DIPackage.SHAPE__BOUNDS: - setBounds((Bounds)null); - return; + switch(featureID) { + case DIPackage.SHAPE__BOUNDS: + setBounds((Bounds)null); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case DIPackage.SHAPE__BOUNDS: - return bounds != null; + switch(featureID) { + case DIPackage.SHAPE__BOUNDS: + return bounds != null; } return super.eIsSet(featureID); } - } // ShapeImpl |