コード例 #1
0
  /**
   * This returns the property descriptors for the adapted class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generatedNOT
   */
  @Override
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
    if (itemPropertyDescriptors == null) {
      super.getPropertyDescriptors(object);

      // addEDataTypePropertyDescriptor(object);
      addDocumentationPropertyDescriptor(object);
      // addNamePropertyDescriptor(object);
      addQualifiedClassNamePropertyDescriptor(object);
      addSimpleClassNamePropertyDescriptor(object);
      addGenerateCodePropertyDescriptor(object);
      // addOwnerEPackageAnnotationPropertyDescriptor(object);
      // addInstanceClassNamePropertyDescriptor(object);
      // addObjectClassNamePropertyDescriptor(object);
      // addEnumPropertyDescriptor(object);
      // addDateTypePropertyDescriptor(object);
      addAutomaticStringConversionPropertyDescriptor(object);
      // addBaseTypeAnnotationPropertyDescriptor(object);
      // addItemTypePropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
コード例 #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);

    switch (notification.getFeatureID(EEnumModelGenAnnotation.class)) {
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__DOCUMENTATION:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__NAME:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__QUALIFIED_CLASS_NAME:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__SIMPLE_CLASS_NAME:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__GENERATE_CODE:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__INSTANCE_CLASS_NAME:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__OBJECT_CLASS_NAME:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__ENUM:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__DATE_TYPE:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__AUTOMATIC_STRING_CONVERSION:
      case ModelcodegeneratorPackage.EENUM_MODEL_GEN_ANNOTATION__ITEM_TYPE:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }
コード例 #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
  */
 @Override
 protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
   super.collectNewChildDescriptors(newChildDescriptors, object);
 }