diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PatternImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PatternImpl.java | 115 |
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/PatternImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PatternImpl.java index 15c44170079..3b402da44cd 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PatternImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/PatternImpl.java @@ -31,8 +31,8 @@ import org.eclipse.papyrus.dd.dg.Pattern; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.dd.dg.impl.PatternImpl#getBounds <em>Bounds</em>}</li> - * <li>{@link org.eclipse.papyrus.dd.dg.impl.PatternImpl#getTile <em>Tile</em>}</li> + * <li>{@link org.eclipse.papyrus.dd.dg.impl.PatternImpl#getBounds <em>Bounds</em>}</li> + * <li>{@link org.eclipse.papyrus.dd.dg.impl.PatternImpl#getTile <em>Tile</em>}</li> * </ul> * * @generated @@ -42,6 +42,7 @@ public class PatternImpl extends PaintServerImpl implements Pattern { /** * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getBounds() * @generated * @ordered @@ -51,6 +52,7 @@ public class PatternImpl extends PaintServerImpl implements Pattern { /** * The cached value of the '{@link #getTile() <em>Tile</em>}' containment reference. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getTile() * @generated * @ordered @@ -59,6 +61,7 @@ public class PatternImpl extends PaintServerImpl implements Pattern { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected PatternImpl() { @@ -67,6 +70,7 @@ public class PatternImpl extends PaintServerImpl implements Pattern { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -76,6 +80,7 @@ public class PatternImpl extends PaintServerImpl implements Pattern { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public Bounds getBounds() { @@ -84,38 +89,44 @@ public class PatternImpl extends PaintServerImpl implements Pattern { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetBounds(Bounds newBounds, NotificationChain msgs) { Bounds oldBounds = bounds; bounds = newBounds; - if (eNotificationRequired()) { + if(eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.PATTERN__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 - DGPackage.PATTERN__BOUNDS, null, msgs); - if (newBounds != null) + if(newBounds != null) msgs = ((InternalEObject)newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.PATTERN__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, DGPackage.PATTERN__BOUNDS, newBounds, newBounds)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public GraphicalElement getTile() { @@ -124,111 +135,121 @@ public class PatternImpl extends PaintServerImpl implements Pattern { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetTile(GraphicalElement newTile, NotificationChain msgs) { GraphicalElement oldTile = tile; tile = newTile; - if (eNotificationRequired()) { + if(eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.PATTERN__TILE, oldTile, newTile); - 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 setTile(GraphicalElement newTile) { - if (newTile != tile) { + if(newTile != tile) { NotificationChain msgs = null; - if (tile != null) + if(tile != null) msgs = ((InternalEObject)tile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DGPackage.PATTERN__TILE, null, msgs); - if (newTile != null) + if(newTile != null) msgs = ((InternalEObject)newTile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.PATTERN__TILE, null, msgs); msgs = basicSetTile(newTile, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) + if(msgs != null) + msgs.dispatch(); + } else if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.PATTERN__TILE, newTile, newTile)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case DGPackage.PATTERN__BOUNDS: - return basicSetBounds(null, msgs); - case DGPackage.PATTERN__TILE: - return basicSetTile(null, msgs); + switch(featureID) { + case DGPackage.PATTERN__BOUNDS: + return basicSetBounds(null, msgs); + case DGPackage.PATTERN__TILE: + return basicSetTile(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.PATTERN__BOUNDS: - return getBounds(); - case DGPackage.PATTERN__TILE: - return getTile(); + switch(featureID) { + case DGPackage.PATTERN__BOUNDS: + return getBounds(); + case DGPackage.PATTERN__TILE: + return getTile(); } 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.PATTERN__BOUNDS: - setBounds((Bounds)newValue); - return; - case DGPackage.PATTERN__TILE: - setTile((GraphicalElement)newValue); - return; + switch(featureID) { + case DGPackage.PATTERN__BOUNDS: + setBounds((Bounds)newValue); + return; + case DGPackage.PATTERN__TILE: + setTile((GraphicalElement)newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case DGPackage.PATTERN__BOUNDS: - setBounds((Bounds)null); - return; - case DGPackage.PATTERN__TILE: - setTile((GraphicalElement)null); - return; + switch(featureID) { + case DGPackage.PATTERN__BOUNDS: + setBounds((Bounds)null); + return; + case DGPackage.PATTERN__TILE: + setTile((GraphicalElement)null); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case DGPackage.PATTERN__BOUNDS: - return bounds != null; - case DGPackage.PATTERN__TILE: - return tile != null; + switch(featureID) { + case DGPackage.PATTERN__BOUNDS: + return bounds != null; + case DGPackage.PATTERN__TILE: + return tile != null; } return super.eIsSet(featureID); } |