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/LineImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/LineImpl.java115
1 files changed, 68 insertions, 47 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/LineImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/LineImpl.java
index 09ad575123e..1b5decd6314 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/LineImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/LineImpl.java
@@ -30,8 +30,8 @@ import org.eclipse.papyrus.dd.dg.Line;
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.LineImpl#getStart <em>Start</em>}</li>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.LineImpl#getEnd <em>End</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.LineImpl#getStart <em>Start</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.LineImpl#getEnd <em>End</em>}</li>
* </ul>
*
* @generated
@@ -41,6 +41,7 @@ public class LineImpl extends MarkedElementImpl implements Line {
/**
* The cached value of the '{@link #getStart() <em>Start</em>}' containment reference.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getStart()
* @generated
* @ordered
@@ -50,6 +51,7 @@ public class LineImpl extends MarkedElementImpl implements Line {
/**
* The cached value of the '{@link #getEnd() <em>End</em>}' containment reference.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getEnd()
* @generated
* @ordered
@@ -58,6 +60,7 @@ public class LineImpl extends MarkedElementImpl implements Line {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected LineImpl() {
@@ -66,6 +69,7 @@ public class LineImpl extends MarkedElementImpl implements Line {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -75,6 +79,7 @@ public class LineImpl extends MarkedElementImpl implements Line {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public Point getStart() {
@@ -83,38 +88,44 @@ public class LineImpl extends MarkedElementImpl implements Line {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetStart(Point newStart, NotificationChain msgs) {
Point oldStart = start;
start = newStart;
- if (eNotificationRequired()) {
+ if(eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.LINE__START, oldStart, newStart);
- 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 setStart(Point newStart) {
- if (newStart != start) {
+ if(newStart != start) {
NotificationChain msgs = null;
- if (start != null)
+ if(start != null)
msgs = ((InternalEObject)start).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DGPackage.LINE__START, null, msgs);
- if (newStart != null)
+ if(newStart != null)
msgs = ((InternalEObject)newStart).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.LINE__START, null, msgs);
msgs = basicSetStart(newStart, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
+ if(msgs != null)
+ msgs.dispatch();
+ } else if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.LINE__START, newStart, newStart));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public Point getEnd() {
@@ -123,111 +134,121 @@ public class LineImpl extends MarkedElementImpl implements Line {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetEnd(Point newEnd, NotificationChain msgs) {
Point oldEnd = end;
end = newEnd;
- if (eNotificationRequired()) {
+ if(eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.LINE__END, oldEnd, newEnd);
- 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 setEnd(Point newEnd) {
- if (newEnd != end) {
+ if(newEnd != end) {
NotificationChain msgs = null;
- if (end != null)
+ if(end != null)
msgs = ((InternalEObject)end).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DGPackage.LINE__END, null, msgs);
- if (newEnd != null)
+ if(newEnd != null)
msgs = ((InternalEObject)newEnd).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.LINE__END, null, msgs);
msgs = basicSetEnd(newEnd, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
+ if(msgs != null)
+ msgs.dispatch();
+ } else if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.LINE__END, newEnd, newEnd));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case DGPackage.LINE__START:
- return basicSetStart(null, msgs);
- case DGPackage.LINE__END:
- return basicSetEnd(null, msgs);
+ switch(featureID) {
+ case DGPackage.LINE__START:
+ return basicSetStart(null, msgs);
+ case DGPackage.LINE__END:
+ return basicSetEnd(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.LINE__START:
- return getStart();
- case DGPackage.LINE__END:
- return getEnd();
+ switch(featureID) {
+ case DGPackage.LINE__START:
+ return getStart();
+ case DGPackage.LINE__END:
+ return getEnd();
}
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.LINE__START:
- setStart((Point)newValue);
- return;
- case DGPackage.LINE__END:
- setEnd((Point)newValue);
- return;
+ switch(featureID) {
+ case DGPackage.LINE__START:
+ setStart((Point)newValue);
+ return;
+ case DGPackage.LINE__END:
+ setEnd((Point)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case DGPackage.LINE__START:
- setStart((Point)null);
- return;
- case DGPackage.LINE__END:
- setEnd((Point)null);
- return;
+ switch(featureID) {
+ case DGPackage.LINE__START:
+ setStart((Point)null);
+ return;
+ case DGPackage.LINE__END:
+ setEnd((Point)null);
+ return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DGPackage.LINE__START:
- return start != null;
- case DGPackage.LINE__END:
- return end != null;
+ switch(featureID) {
+ case DGPackage.LINE__START:
+ return start != null;
+ case DGPackage.LINE__END:
+ return end != null;
}
return super.eIsSet(featureID);
}

Back to the top