createNotification (Notification.ADD, feature, indexOf(feature, value), true) : createNotification (Notification.SET, feature,
createNotification (Notification.ADD, feature, indexOf(feature, value), true) : createNotification (Notification.SET, feature,
NotificationImpl notification = feature.isMany() ? createNotification (Notification.REMOVE, feature, indexOf(feature, value), true) : createNotification (feature.isUnsettable() ? Notification.UNSET : Notification.SET, feature,
NotificationImpl notification = feature.isMany() ? createNotification (Notification.REMOVE, feature, indexOf(feature, value), true) : createNotification (feature.isUnsettable() ? Notification.UNSET : Notification.SET, feature,
createNotification (Notification.REMOVE_MANY, feature, Notification.NO_INDEX, false) : createNotification (feature.isUnsettable() ? Notification.UNSET : Notification.SET, feature,
public Object resolveProxy(EStructuralFeature feature, int entryIndex, int index, Object object) { EObject resolved = resolveProxy((EObject)object); if (resolved != object) { Entry oldObject = (Entry)data[entryIndex]; Entry entry = createEntry(feature, resolved); assign(entryIndex, validate(entryIndex, entry)); didSet(entryIndex, entry, oldObject); if (isNotificationRequired()) { NotificationImpl notifications = createNotification (Notification.RESOLVE, entry.getEStructuralFeature(), object, resolved, index, false); notifications.add(createNotification(Notification.RESOLVE, oldObject, entry, index, false)); notifications.dispatch(); } return resolved; } return object; }
createNotification (Notification.REMOVE_MANY, feature, Notification.NO_INDEX, false) : createNotification (feature.isUnsettable() ? Notification.UNSET : Notification.SET, feature,
public Object resolveProxy(EStructuralFeature feature, int entryIndex, int index, Object object) { EObject resolved = resolveProxy((EObject)object); if (resolved != object) { Entry oldObject = (Entry)data[entryIndex]; Entry entry = createEntry(feature, resolved); assign(entryIndex, validate(entryIndex, entry)); didSet(entryIndex, entry, oldObject); if (isNotificationRequired()) { NotificationImpl notifications = createNotification (Notification.RESOLVE, entry.getEStructuralFeature(), object, resolved, index, false); notifications.add(createNotification(Notification.RESOLVE, oldObject, entry, index, false)); notifications.dispatch(); } return resolved; } return object; }
if (collectionSize == 0) notification = createNotification(Notification.ADD, null, entries[0], index, oldIsSet); notification = createNotification(Notification.ADD_MANY, null, actualObjects, index, oldIsSet); notification = createNotification(Notification.ADD_MANY, null, entries, index, oldIsSet);
(createNotification (Notification.MOVE, feature,
(createNotification (Notification.MOVE, feature,
public NotificationChain inverseTouch(Object object, NotificationChain notifications) { if (isNotificationRequired()) { Entry entry = (Entry)object; EStructuralFeature feature = entry.getEStructuralFeature(); Object value = entry.getValue(); NotificationImpl notification = createNotification (Notification.SET, feature, value, value, feature.isMany() ? indexOf(feature, value) : Notification.NO_INDEX, true); if (notifications != null) { notifications.add(notification); } else { notifications = notification; } } return notifications; }
createNotification (Notification.REMOVE, feature, indexOf(feature, object), true) : createNotification (feature.isUnsettable() ? Notification.UNSET : Notification.SET, feature,
public NotificationChain inverseTouch(Object object, NotificationChain notifications) { if (isNotificationRequired()) { Entry entry = (Entry)object; EStructuralFeature feature = entry.getEStructuralFeature(); Object value = entry.getValue(); NotificationImpl notification = createNotification (Notification.SET, feature, value, value, feature.isMany() ? indexOf(feature, value) : Notification.NO_INDEX, true); if (notifications != null) { notifications.add(notification); } else { notifications = notification; } } return notifications; }
@Override public NotificationChain shadowSet(Entry oldObject, Entry newObject, NotificationChain notifications) { if (isNotificationRequired()) { EStructuralFeature feature = oldObject.getEStructuralFeature(); Object oldValue = oldObject.getValue(); Object newValue = newObject.getValue(); NotificationImpl notification = createNotification (Notification.SET, feature, oldValue, newValue, feature.isMany() ? indexOf(feature, newValue) : Notification.NO_INDEX, true); if (notifications != null) { notifications.add(notification); } else { notifications = notification; } } return notifications; }
NotificationImpl notification = feature.isMany() ? createNotification (Notification.ADD, feature, indexOf(feature, object), oldIsSet) : createNotification (Notification.SET, feature,
@Override public NotificationChain shadowSet(Entry oldObject, Entry newObject, NotificationChain notifications) { if (isNotificationRequired()) { EStructuralFeature feature = oldObject.getEStructuralFeature(); Object oldValue = oldObject.getValue(); Object newValue = newObject.getValue(); NotificationImpl notification = createNotification (Notification.SET, feature, oldValue, newValue, feature.isMany() ? indexOf(feature, newValue) : Notification.NO_INDEX, true); if (notifications != null) { notifications.add(notification); } else { notifications = notification; } } return notifications; }
NotificationImpl notification = feature.isMany() ? createNotification (Notification.ADD, feature, indexOf(feature, object), oldIsSet) : createNotification (Notification.SET, feature,
boolean oldIsSet = isSet(); doAddUnique(entry); NotificationImpl notification = createNotification(Notification.ADD, null, entry, index, oldIsSet); if (hasInverse())
boolean oldIsSet = isSet(); doAddUnique(entry); NotificationImpl notification = createNotification(Notification.ADD, null, entry, index, oldIsSet); if (hasInverse())