Beispiel #1
0
  /**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(XPackage.class)) {
      case XcorePackage.XPACKAGE__IMPORT_DIRECTIVES:
      case XcorePackage.XPACKAGE__ANNOTATION_DIRECTIVES:
      case XcorePackage.XPACKAGE__CLASSIFIERS:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), true, false));
        return;
    }
    super.notifyChanged(notification);
  }
  /**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(XTypedElement.class)) {
      case XcorePackage.XTYPED_ELEMENT__UNORDERED:
      case XcorePackage.XTYPED_ELEMENT__UNIQUE:
      case XcorePackage.XTYPED_ELEMENT__MULTIPLICITY:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
      case XcorePackage.XTYPED_ELEMENT__TYPE:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), true, false));
        return;
    }
    super.notifyChanged(notification);
  }