public NotificationChain eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID, NotificationChain notifications) { return instance.eBasicSetContainer(newContainer, newContainerFeatureID, notifications); }
public NotificationChain eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID, NotificationChain notifications) { return instance.eBasicSetContainer(newContainer, newContainerFeatureID, notifications); }
@Override public NotificationChain dynamicInverseRemove (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(null, featureID, notifications); } }
@Override public NotificationChain dynamicInverseRemove (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(null, featureID, notifications); } }
@Override public NotificationChain dynamicInverseAdd (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { if (owner.eInternalContainer() != null) { notifications = owner.eBasicRemoveFromContainer(notifications); } int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(otherEnd, featureID, notifications); }
@Override public NotificationChain dynamicInverseAdd (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { if (owner.eInternalContainer() != null) { notifications = owner.eBasicRemoveFromContainer(notifications); } int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(otherEnd, featureID, notifications); }
notifications = owner.eBasicSetContainer(internalEObject, featureID, notifications); if (notifications != null) notifications.dispatch();
public void dynamicUnset(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { EObject eContainer = owner.eInternalContainer(); if (eContainer != null) { NotificationChain notifications = owner.eBasicRemoveFromContainer(null); int featureID = owner.eClass().getFeatureID(feature); notifications = owner.eBasicSetContainer(null, featureID, notifications); if (notifications != null) notifications.dispatch(); } else { if (owner.eNotificationRequired()) owner.eNotify(new ENotificationImpl(owner, Notification.SET, feature, null, null)); } }
notifications = owner.eBasicSetContainer(internalEObject, featureID, notifications); if (notifications != null) notifications.dispatch();
public void dynamicUnset(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { EObject eContainer = owner.eInternalContainer(); if (eContainer != null) { NotificationChain notifications = owner.eBasicRemoveFromContainer(null); int featureID = owner.eClass().getFeatureID(feature); notifications = owner.eBasicSetContainer(null, featureID, notifications); if (notifications != null) notifications.dispatch(); } else { if (owner.eNotificationRequired()) owner.eNotify(new ENotificationImpl(owner, Notification.SET, feature, null, null)); } }
checkNotNull(old); if (reference.isContainment()) { old.eBasicSetContainer(null, -1, null); ((PersistentEObject) old).resource(null);