diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlShapeImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlShapeImpl.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlShapeImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlShapeImpl.java index c43439eaff5..17b02aeb96d 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlShapeImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlShapeImpl.java @@ -89,9 +89,9 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { public NotificationChain basicSetBounds(Bounds newBounds, NotificationChain msgs) { Bounds oldBounds = bounds; bounds = newBounds; - if (eNotificationRequired()) { + if(eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLDIPackage.UML_SHAPE__BOUNDS, oldBounds, newBounds); - if (msgs == null) { + if(msgs == null) { msgs = notification; } else { msgs.add(notification); @@ -108,19 +108,19 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { */ @Override public void setBounds(Bounds newBounds) { - if (newBounds != bounds) { + if(newBounds != bounds) { NotificationChain msgs = null; - if (bounds != null) { - msgs = ((InternalEObject) bounds).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.UML_SHAPE__BOUNDS, null, msgs); + if(bounds != null) { + msgs = ((InternalEObject)bounds).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.UML_SHAPE__BOUNDS, null, msgs); } - if (newBounds != null) { - msgs = ((InternalEObject) newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.UML_SHAPE__BOUNDS, null, msgs); + if(newBounds != null) { + msgs = ((InternalEObject)newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.UML_SHAPE__BOUNDS, null, msgs); } msgs = basicSetBounds(newBounds, msgs); - if (msgs != null) { + if(msgs != null) { msgs.dispatch(); } - } else if (eNotificationRequired()) { + } else if(eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.UML_SHAPE__BOUNDS, newBounds, newBounds)); } } @@ -133,7 +133,7 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { + switch(featureID) { case UMLDIPackage.UML_SHAPE__BOUNDS: return basicSetBounds(null, msgs); } @@ -148,7 +148,7 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { + switch(featureID) { case UMLDIPackage.UML_SHAPE__BOUNDS: return getBounds(); } @@ -163,9 +163,9 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { + switch(featureID) { case UMLDIPackage.UML_SHAPE__BOUNDS: - setBounds((Bounds) newValue); + setBounds((Bounds)newValue); return; } super.eSet(featureID, newValue); @@ -179,9 +179,9 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { */ @Override public void eUnset(int featureID) { - switch (featureID) { + switch(featureID) { case UMLDIPackage.UML_SHAPE__BOUNDS: - setBounds((Bounds) null); + setBounds((Bounds)null); return; } super.eUnset(featureID); @@ -195,7 +195,7 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { + switch(featureID) { case UMLDIPackage.UML_SHAPE__BOUNDS: return bounds != null; } @@ -210,8 +210,8 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { */ @Override public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { - if (baseClass == Shape.class) { - switch (derivedFeatureID) { + if(baseClass == Shape.class) { + switch(derivedFeatureID) { case UMLDIPackage.UML_SHAPE__BOUNDS: return DIPackage.SHAPE__BOUNDS; default: @@ -229,8 +229,8 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { - if (baseClass == Shape.class) { - switch (baseFeatureID) { + if(baseClass == Shape.class) { + switch(baseFeatureID) { case DIPackage.SHAPE__BOUNDS: return UMLDIPackage.UML_SHAPE__BOUNDS; default: @@ -239,4 +239,4 @@ public class UmlShapeImpl extends UmlDiagramElementImpl implements UmlShape { } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } -} // UmlShapeImpl +} //UmlShapeImpl |