diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PaintImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PaintImpl.java | 105 |
1 files changed, 56 insertions, 49 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PaintImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PaintImpl.java index a4f8163ec82..057a384693b 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PaintImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PaintImpl.java @@ -37,8 +37,8 @@ import org.eclipse.papyrus.dd.dg.util.DGValidator; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.dd.dg.impl.PaintImpl#getColor <em>Color</em>}</li> - * <li>{@link org.eclipse.papyrus.dd.dg.impl.PaintImpl#getPaintServer <em>Paint Server</em>}</li> + * <li>{@link org.eclipse.papyrus.dd.dg.impl.PaintImpl#getColor <em>Color</em>}</li> + * <li>{@link org.eclipse.papyrus.dd.dg.impl.PaintImpl#getPaintServer <em>Paint Server</em>}</li> * </ul> * * @generated @@ -48,6 +48,7 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * The default value of the '{@link #getColor() <em>Color</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getColor() * @generated * @ordered @@ -57,6 +58,7 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * The cached value of the '{@link #getColor() <em>Color</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getColor() * @generated * @ordered @@ -66,6 +68,7 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * The cached value of the '{@link #getPaintServer() <em>Paint Server</em>}' reference. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getPaintServer() * @generated * @ordered @@ -74,6 +77,7 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected PaintImpl() { @@ -82,6 +86,7 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -91,6 +96,7 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public Color getColor() { @@ -99,25 +105,27 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public void setColor(Color newColor) { Color oldColor = color; color = newColor; - if (eNotificationRequired()) + if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.PAINT__COLOR, oldColor, color)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public PaintServer getPaintServer() { - if (paintServer != null && paintServer.eIsProxy()) { + if(paintServer != null && paintServer.eIsProxy()) { InternalEObject oldPaintServer = (InternalEObject)paintServer; paintServer = (PaintServer)eResolveProxy(oldPaintServer); - if (paintServer != oldPaintServer) { - if (eNotificationRequired()) + if(paintServer != oldPaintServer) { + if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, DGPackage.PAINT__PAINT_SERVER, oldPaintServer, paintServer)); } } @@ -126,6 +134,7 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public PaintServer basicGetPaintServer() { @@ -134,12 +143,13 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public void setPaintServer(PaintServer newPaintServer) { PaintServer oldPaintServer = paintServer; paintServer = newPaintServer; - if (eNotificationRequired()) + if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.PAINT__PAINT_SERVER, oldPaintServer, paintServer)); } @@ -156,110 +166,107 @@ public class PaintImpl extends MinimalEObjectImpl.Container implements Paint { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public boolean referencedPaintServerHasId(DiagnosticChain diagnostics, Map<Object, Object> context) { - return - DGValidator.validate - (DGPackage.Literals.PAINT, - this, - diagnostics, - context, - "http://www.eclipse.org/emf/2002/Ecore/OCL", - DGPackage.Literals.PAINT___REFERENCED_PAINT_SERVER_HAS_ID__DIAGNOSTICCHAIN_MAP, - REFERENCED_PAINT_SERVER_HAS_ID_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION, - Diagnostic.ERROR, - DGValidator.DIAGNOSTIC_SOURCE, - DGValidator.PAINT__REFERENCED_PAINT_SERVER_HAS_ID); + return DGValidator.validate(DGPackage.Literals.PAINT, this, diagnostics, context, "http://www.eclipse.org/emf/2002/Ecore/OCL", DGPackage.Literals.PAINT___REFERENCED_PAINT_SERVER_HAS_ID__DIAGNOSTICCHAIN_MAP, REFERENCED_PAINT_SERVER_HAS_ID_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION, Diagnostic.ERROR, DGValidator.DIAGNOSTIC_SOURCE, DGValidator.PAINT__REFERENCED_PAINT_SERVER_HAS_ID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case DGPackage.PAINT__COLOR: - return getColor(); - case DGPackage.PAINT__PAINT_SERVER: - if (resolve) return getPaintServer(); - return basicGetPaintServer(); + switch(featureID) { + case DGPackage.PAINT__COLOR: + return getColor(); + case DGPackage.PAINT__PAINT_SERVER: + if(resolve) + return getPaintServer(); + return basicGetPaintServer(); } 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.PAINT__COLOR: - setColor((Color)newValue); - return; - case DGPackage.PAINT__PAINT_SERVER: - setPaintServer((PaintServer)newValue); - return; + switch(featureID) { + case DGPackage.PAINT__COLOR: + setColor((Color)newValue); + return; + case DGPackage.PAINT__PAINT_SERVER: + setPaintServer((PaintServer)newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case DGPackage.PAINT__COLOR: - setColor(COLOR_EDEFAULT); - return; - case DGPackage.PAINT__PAINT_SERVER: - setPaintServer((PaintServer)null); - return; + switch(featureID) { + case DGPackage.PAINT__COLOR: + setColor(COLOR_EDEFAULT); + return; + case DGPackage.PAINT__PAINT_SERVER: + setPaintServer((PaintServer)null); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case DGPackage.PAINT__COLOR: - return COLOR_EDEFAULT == null ? color != null : !COLOR_EDEFAULT.equals(color); - case DGPackage.PAINT__PAINT_SERVER: - return paintServer != null; + switch(featureID) { + case DGPackage.PAINT__COLOR: + return COLOR_EDEFAULT == null ? color != null : !COLOR_EDEFAULT.equals(color); + case DGPackage.PAINT__PAINT_SERVER: + return paintServer != null; } 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.PAINT___REFERENCED_PAINT_SERVER_HAS_ID__DIAGNOSTICCHAIN_MAP: - return referencedPaintServerHasId((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1)); + switch(operationID) { + case DGPackage.PAINT___REFERENCED_PAINT_SERVER_HAS_ID__DIAGNOSTICCHAIN_MAP: + return referencedPaintServerHasId((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(" (color: "); result.append(color); |