Skip to content

Instantly share code, notes, and snippets.

@Huluvu424242
Created February 12, 2012 12:01
Show Gist options
  • Save Huluvu424242/1808190 to your computer and use it in GitHub Desktop.
Save Huluvu424242/1808190 to your computer and use it in GitHub Desktop.
Accello Implementation of doGenerate method in GenerateAll.java
public void doGenerate(IProgressMonitor monitor) throws IOException {
if (!targetFolder.getLocation().toFile().exists()) {
targetFolder.getLocation().toFile().mkdirs();
}
monitor.subTask("Loading...");
final Main gen0 = new Main(modelURI, targetFolder.getLocation()
.toFile(), arguments);
monitor.worked(1);
String generationID = org.eclipse.acceleo.engine.utils.AcceleoLaunchingUtil
.computeUIProjectID("org.emftext.language.svgd.generator",
"org.emftext.language.svgd.generator.main", modelURI
.toString(), targetFolder.getFullPath()
.toString(), new ArrayList());
gen0.setGenerationID(generationID);
gen0.doGenerate(BasicMonitor.toMonitor(monitor));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment