예제 #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);
  }
예제 #2
0
  /**
   * This returns the property descriptors for the adapted class.
   * <!-- begin-user-doc -->
   *
   * @modified //addNamRsc
   *     <!-- end-user-doc -->
   * @modified
   */
  public List getPropertyDescriptors(Object object) {
    // itemPropDescr is only used as pointer to the reals prop descr
    if (isGenerated(object)) {
      itemPropertyDescriptors = genItemPropDescrs;
    } else {
      itemPropertyDescriptors = nongenItemPropDescrs;
    }

    if (itemPropertyDescriptors == null) {
      super.getPropertyDescriptors(object);
      addCodAlignmentPropertyDescriptor(object);
      addYnWrapPropertyDescriptor(object);
      addRscLabelPropertyDescriptor(object);
      // addNamRscKeyLabelPropertyDescriptor(object);
      addUriImagePropertyDescriptor(object);
      addLabelWidgetPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
예제 #3
0
 /**
  * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that
  * can be created under this object.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
   super.collectNewChildDescriptors(newChildDescriptors, object);
 }