Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » MoDisco 0.8 Java Code Generation(Generate Code from javaxmi model (AbstractAcceleoGenerator))
MoDisco 0.8 Java Code Generation [message #664494] Sat, 09 April 2011 18:11 Go to next message
Rob is currently offline Rob
Messages: 17
Registered: February 2011
Junior Member
Hi guys!

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.

This is at least what I get from
http:// wiki.eclipse.org/MoDisco/Components/Java/Documentation/0.8#J ava_Generation.

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

[Updated on: Sun, 10 April 2011 08:20]

Report message to a moderator

Re: MoDisco 0.8 Java Code Generation [message #665081 is a reply to message #664494] Wed, 13 April 2011 04:18 Go to previous message
Fabien Giquel is currently offline Fabien Giquel
Messages: 136
Registered: July 2009
Senior Member
Hi Rob,

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) ?

Fabien.


----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Ch√Ęteau de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
Previous Topic:[ATL] Run Modisco .javaxmi transformation programmatically
Next Topic:MoDisco changing Model Load behavior
Goto Forum:
  


Current Time: Sun Apr 20 18:03:43 EDT 2014

Powered by FUDForum. Page generated in 0.02354 seconds