Created
February 12, 2012 12:01
-
-
Save Huluvu424242/1808190 to your computer and use it in GitHub Desktop.
Accello Implementation of doGenerate method in GenerateAll.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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