diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/MoveToImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/MoveToImpl.java | 79 |
1 files changed, 45 insertions, 34 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/MoveToImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/MoveToImpl.java index 8f37118cc3f..3f8d534833e 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/MoveToImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/MoveToImpl.java @@ -25,21 +25,22 @@ import org.eclipse.papyrus.dd.dg.DGPackage; import org.eclipse.papyrus.dd.dg.MoveTo; /** - * <!-- begin-user-doc --> An implementation of the model object ' - * <em><b>Move To</b></em>'. <!-- end-user-doc --> + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Move To</b></em>'. <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.dd.dg.impl.MoveToImpl#getPoint <em>Point</em>}</li> + * <li>{@link org.eclipse.papyrus.dd.dg.impl.MoveToImpl#getPoint <em>Point</em>}</li> * </ul> * </p> - * + * * @generated */ public class MoveToImpl extends PathCommandImpl implements MoveTo { + /** * The cached value of the '{@link #getPoint() <em>Point</em>}' containment reference. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getPoint() * @generated * @ordered @@ -48,6 +49,7 @@ public class MoveToImpl extends PathCommandImpl implements MoveTo { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected MoveToImpl() { @@ -56,6 +58,7 @@ public class MoveToImpl extends PathCommandImpl implements MoveTo { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -65,6 +68,7 @@ public class MoveToImpl extends PathCommandImpl implements MoveTo { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public Point getPoint() { @@ -73,103 +77,110 @@ public class MoveToImpl extends PathCommandImpl implements MoveTo { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ - public NotificationChain basicSetPoint(Point newPoint, - NotificationChain msgs) { + public NotificationChain basicSetPoint(Point newPoint, NotificationChain msgs) { Point oldPoint = point; point = newPoint; - if (eNotificationRequired()) { + if(eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.MOVE_TO__POINT, oldPoint, newPoint); - 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 setPoint(Point newPoint) { - if (newPoint != point) { + if(newPoint != point) { NotificationChain msgs = null; - if (point != null) + if(point != null) msgs = ((InternalEObject)point).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DGPackage.MOVE_TO__POINT, null, msgs); - if (newPoint != null) + if(newPoint != null) msgs = ((InternalEObject)newPoint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.MOVE_TO__POINT, null, msgs); msgs = basicSetPoint(newPoint, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) + if(msgs != null) + msgs.dispatch(); + } else if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.MOVE_TO__POINT, newPoint, newPoint)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, - int featureID, NotificationChain msgs) { - switch (featureID) { - case DGPackage.MOVE_TO__POINT: - return basicSetPoint(null, msgs); + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch(featureID) { + case DGPackage.MOVE_TO__POINT: + return basicSetPoint(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 DGPackage.MOVE_TO__POINT: - return getPoint(); + switch(featureID) { + case DGPackage.MOVE_TO__POINT: + return getPoint(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case DGPackage.MOVE_TO__POINT: - setPoint((Point)newValue); - return; + switch(featureID) { + case DGPackage.MOVE_TO__POINT: + setPoint((Point)newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case DGPackage.MOVE_TO__POINT: - setPoint((Point)null); - return; + switch(featureID) { + case DGPackage.MOVE_TO__POINT: + setPoint((Point)null); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case DGPackage.MOVE_TO__POINT: - return point != null; + switch(featureID) { + case DGPackage.MOVE_TO__POINT: + return point != null; } return super.eIsSet(featureID); } - } // MoveToImpl |