Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/legacy/impl/ImplSingleRefContainerImpl.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/legacy/impl/ImplSingleRefContainerImpl.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/legacy/impl/ImplSingleRefContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/legacy/impl/ImplSingleRefContainerImpl.java
index 1a8c4d76d8..79bdaa778a 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/legacy/impl/ImplSingleRefContainerImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/legacy/impl/ImplSingleRefContainerImpl.java
@@ -87,9 +87,13 @@ public class ImplSingleRefContainerImpl extends EObjectImpl implements ImplSingl
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT, oldElement, newElement);
if (msgs == null)
+ {
msgs = notification;
+ }
else
+ {
msgs.add(notification);
+ }
}
return msgs;
}
@@ -104,18 +108,26 @@ public class ImplSingleRefContainerImpl extends EObjectImpl implements ImplSingl
{
NotificationChain msgs = null;
if (element != null)
+ {
msgs = ((InternalEObject)element).eInverseRemove(this,
model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT, ISingleRefContainedElement.class, msgs);
+ }
if (newElement != null)
+ {
msgs = ((InternalEObject)newElement).eInverseAdd(this,
model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT, ISingleRefContainedElement.class, msgs);
+ }
msgs = basicSetElement(newElement, msgs);
if (msgs != null)
+ {
msgs.dispatch();
+ }
}
else if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT,
newElement, newElement));
+ }
}
/**
@@ -129,8 +141,10 @@ public class ImplSingleRefContainerImpl extends EObjectImpl implements ImplSingl
{
case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT:
if (element != null)
- msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT, null, msgs);
+ {
+ msgs = ((InternalEObject)element).eInverseRemove(this,
+ EOPPOSITE_FEATURE_BASE - model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT, null, msgs);
+ }
return basicSetElement((ISingleRefContainedElement)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);

Back to the top