@Override protected boolean isNotificationRequired() { return owner.eNotificationRequired(); }
@Override protected boolean isNotificationRequired() { return owner.eNotificationRequired(); }
@Override protected boolean isNotificationRequired() { return owner.eNotificationRequired(); }
public boolean eNotificationRequired() { return instance.eNotificationRequired(); }
public boolean eNotificationRequired() { return instance.eNotificationRequired(); }
@Override protected boolean isNotificationRequired() { return owner.eNotificationRequired(); }
@Override protected boolean isNotificationRequired() { return owner.eNotificationRequired(); }
@Override protected boolean isNotificationRequired() { return owner.eNotificationRequired(); }
private void notifyDerivedAttributeChange () { if ( this.source.eNotificationRequired () ) { this.source.eNotify ( new ENotificationImpl ( this.source, Notification.SET, this.derivedFeature, null, this.source.eGet ( this.derivedFeature, true, true ) ) ); } } }
private void attachObject(CDOObject object) { if (((InternalEObject)object).eNotificationRequired()) { CDOAdapterPolicy strongReferencePolicy = options().getStrongReferencePolicy(); int count = 0; for (Adapter adapter : object.eAdapters()) { if (strongReferencePolicy.isValid(object, adapter)) { count++; } } for (int i = 0; i < count; i++) { objects.add(object); } } }
private void attachObject(CDOObject object) { if (((InternalEObject)object).eNotificationRequired()) { CDOAdapterPolicy strongReferencePolicy = options().getStrongReferencePolicy(); int count = 0; for (Adapter adapter : object.eAdapters()) { if (strongReferencePolicy.isValid(object, adapter)) { count++; } } for (int i = 0; i < count; i++) { objects.add(object); } } }
@Override public NotificationChain dynamicInverseRemove (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { Object oldValue = settings.dynamicGet(index); if (oldValue == NIL) { oldValue = null; } settings.dynamicUnset(index); if (owner.eNotificationRequired()) { if (notifications == null) notifications = new NotificationChainImpl(4); if (isUnsettable()) { notifications.add(new ENotificationImpl(owner, Notification.UNSET, feature, oldValue, null)); } else { notifications.add(new ENotificationImpl(owner, Notification.SET, feature, oldValue, null)); } } return notifications; } }
public void dynamicUnset(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { if (owner.eNotificationRequired()) { Object oldValue = dynamicGet(owner, settings, index, false, true); settings.dynamicUnset(index); owner.eNotify (notificationCreator.createNotification (owner, Notification.SET, feature, oldValue, this.defaultValue)); } else { settings.dynamicUnset(index); } }
@Override public NotificationChain dynamicInverseRemove (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { Object oldValue = settings.dynamicGet(index); if (oldValue == NIL) { oldValue = null; } settings.dynamicUnset(index); if (owner.eNotificationRequired()) { if (notifications == null) notifications = new NotificationChainImpl(4); if (isUnsettable()) { notifications.add(new ENotificationImpl(owner, Notification.UNSET, feature, oldValue, null)); } else { notifications.add(new ENotificationImpl(owner, Notification.SET, feature, oldValue, null)); } } return notifications; } }
public void resolveLinkingProxy(InternalEObject owner, JvmIdentifiableElement newValue, EReference structuralFeature, int featureId) { EObject oldFeature = (EObject) owner.eGet(structuralFeature, false); if (oldFeature == null || !(oldFeature.eIsProxy())) { throw new IllegalStateException("Feature was already resolved to " + oldFeature); } if (owner.eNotificationRequired()) { boolean wasDeliver = owner.eDeliver(); owner.eSetDeliver(false); internalSetValue(owner, structuralFeature, newValue); owner.eSetDeliver(wasDeliver); if (newValue != oldFeature) { owner.eNotify(new ENotificationImpl(owner, Notification.RESOLVE, featureId, oldFeature, newValue)); } } else { internalSetValue(owner, structuralFeature, newValue); } }
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)); } }
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)); } }
public void dynamicUnset(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { if (owner.eNotificationRequired()) { Object oldValue = dynamicGet(owner, settings, index, false, true); settings.dynamicUnset(index); owner.eNotify (notificationCreator.createNotification (owner, Notification.SET, feature, oldValue, this.defaultValue)); } else { settings.dynamicUnset(index); } }
@Override public void dynamicUnset(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { if (owner.eNotificationRequired()) { boolean oldIsSet = true; Object oldValue = settings.dynamicGet(index); if (oldValue == null) { oldIsSet = false; oldValue = this.defaultValue; } else if (oldValue == NIL) { oldValue = null; } settings.dynamicUnset(index); owner.eNotify (notificationCreator.createNotification (owner, Notification.UNSET, feature, oldValue, this.defaultValue, oldIsSet)); } else { settings.dynamicUnset(index); } }
@Override public void dynamicUnset(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { if (owner.eNotificationRequired()) { boolean oldIsSet = true; Object oldValue = settings.dynamicGet(index); if (oldValue == null) { oldIsSet = false; oldValue = this.defaultValue; } else if (oldValue == NIL) { oldValue = null; } settings.dynamicUnset(index); owner.eNotify (notificationCreator.createNotification (owner, Notification.UNSET, feature, oldValue, this.defaultValue, oldIsSet)); } else { settings.dynamicUnset(index); } }