Exemplo n.º 1
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);

    newChildDescriptors.add(
        createChildParameter(
            QVTRelationPackage.Literals.KEY__PART, EcoreFactory.eINSTANCE.createEAttribute()));

    newChildDescriptors.add(
        createChildParameter(
            QVTRelationPackage.Literals.KEY__PART, EcoreFactory.eINSTANCE.createEReference()));
  }
  /**
   * 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);

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createAltExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createAssertExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createAssignExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createBlockExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createBreakExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createCatchExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createComputeExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createContinueExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createDictLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createForExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createImperativeIterateExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createInstantiationExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createListLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createLogExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createOrderedTupleLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createRaiseExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createReturnExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createSwitchExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createTryExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createUnlinkExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createUnpackExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createVariableInitExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            ImperativeOCLFactory.eINSTANCE.createWhileExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createAssociationClassCallExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createBooleanLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createCollectionLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createEnumLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createIfExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createIntegerLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createUnlimitedNaturalLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createInvalidLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createIterateExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createIteratorExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createLetExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createMessageExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createNullLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createOperationCallExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createPropertyCallExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createRealLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createStateExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createStringLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createTupleLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createTypeExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createUnspecifiedValueExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__KEY,
            EcoreFactory.eINSTANCE.createVariableExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createAltExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createAssertExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createAssignExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createBlockExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createBreakExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createCatchExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createComputeExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createContinueExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createDictLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createForExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createImperativeIterateExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createInstantiationExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createListLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createLogExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createOrderedTupleLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createRaiseExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createReturnExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createSwitchExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createTryExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createUnlinkExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createUnpackExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createVariableInitExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            ImperativeOCLFactory.eINSTANCE.createWhileExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createAssociationClassCallExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createBooleanLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createCollectionLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createEnumLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createIfExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createIntegerLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createUnlimitedNaturalLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createInvalidLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createIterateExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createIteratorExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createLetExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createMessageExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createNullLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createOperationCallExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createPropertyCallExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createRealLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createStateExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createStringLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createTupleLiteralExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createTypeExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createUnspecifiedValueExp()));

    newChildDescriptors.add(
        createChildParameter(
            ImperativeOCLPackage.Literals.DICT_LITERAL_PART__VALUE,
            EcoreFactory.eINSTANCE.createVariableExp()));
  }