Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/CircleImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/CircleImpl.java124
1 files changed, 68 insertions, 56 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/CircleImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/CircleImpl.java
index e2e6d03073e..98d6b72e164 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/CircleImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/CircleImpl.java
@@ -40,8 +40,8 @@ import org.eclipse.papyrus.dd.dg.util.DGValidator;
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.CircleImpl#getCenter <em>Center</em>}</li>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.CircleImpl#getRadius <em>Radius</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.CircleImpl#getCenter <em>Center</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.CircleImpl#getRadius <em>Radius</em>}</li>
* </ul>
*
* @generated
@@ -51,6 +51,7 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* The cached value of the '{@link #getCenter() <em>Center</em>}' containment reference.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getCenter()
* @generated
* @ordered
@@ -60,6 +61,7 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* The default value of the '{@link #getRadius() <em>Radius</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getRadius()
* @generated
* @ordered
@@ -69,6 +71,7 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* The cached value of the '{@link #getRadius() <em>Radius</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getRadius()
* @generated
* @ordered
@@ -77,6 +80,7 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected CircleImpl() {
@@ -85,6 +89,7 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -94,6 +99,7 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public Point getCenter() {
@@ -102,38 +108,44 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetCenter(Point newCenter, NotificationChain msgs) {
Point oldCenter = center;
center = newCenter;
- if (eNotificationRequired()) {
+ if(eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.CIRCLE__CENTER, oldCenter, newCenter);
- 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 setCenter(Point newCenter) {
- if (newCenter != center) {
+ if(newCenter != center) {
NotificationChain msgs = null;
- if (center != null)
+ if(center != null)
msgs = ((InternalEObject)center).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DGPackage.CIRCLE__CENTER, null, msgs);
- if (newCenter != null)
+ if(newCenter != null)
msgs = ((InternalEObject)newCenter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.CIRCLE__CENTER, null, msgs);
msgs = basicSetCenter(newCenter, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
+ if(msgs != null)
+ msgs.dispatch();
+ } else if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.CIRCLE__CENTER, newCenter, newCenter));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public double getRadius() {
@@ -142,19 +154,22 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void setRadius(double newRadius) {
double oldRadius = radius;
radius = newRadius;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.CIRCLE__RADIUS, oldRadius, radius));
}
/**
- * The cached validation expression for the '{@link #nonNegativeRadius(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Non Negative Radius</em>}' invariant operation.
+ * The cached validation expression for the '{@link #nonNegativeRadius(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
+ * <em>Non Negative Radius</em>}' invariant operation.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
+ *
* @see #nonNegativeRadius(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
* @generated
* @ordered
@@ -163,122 +178,119 @@ public class CircleImpl extends GraphicalElementImpl implements Circle {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public boolean nonNegativeRadius(DiagnosticChain diagnostics, Map<Object, Object> context) {
- return
- DGValidator.validate
- (DGPackage.Literals.CIRCLE,
- this,
- diagnostics,
- context,
- "http://www.eclipse.org/emf/2002/Ecore/OCL",
- DGPackage.Literals.CIRCLE___NON_NEGATIVE_RADIUS__DIAGNOSTICCHAIN_MAP,
- NON_NEGATIVE_RADIUS_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION,
- Diagnostic.ERROR,
- DGValidator.DIAGNOSTIC_SOURCE,
- DGValidator.CIRCLE__NON_NEGATIVE_RADIUS);
+ return DGValidator.validate(DGPackage.Literals.CIRCLE, this, diagnostics, context, "http://www.eclipse.org/emf/2002/Ecore/OCL", DGPackage.Literals.CIRCLE___NON_NEGATIVE_RADIUS__DIAGNOSTICCHAIN_MAP, NON_NEGATIVE_RADIUS_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION, Diagnostic.ERROR, DGValidator.DIAGNOSTIC_SOURCE, DGValidator.CIRCLE__NON_NEGATIVE_RADIUS);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case DGPackage.CIRCLE__CENTER:
- return basicSetCenter(null, msgs);
+ switch(featureID) {
+ case DGPackage.CIRCLE__CENTER:
+ return basicSetCenter(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.CIRCLE__CENTER:
- return getCenter();
- case DGPackage.CIRCLE__RADIUS:
- return getRadius();
+ switch(featureID) {
+ case DGPackage.CIRCLE__CENTER:
+ return getCenter();
+ case DGPackage.CIRCLE__RADIUS:
+ return getRadius();
}
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.CIRCLE__CENTER:
- setCenter((Point)newValue);
- return;
- case DGPackage.CIRCLE__RADIUS:
- setRadius((Double)newValue);
- return;
+ switch(featureID) {
+ case DGPackage.CIRCLE__CENTER:
+ setCenter((Point)newValue);
+ return;
+ case DGPackage.CIRCLE__RADIUS:
+ setRadius((Double)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case DGPackage.CIRCLE__CENTER:
- setCenter((Point)null);
- return;
- case DGPackage.CIRCLE__RADIUS:
- setRadius(RADIUS_EDEFAULT);
- return;
+ switch(featureID) {
+ case DGPackage.CIRCLE__CENTER:
+ setCenter((Point)null);
+ return;
+ case DGPackage.CIRCLE__RADIUS:
+ setRadius(RADIUS_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DGPackage.CIRCLE__CENTER:
- return center != null;
- case DGPackage.CIRCLE__RADIUS:
- return radius != RADIUS_EDEFAULT;
+ switch(featureID) {
+ case DGPackage.CIRCLE__CENTER:
+ return center != null;
+ case DGPackage.CIRCLE__RADIUS:
+ return radius != RADIUS_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@SuppressWarnings("unchecked")
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
- switch (operationID) {
- case DGPackage.CIRCLE___NON_NEGATIVE_RADIUS__DIAGNOSTICCHAIN_MAP:
- return nonNegativeRadius((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
+ switch(operationID) {
+ case DGPackage.CIRCLE___NON_NEGATIVE_RADIUS__DIAGNOSTICCHAIN_MAP:
+ return nonNegativeRadius((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
}
return super.eInvoke(operationID, arguments);
}
/**
* <!-- 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(" (radius: ");
result.append(radius);

Back to the top