Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMoDisco 0.8 Java Code Generation
https://www.eclipse.org/forums/index.php/mv/msg/207517/664494/#msg_664494
I am trying to do code generation with MoDisco/Acceleo using Generate_JavaStructure with MoDisco 0.8/Helios.
I created an Acceleo Plugin-Project and added the dependency to the org.eclipse.gmt.modisco.java.generation package.
After that I created a Run Configuration pointing to the Generate_JavaStructure class and the javaxmi model I preliminary created from the reverse engineering tool with modisco.
But running the Configuration on the model I get no output or results.
I tried to use the model within a test installation based on Indigo and MoDisco 0.9 with the context entry to create java code from model, which works for the model.
But I don't want to switch to the non final versions of my tools in the middle of the project.
I would appreciate it if anybody has an explanation for this problem.
using: MoDisco 0.8.2, Acceleo 3.0.2
Some additional information:
I opend my workspace in latest Milestone of Indigo with MoDisco 0.9 and did the same Run Configuration there and it worked.
I noticed the difference, that the Generate_JavaStructure class in 0.8.2 is not a subclass of AbstractAcceleoGenerator whereas in 0.9 the deprecated one and GenerateJavaExtended are subclasses.
According to Acceleo Documentation the Generator must extend AbstractAcceleoGenerator to work.
Have there been any changes in Acceleo Versions which require this subclassing now?
many thx in advance
Rob
]]>Rob2011-04-09T22:11:14-00:00Re: MoDisco 0.8 Java Code Generation
https://www.eclipse.org/forums/index.php/mv/msg/207517/665081/#msg_665081
with the steps you describes, it should work on MoDisco0.8.2.
Do you have any error in error log when launching your acceleo
configuration ?
Do you use the "Acceleo Plug-in Application" in "Runner" combobox of
your Acceleo launch config (it is the default choice) ?