Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlDiagramElementImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlDiagramElementImpl.java141
1 files changed, 75 insertions, 66 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlDiagramElementImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlDiagramElementImpl.java
index b8a636d04a0..ab1a5938009 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlDiagramElementImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/impl/UmlDiagramElementImpl.java
@@ -15,25 +15,34 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
+
import org.eclipse.emf.common.util.EList;
+
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
+
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.papyrus.dd.di.DiagramElement;
import org.eclipse.papyrus.dd.di.Edge;
import org.eclipse.papyrus.dd.di.Style;
+
import org.eclipse.papyrus.dd.di.impl.DiagramElementImpl;
+
import org.eclipse.papyrus.umldi.UMLDIPackage;
import org.eclipse.papyrus.umldi.UmlDiagramElement;
import org.eclipse.papyrus.umldi.UmlEdge;
import org.eclipse.papyrus.umldi.UmlStyle;
+
import org.eclipse.uml2.common.util.DerivedUnionEObjectEList;
+
import org.eclipse.uml2.uml.Element;
/**
@@ -171,7 +180,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
* @generated
* @ordered
*/
- protected static final int[] MODEL_ELEMENT_ESUBSETS = new int[] { UMLDIPackage.UML_DIAGRAM_ELEMENT__UML_MODEL_ELEMENT };
+ protected static final int[] MODEL_ELEMENT_ESUBSETS = new int[]{ UMLDIPackage.UML_DIAGRAM_ELEMENT__UML_MODEL_ELEMENT };
/**
* <!-- begin-user-doc -->
@@ -182,7 +191,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
@Override
public Style getSharedStyle() {
Style sharedStyle = basicGetSharedStyle();
- return sharedStyle != null && sharedStyle.eIsProxy() ? (Style) eResolveProxy((InternalEObject) sharedStyle) : sharedStyle;
+ return sharedStyle != null && sharedStyle.eIsProxy() ? (Style)eResolveProxy((InternalEObject)sharedStyle) : sharedStyle;
}
/**
@@ -193,7 +202,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public Style basicGetSharedStyle() {
- if (eIsSet(UMLDIPackage.UML_DIAGRAM_ELEMENT__SHARED_UML_STYLE)) {
+ if(eIsSet(UMLDIPackage.UML_DIAGRAM_ELEMENT__SHARED_UML_STYLE)) {
return basicGetSharedUmlStyle();
}
return super.basicGetSharedStyle();
@@ -208,7 +217,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
@Override
public Style getLocalStyle() {
Style localStyle = basicGetLocalStyle();
- return localStyle != null && localStyle.eIsProxy() ? (Style) eResolveProxy((InternalEObject) localStyle) : localStyle;
+ return localStyle != null && localStyle.eIsProxy() ? (Style)eResolveProxy((InternalEObject)localStyle) : localStyle;
}
/**
@@ -219,7 +228,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public Style basicGetLocalStyle() {
- if (eIsSet(UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE)) {
+ if(eIsSet(UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE)) {
return getLocalUmlStyle();
}
return super.basicGetLocalStyle();
@@ -234,7 +243,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
@Override
public DiagramElement getOwningDiagramElement() {
DiagramElement owningDiagramElement = basicGetOwningDiagramElement();
- return owningDiagramElement != null && owningDiagramElement.eIsProxy() ? (DiagramElement) eResolveProxy((InternalEObject) owningDiagramElement) : owningDiagramElement;
+ return owningDiagramElement != null && owningDiagramElement.eIsProxy() ? (DiagramElement)eResolveProxy((InternalEObject)owningDiagramElement) : owningDiagramElement;
}
/**
@@ -246,7 +255,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
@Override
public DiagramElement basicGetOwningDiagramElement() {
UmlDiagramElement owningUmlDiagramElement = getOwningUmlDiagramElement();
- if (owningUmlDiagramElement != null) {
+ if(owningUmlDiagramElement != null) {
return owningUmlDiagramElement;
}
return super.basicGetOwningDiagramElement();
@@ -272,7 +281,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
* @generated
* @ordered
*/
- protected static final int[] OWNED_DIAGRAM_ELEMENT_ESUBSETS = new int[] { UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT };
+ protected static final int[] OWNED_DIAGRAM_ELEMENT_ESUBSETS = new int[]{ UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT };
/**
* <!-- begin-user-doc -->
@@ -294,7 +303,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
* @generated
* @ordered
*/
- protected static final int[] TARGET_EDGE_ESUBSETS = new int[] { UMLDIPackage.UML_DIAGRAM_ELEMENT__TARGET_UML_EDGE };
+ protected static final int[] TARGET_EDGE_ESUBSETS = new int[]{ UMLDIPackage.UML_DIAGRAM_ELEMENT__TARGET_UML_EDGE };
/**
* <!-- begin-user-doc -->
@@ -316,7 +325,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
* @generated
* @ordered
*/
- protected static final int[] SOURCE_EDGE_ESUBSETS = new int[] { UMLDIPackage.UML_DIAGRAM_ELEMENT__SOURCE_UML_EDGE };
+ protected static final int[] SOURCE_EDGE_ESUBSETS = new int[]{ UMLDIPackage.UML_DIAGRAM_ELEMENT__SOURCE_UML_EDGE };
/**
* <!-- begin-user-doc -->
@@ -326,7 +335,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public EList<Element> getUmlModelElement() {
- if (umlModelElement == null) {
+ if(umlModelElement == null) {
umlModelElement = new EObjectResolvingEList<Element>(Element.class, this, UMLDIPackage.UML_DIAGRAM_ELEMENT__UML_MODEL_ELEMENT);
}
return umlModelElement;
@@ -340,11 +349,11 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public UmlStyle getSharedUmlStyle() {
- if (sharedUmlStyle != null && sharedUmlStyle.eIsProxy()) {
- InternalEObject oldSharedUmlStyle = (InternalEObject) sharedUmlStyle;
- sharedUmlStyle = (UmlStyle) eResolveProxy(oldSharedUmlStyle);
- if (sharedUmlStyle != oldSharedUmlStyle) {
- if (eNotificationRequired()) {
+ if(sharedUmlStyle != null && sharedUmlStyle.eIsProxy()) {
+ InternalEObject oldSharedUmlStyle = (InternalEObject)sharedUmlStyle;
+ sharedUmlStyle = (UmlStyle)eResolveProxy(oldSharedUmlStyle);
+ if(sharedUmlStyle != oldSharedUmlStyle) {
+ if(eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLDIPackage.UML_DIAGRAM_ELEMENT__SHARED_UML_STYLE, oldSharedUmlStyle, sharedUmlStyle));
}
}
@@ -372,7 +381,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
public void setSharedUmlStyle(UmlStyle newSharedUmlStyle) {
UmlStyle oldSharedUmlStyle = sharedUmlStyle;
sharedUmlStyle = newSharedUmlStyle;
- if (eNotificationRequired()) {
+ if(eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.UML_DIAGRAM_ELEMENT__SHARED_UML_STYLE, oldSharedUmlStyle, sharedUmlStyle));
}
}
@@ -397,9 +406,9 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
public NotificationChain basicSetLocalUmlStyle(UmlStyle newLocalUmlStyle, NotificationChain msgs) {
UmlStyle oldLocalUmlStyle = localUmlStyle;
localUmlStyle = newLocalUmlStyle;
- if (eNotificationRequired()) {
+ if(eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE, oldLocalUmlStyle, newLocalUmlStyle);
- if (msgs == null) {
+ if(msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
@@ -416,19 +425,19 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public void setLocalUmlStyle(UmlStyle newLocalUmlStyle) {
- if (newLocalUmlStyle != localUmlStyle) {
+ if(newLocalUmlStyle != localUmlStyle) {
NotificationChain msgs = null;
- if (localUmlStyle != null) {
- msgs = ((InternalEObject) localUmlStyle).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE, null, msgs);
+ if(localUmlStyle != null) {
+ msgs = ((InternalEObject)localUmlStyle).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE, null, msgs);
}
- if (newLocalUmlStyle != null) {
- msgs = ((InternalEObject) newLocalUmlStyle).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE, null, msgs);
+ if(newLocalUmlStyle != null) {
+ msgs = ((InternalEObject)newLocalUmlStyle).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE, null, msgs);
}
msgs = basicSetLocalUmlStyle(newLocalUmlStyle, msgs);
- if (msgs != null) {
+ if(msgs != null) {
msgs.dispatch();
}
- } else if (eNotificationRequired()) {
+ } else if(eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE, newLocalUmlStyle, newLocalUmlStyle));
}
}
@@ -441,10 +450,10 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public UmlDiagramElement getOwningUmlDiagramElement() {
- if (eContainerFeatureID() != UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT) {
+ if(eContainerFeatureID() != UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT) {
return null;
}
- return (UmlDiagramElement) eInternalContainer();
+ return (UmlDiagramElement)eInternalContainer();
}
/**
@@ -454,7 +463,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
* @generated
*/
public NotificationChain basicSetOwningUmlDiagramElement(UmlDiagramElement newOwningUmlDiagramElement, NotificationChain msgs) {
- msgs = eBasicSetContainer((InternalEObject) newOwningUmlDiagramElement, UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT, msgs);
+ msgs = eBasicSetContainer((InternalEObject)newOwningUmlDiagramElement, UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT, msgs);
return msgs;
}
@@ -466,22 +475,22 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public void setOwningUmlDiagramElement(UmlDiagramElement newOwningUmlDiagramElement) {
- if (newOwningUmlDiagramElement != eInternalContainer() || (eContainerFeatureID() != UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT && newOwningUmlDiagramElement != null)) {
- if (EcoreUtil.isAncestor(this, newOwningUmlDiagramElement)) {
+ if(newOwningUmlDiagramElement != eInternalContainer() || (eContainerFeatureID() != UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT && newOwningUmlDiagramElement != null)) {
+ if(EcoreUtil.isAncestor(this, newOwningUmlDiagramElement)) {
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
}
NotificationChain msgs = null;
- if (eInternalContainer() != null) {
+ if(eInternalContainer() != null) {
msgs = eBasicRemoveFromContainer(msgs);
}
- if (newOwningUmlDiagramElement != null) {
- msgs = ((InternalEObject) newOwningUmlDiagramElement).eInverseAdd(this, UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT, UmlDiagramElement.class, msgs);
+ if(newOwningUmlDiagramElement != null) {
+ msgs = ((InternalEObject)newOwningUmlDiagramElement).eInverseAdd(this, UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT, UmlDiagramElement.class, msgs);
}
msgs = basicSetOwningUmlDiagramElement(newOwningUmlDiagramElement, msgs);
- if (msgs != null) {
+ if(msgs != null) {
msgs.dispatch();
}
- } else if (eNotificationRequired()) {
+ } else if(eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT, newOwningUmlDiagramElement, newOwningUmlDiagramElement));
}
}
@@ -494,7 +503,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public EList<UmlDiagramElement> getOwnedUmlDiagramElement() {
- if (ownedUmlDiagramElement == null) {
+ if(ownedUmlDiagramElement == null) {
ownedUmlDiagramElement = new EObjectContainmentWithInverseEList<UmlDiagramElement>(UmlDiagramElement.class, this, UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT, UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT);
}
return ownedUmlDiagramElement;
@@ -508,7 +517,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public EList<UmlEdge> getTargetUmlEdge() {
- if (targetUmlEdge == null) {
+ if(targetUmlEdge == null) {
targetUmlEdge = new EObjectWithInverseResolvingEList<UmlEdge>(UmlEdge.class, this, UMLDIPackage.UML_DIAGRAM_ELEMENT__TARGET_UML_EDGE, UMLDIPackage.UML_EDGE__TARGET_UML_DIAGRAM_ELEMENT);
}
return targetUmlEdge;
@@ -522,7 +531,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public EList<UmlEdge> getSourceUmlEdge() {
- if (sourceUmlEdge == null) {
+ if(sourceUmlEdge == null) {
sourceUmlEdge = new EObjectWithInverseResolvingEList<UmlEdge>(UmlEdge.class, this, UMLDIPackage.UML_DIAGRAM_ELEMENT__SOURCE_UML_EDGE, UMLDIPackage.UML_EDGE__SOURCE_UML_DIAGRAM_ELEMENT);
}
return sourceUmlEdge;
@@ -537,18 +546,18 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
+ switch(featureID) {
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT:
- if (eInternalContainer() != null) {
+ if(eInternalContainer() != null) {
msgs = eBasicRemoveFromContainer(msgs);
}
- return basicSetOwningUmlDiagramElement((UmlDiagramElement) otherEnd, msgs);
+ return basicSetOwningUmlDiagramElement((UmlDiagramElement)otherEnd, msgs);
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT:
- return ((InternalEList<InternalEObject>) (InternalEList<?>) getOwnedUmlDiagramElement()).basicAdd(otherEnd, msgs);
+ return ((InternalEList<InternalEObject>)(InternalEList<?>)getOwnedUmlDiagramElement()).basicAdd(otherEnd, msgs);
case UMLDIPackage.UML_DIAGRAM_ELEMENT__TARGET_UML_EDGE:
- return ((InternalEList<InternalEObject>) (InternalEList<?>) getTargetUmlEdge()).basicAdd(otherEnd, msgs);
+ return ((InternalEList<InternalEObject>)(InternalEList<?>)getTargetUmlEdge()).basicAdd(otherEnd, msgs);
case UMLDIPackage.UML_DIAGRAM_ELEMENT__SOURCE_UML_EDGE:
- return ((InternalEList<InternalEObject>) (InternalEList<?>) getSourceUmlEdge()).basicAdd(otherEnd, msgs);
+ return ((InternalEList<InternalEObject>)(InternalEList<?>)getSourceUmlEdge()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -561,17 +570,17 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
+ switch(featureID) {
case UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE:
return basicSetLocalUmlStyle(null, msgs);
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT:
return basicSetOwningUmlDiagramElement(null, msgs);
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT:
- return ((InternalEList<?>) getOwnedUmlDiagramElement()).basicRemove(otherEnd, msgs);
+ return ((InternalEList<?>)getOwnedUmlDiagramElement()).basicRemove(otherEnd, msgs);
case UMLDIPackage.UML_DIAGRAM_ELEMENT__TARGET_UML_EDGE:
- return ((InternalEList<?>) getTargetUmlEdge()).basicRemove(otherEnd, msgs);
+ return ((InternalEList<?>)getTargetUmlEdge()).basicRemove(otherEnd, msgs);
case UMLDIPackage.UML_DIAGRAM_ELEMENT__SOURCE_UML_EDGE:
- return ((InternalEList<?>) getSourceUmlEdge()).basicRemove(otherEnd, msgs);
+ return ((InternalEList<?>)getSourceUmlEdge()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -584,7 +593,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
- switch (eContainerFeatureID()) {
+ switch(eContainerFeatureID()) {
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT:
return eInternalContainer().eInverseRemove(this, UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT, UmlDiagramElement.class, msgs);
}
@@ -599,11 +608,11 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
+ switch(featureID) {
case UMLDIPackage.UML_DIAGRAM_ELEMENT__UML_MODEL_ELEMENT:
return getUmlModelElement();
case UMLDIPackage.UML_DIAGRAM_ELEMENT__SHARED_UML_STYLE:
- if (resolve) {
+ if(resolve) {
return getSharedUmlStyle();
}
return basicGetSharedUmlStyle();
@@ -630,31 +639,31 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
+ switch(featureID) {
case UMLDIPackage.UML_DIAGRAM_ELEMENT__UML_MODEL_ELEMENT:
getUmlModelElement().clear();
- getUmlModelElement().addAll((Collection<? extends Element>) newValue);
+ getUmlModelElement().addAll((Collection<? extends Element>)newValue);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__SHARED_UML_STYLE:
- setSharedUmlStyle((UmlStyle) newValue);
+ setSharedUmlStyle((UmlStyle)newValue);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE:
- setLocalUmlStyle((UmlStyle) newValue);
+ setLocalUmlStyle((UmlStyle)newValue);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT:
- setOwningUmlDiagramElement((UmlDiagramElement) newValue);
+ setOwningUmlDiagramElement((UmlDiagramElement)newValue);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT:
getOwnedUmlDiagramElement().clear();
- getOwnedUmlDiagramElement().addAll((Collection<? extends UmlDiagramElement>) newValue);
+ getOwnedUmlDiagramElement().addAll((Collection<? extends UmlDiagramElement>)newValue);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__TARGET_UML_EDGE:
getTargetUmlEdge().clear();
- getTargetUmlEdge().addAll((Collection<? extends UmlEdge>) newValue);
+ getTargetUmlEdge().addAll((Collection<? extends UmlEdge>)newValue);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__SOURCE_UML_EDGE:
getSourceUmlEdge().clear();
- getSourceUmlEdge().addAll((Collection<? extends UmlEdge>) newValue);
+ getSourceUmlEdge().addAll((Collection<? extends UmlEdge>)newValue);
return;
}
super.eSet(featureID, newValue);
@@ -668,18 +677,18 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
+ switch(featureID) {
case UMLDIPackage.UML_DIAGRAM_ELEMENT__UML_MODEL_ELEMENT:
getUmlModelElement().clear();
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__SHARED_UML_STYLE:
- setSharedUmlStyle((UmlStyle) null);
+ setSharedUmlStyle((UmlStyle)null);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__LOCAL_UML_STYLE:
- setLocalUmlStyle((UmlStyle) null);
+ setLocalUmlStyle((UmlStyle)null);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNING_UML_DIAGRAM_ELEMENT:
- setOwningUmlDiagramElement((UmlDiagramElement) null);
+ setOwningUmlDiagramElement((UmlDiagramElement)null);
return;
case UMLDIPackage.UML_DIAGRAM_ELEMENT__OWNED_UML_DIAGRAM_ELEMENT:
getOwnedUmlDiagramElement().clear();
@@ -702,7 +711,7 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
+ switch(featureID) {
case UMLDIPackage.UML_DIAGRAM_ELEMENT__MODEL_ELEMENT:
return isSetModelElement();
case UMLDIPackage.UML_DIAGRAM_ELEMENT__SHARED_STYLE:
@@ -811,4 +820,4 @@ public abstract class UmlDiagramElementImpl extends DiagramElementImpl implement
public boolean isSetSourceEdge() {
return super.isSetSourceEdge() || eIsSet(UMLDIPackage.UML_DIAGRAM_ELEMENT__SOURCE_UML_EDGE);
}
-} // UmlDiagramElementImpl
+} //UmlDiagramElementImpl

Back to the top