Java Code Examples for org.eclipse.emf.common.notify.Notification#UNSET
The following examples show how to use
org.eclipse.emf.common.notify.Notification#UNSET .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultTextEditComposer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
protected boolean doRecord(Notification notification) { if (!recording || notification.isTouch()) return false; switch (notification.getEventType()) { case Notification.ADD: case Notification.ADD_MANY: case Notification.MOVE: case Notification.REMOVE: case Notification.REMOVE_MANY: case Notification.SET: case Notification.UNSET: return true; default: return false; } }
Example 2
Source File: AbstractEStructuralFeatureChangedListener.java From kieker with Apache License 2.0 | 5 votes |
@Override public final void notifyChanged(final Notification notification) { if (this.listenedFeatures.contains(notification.getFeature()) && ((notification.getEventType() == Notification.SET) || (notification.getEventType() == Notification.UNSET))) { this.notifyChangedIntern(notification.getNotifier()); } super.notifyChanged(notification); }