Пример #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(
            XcorePackage.Literals.XPACKAGE__IMPORT_DIRECTIVES,
            XcoreFactory.eINSTANCE.createXImportDirective()));

    newChildDescriptors.add(
        createChildParameter(
            XcorePackage.Literals.XPACKAGE__ANNOTATION_DIRECTIVES,
            XcoreFactory.eINSTANCE.createXAnnotationDirective()));

    newChildDescriptors.add(
        createChildParameter(
            XcorePackage.Literals.XPACKAGE__CLASSIFIERS, XcoreFactory.eINSTANCE.createXClass()));

    newChildDescriptors.add(
        createChildParameter(
            XcorePackage.Literals.XPACKAGE__CLASSIFIERS, XcoreFactory.eINSTANCE.createXDataType()));

    newChildDescriptors.add(
        createChildParameter(
            XcorePackage.Literals.XPACKAGE__CLASSIFIERS, XcoreFactory.eINSTANCE.createXEnum()));
  }
  /**
   * 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(
            XcorePackage.Literals.XTYPED_ELEMENT__TYPE,
            XcoreFactory.eINSTANCE.createXGenericType()));
  }