コード例 #1
0
 @Override
 public void notifyChanged(Notification notification) {
   if (isMarkerEvent(notification) && target instanceof EObject) {
     EObject parent = ((EObject) target).eContainer();
     if (parent != null) parent.eNotify(notification);
   }
 }
コード例 #2
0
 @Override
 public void redo() {
   eObject.eNotify(msgStart);
   super.redo();
   eObject.eNotify(msgEnd);
 }
コード例 #3
0
 @Override
 public void execute() {
   eObject.eNotify(msgStart);
   super.execute();
   eObject.eNotify(msgEnd);
 }
コード例 #4
0
 /**
  * @param source
  * @param feature
  * @param target
  */
 private void sendRemoveManyNotification(
     EObject source, EStructuralFeature feature, Object oldTarget) {
   source.eNotify(
       new ENotificationImpl(
           (InternalEObject) source, Notification.REMOVE_MANY, feature, oldTarget, null));
 }
コード例 #5
0
 /**
  * @param source
  * @param feature
  * @param target
  */
 private void sendAddNotification(EObject source, EStructuralFeature feature, Object target) {
   source.eNotify(
       new ENotificationImpl((InternalEObject) source, Notification.ADD, feature, null, target));
 }
コード例 #6
0
 /**
  * @param source
  * @param feature
  * @param target
  */
 private void sendSetNotification(
     EObject source, EStructuralFeature feature, Object oldTarget, Object target) {
   source.eNotify(
       new ENotificationImpl(
           (InternalEObject) source, Notification.SET, feature, oldTarget, target));
 }