示例#1
0
  /**
   * This can be used to update the resource set's package registry with all needed EPackages.
   *
   * @param resourceSet The resource set which registry has to be updated.
   * @generated
   */
  @Override
  public void registerPackages(ResourceSet resourceSet) {
    super.registerPackages(resourceSet);
    if (!isInWorkspace(org.eclipse.emf.ecore.EcorePackage.class)) {
      resourceSet
          .getPackageRegistry()
          .put(
              org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(),
              org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
    }

    /*
     * If you want to change the content of this method, do NOT forget to change the "@generated"
     * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
     * of the Acceleo module with the main template that has caused the creation of this class will
     * revert your modifications.
     */

    /*
     * If you need additional package registrations, you can register them here. The following line
     * (in comment) is an example of the package registration for UML.
     *
     * You can use the method  "isInWorkspace(Class c)" to check if the package that you are about to
     * register is in the workspace.
     *
     * To register a package properly, please follow the following conventions:
     *
     * If the package is located in another plug-in, already installed in Eclipse. The following content should
     * have been generated at the beginning of this method. Do not register the package using this mechanism if
     * the metamodel is located in the workspace.
     *
     * if (!isInWorkspace(UMLPackage.class)) {
     *     // The normal package registration if your metamodel is in a plugin.
     *     resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
     * }
     *
     * If the package is located in another project in your workspace, the plugin containing the package has not
     * been register by EMF and Acceleo should register it automatically. If you want to use the generator in
     * stand alone, the regular registration (seen a couple lines before) is needed.
     *
     * To learn more about Package Registration, have a look at the Acceleo documentation (Help -> Help Contents).
     */
  }
示例#2
0
 /**
  * This can be used to update the resource set's resource factory registry with all needed
  * factories.
  *
  * @param resourceSet The resource set which registry has to be updated.
  * @generated not
  */
 @Override
 public void registerResourceFactories(ResourceSet resourceSet) {
   super.registerResourceFactories(resourceSet);
 }
示例#3
0
 /**
  * Adds a properties file in the list of properties files.
  *
  * @param propertiesFile The properties file to add.
  * @generated not
  * @since 3.1
  */
 @Override
 public void addPropertiesFile(String propertiesFile) {
   super.addPropertiesFile(propertiesFile);
 }
示例#4
0
 /**
  * Launches the generation described by this instance.
  *
  * @param monitor This will be used to display progress information to the user.
  * @throws IOException This will be thrown if any of the output files cannot be saved to disk.
  * @generated not
  */
 @Override
 public void doGenerate(Monitor monitor) throws IOException {
   super.doGenerate(monitor);
 }