/**
   * Launches the generation.
   *
   * @param monitor This will be used to display progress information to the user.
   * @throws IOException Thrown when the output cannot be saved.
   * @generated
   */
  public void doGenerate(IProgressMonitor monitor) throws IOException {
    if (!targetFolder.getLocation().toFile().exists()) {
      targetFolder.getLocation().toFile().mkdirs();
    }

    // final URI template0 =
    // getTemplateURI("org.eclipse.papyrus.robotml.generators.intempora.rtmaps", new
    // Path("/org/eclipse/robotml/generators/acceleo/rtmaps/main/generate_rtmaps.emtl"));
    // org.eclipse.papyrus.robotml.generators.intempora.rtmaps.main.Generate_rtmaps gen0 = new
    // org.eclipse.papyrus.robotml.generators.intempora.rtmaps.main.Generate_rtmaps(modelURI,
    // targetFolder.getLocation().toFile(), arguments) {
    //	protected URI createTemplateURI(String entry) {
    //		return template0;
    //	}
    // };
    // gen0.doGenerate(BasicMonitor.toMonitor(monitor));
    monitor.subTask("Loading...");
    Generate_rtmaps gen0 =
        new Generate_rtmaps(modelURI, targetFolder.getLocation().toFile(), arguments);
    monitor.worked(1);
    String generationID =
        org.eclipse.acceleo.engine.utils.AcceleoLaunchingUtil.computeUIProjectID(
            "org.eclipse.papyrus.robotml.generators.intempora.rtmaps",
            "org.eclipse.papyrus.robotml.generators.intempora.rtmaps.main.Generate_rtmaps",
            modelURI.toString(),
            targetFolder.getFullPath().toString(),
            new ArrayList<String>());
    gen0.setGenerationID(generationID);
    gen0.doGenerate(BasicMonitor.toMonitor(monitor));
  }
示例#2
0
  /**
   * Launches the generation.
   *
   * @param monitor This will be used to display progress information to the user.
   * @throws IOException Thrown when the output cannot be saved.
   * @generated
   */
  public void doGenerate(IProgressMonitor monitor) throws IOException {
    if (!targetFolder.getLocation().toFile().exists()) {
      targetFolder.getLocation().toFile().mkdirs();
    }

    // final URI template0 = getTemplateURI("org.earthsystemcurator.cupid.esmf2fortran", new
    // Path("/esmf2fortran/main/generate.emtl"));
    // esmf2fortran.main.Generate gen0 = new esmf2fortran.main.Generate(modelURI,
    // targetFolder.getLocation().toFile(), arguments) {
    //	protected URI createTemplateURI(String entry) {
    //		return template0;
    //	}
    // };
    // gen0.doGenerate(BasicMonitor.toMonitor(monitor));
    monitor.subTask("Loading...");
    esmf2fortran.main.Generate gen0 =
        new esmf2fortran.main.Generate(modelURI, targetFolder.getLocation().toFile(), arguments);
    monitor.worked(1);
    String generationID =
        org.eclipse.acceleo.engine.utils.AcceleoLaunchingUtil.computeUIProjectID(
            "org.earthsystemcurator.cupid.esmf2fortran",
            "esmf2fortran.main.Generate",
            modelURI.toString(),
            targetFolder.getFullPath().toString(),
            new ArrayList<String>());
    gen0.setGenerationID(generationID);
    gen0.doGenerate(BasicMonitor.toMonitor(monitor));
  }