|Generate Java code from a Java model [message #776997]
||Mon, 09 January 2012 16:23
| Marcus Fessele
Registered: January 2012
I want to generate java code from a .xmi model. I extracted the model from a project and now I want to generate code refers to ttp://wiki.eclipse.org/MoDisco/Components/Java/Documentation/0.9#Java_Generation
But when I write the sample code I get an error:
"The type org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator cannot be resolved. It is indirectly referenced from required .class files"
GenerateJavaExtended javaGenerator = new GenerateJavaExtended(URI.createFileURI("../Model.xmi"),
new File("../myOutputFolder"), new ArrayList<Object>());
I added the org.eclipse.gmt.modisco.java.generation as a dependencie to my plugin.xml but it doesn't work.
So can someone help me?
[Updated on: Mon, 09 January 2012 16:26]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02496 seconds