Exemple #1
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
   */
  @Override
  public void doGenerate(Monitor monitor) throws IOException {
    /*
     * TODO if you wish to change the generation as a whole, override this. The default behavior should
     * be sufficient in most cases. 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 encounter a problem with an unresolved proxy during the
     * generation, you can remove the comments in the following instructions to check for problems. Please
     * note that those instructions may have a significant impact on the performances.
     */

    // org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(model);

    /*
     * If you want to check for potential errors in your models before the launch of the generation, you
     * use the code below.
     */

    // if (model != null && model.eResource() != null) {
    //    List<org.eclipse.emf.ecore.resource.Resource.Diagnostic> errors =
    // model.eResource().getErrors();
    //    for (org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic : errors) {
    //        System.err.println(diagnostic.toString());
    //    }
    // }

    super.doGenerate(monitor);
  }
 /**
  * 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
  */
 @Override
 public void doGenerate(Monitor monitor) throws IOException {
   /*
    * TODO if you wish to change the generation as a whole, override this.
    * The default behavior should be sufficient in most cases.
    */
   super.doGenerate(monitor);
 }
 /**
  * Launches the generation described by this instance.
  *
  * @param repositoryAdapter
  * @param monitor This will be used to display progress information to the user.
  * @param projectName the expected intent project name
  * @param showTableOfContents indicate whether TOC should be shown by default or not
  * @throws IOException This will be thrown if any of the output files cannot be saved to disk.
  */
 public void doGenerate(
     Monitor monitor,
     String projectName,
     boolean showTableOfContents,
     RepositoryAdapter repositoryAdapter)
     throws IOException {
   this.projectName = projectName;
   IntentAcceleoServices.initialize(
       projectName, getTargetFolder(), showTableOfContents, repositoryAdapter);
   super.doGenerate(monitor);
   IntentAcceleoServices.dispose();
 }
 @Override
 public void doGenerate(Monitor monitor) throws IOException {
   super.doGenerate(monitor);
 }