Esempio n. 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(CallExp.class)) {
      case EcorePackage.CALL_EXP__PROPERTY_START_POSITION:
      case EcorePackage.CALL_EXP__PROPERTY_END_POSITION:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
      case EcorePackage.CALL_EXP__SOURCE:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), true, false));
        return;
    }
    super.notifyChanged(notification);
  }
Esempio n. 2
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);
   super.notifyChanged(notification);
 }