public class AcceleoCodeGen
extends java.lang.Object
Constructor and Description |
---|
AcceleoCodeGen(org.eclipse.emf.common.util.URI modelURI,
org.eclipse.core.resources.IContainer targetFolder,
java.util.List<? extends java.lang.Object> arguments)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doGenerate(org.eclipse.core.runtime.IProgressMonitor monitor)
Launches the generation.
|
static void |
runCodegen(org.eclipse.core.resources.IFile model,
org.eclipse.core.resources.IContainer target,
org.eclipse.core.runtime.IProgressMonitor monitor)
Run codegen.
|
public AcceleoCodeGen(org.eclipse.emf.common.util.URI modelURI, org.eclipse.core.resources.IContainer targetFolder, java.util.List<? extends java.lang.Object> arguments)
modelURI
- is the URI of the model.targetFolder
- is the output folderarguments
- are the other argumentspublic void doGenerate(org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.IOException
monitor
- This will be used to display progress information to the user.java.io.IOException
- Thrown when the output cannot be saved.public static void runCodegen(org.eclipse.core.resources.IFile model, org.eclipse.core.resources.IContainer target, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.Exception
model
- the modeltarget
- the target foldermonitor
- the monitor used to display progress information to the userjava.lang.Exception
- the exception