コード例 #1
0
  protected void clearEList(InternalEList<?> list) {
    for (int i = list.size() - 1; i >= 0; --i) {
      Object obj = list.get(i);

      // Disable notifications from value during the
      // invalidation in case of
      // eInverseAdd/eInverseRemove
      boolean eDeliver = false;
      if (obj instanceof Notifier) {
        Notifier notifier = (Notifier) obj;
        eDeliver = notifier.eDeliver();
        if (eDeliver) {
          notifier.eSetDeliver(false);
        }
      }

      list.basicRemove(obj, null);

      if (obj instanceof Notifier && eDeliver) {
        Notifier notifier = (Notifier) obj;
        notifier.eSetDeliver(eDeliver);
      }
    }
  }
コード例 #2
0
 public org.eclipse.emf.common.notify.NotificationChain basicRemove(
     Object object, org.eclipse.emf.common.notify.NotificationChain notifications) {
   copy.basicRemove(object, notifications);
   return original.basicRemove(object, notifications);
 }