コード例 #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
   */
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(XMALabel.class)) {
      case GuidesignPackage.XMA_LABEL__COD_ALIGNMENT:
      case GuidesignPackage.XMA_LABEL__YN_WRAP:
      case GuidesignPackage.XMA_LABEL__RSC_LABEL:
      case GuidesignPackage.XMA_LABEL__NAM_RSC_KEY_LABEL:
      case GuidesignPackage.XMA_LABEL__URI_IMAGE:
      case GuidesignPackage.XMA_LABEL__YN_BOLD:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }