Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Generation code source
Generation code source [message #972487] Mon, 05 November 2012 12:14 Go to next message
dorraaaa Z is currently offline dorraaaa Z
Messages: 22
Registered: June 2012
Junior Member
Hi , i have done MDA transformation with ATL on using UIML in the generation of models, then i want to generate code source automatically

if you can tell me what tool should i use ? and how
i find FormToolkit but i don't know how i should use it
or i should do it manually to convert UIML to Java

thanks
Re: Generation code source [message #972505 is a reply to message #972487] Mon, 05 November 2012 12:27 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 601
Registered: July 2009
Senior Member
Hello,

ATL is for model-to-model transformation.
If you want to generate code out of models (obtained thanks to such model-to-model transformations for instance), you have to use model-to-text technologies such as Acceleo.

If you target the generation of Java code, the MoDisco project already provides you the Java metamodel and Java generator for free.
You then just have to build your ATL transformation from XXX-to-Java (with XXX being your source metamodel, such as UML for instance).

Best regards,

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: Generation code source [message #972533 is a reply to message #972505] Mon, 05 November 2012 12:58 Go to previous messageGo to next message
dorraaaa Z is currently offline dorraaaa Z
Messages: 22
Registered: June 2012
Junior Member
thank you very much
i have installed it ( MoDisco project )
but waht discoverer should i choose in the run configuration
Re: Generation code source [message #973335 is a reply to message #972533] Tue, 06 November 2012 03:46 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 601
Registered: July 2009
Senior Member
Hello,

As I told you in my previous post, in your specific case where you start from an UML model, you have to build an UML-to-Java transformation in ATL and then directly use the provided MoDisco Java generator.
Discoverers are for getting models out of artifacts which are not models (e.g. source code, configuration files, data, etc), that is not your case from what I understood.
Everything is pretty well explained in the MoDisco documentation.

Best regards,

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: Generation code source [message #982593 is a reply to message #973335] Tue, 13 November 2012 03:55 Go to previous messageGo to next message
Andreas Brieg is currently offline Andreas Brieg
Messages: 48
Registered: November 2012
Member
The generate Java Source discoverer provided in MoDisco 0.10.1 is not available from the menu in the IDE, because it still depends on the org.eclipse.gmt.modisco API. But that is deprecated as it was moved to org.eclipse.modisco. I wrote my own discoverer to accomplish what the provided one does.
Re: Generation code source [message #982991 is a reply to message #982593] Tue, 13 November 2012 10:35 Go to previous message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 601
Registered: July 2009
Senior Member
Hello,

The Java Source code generator has never been directly available from the IDE as the discoverers are.
It is an Acceleo plugin project that needs to be either added to your (under development) plugin's dependencies or checked out onto your (development) workspace.
Then, you can launch it (from your Java model) respectively using either Java code or an Acceleo launch configuration.
Cf. the "Java generation" section of the MoDisco documentation.

I hope this helps.

Best regards,

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:Avantage ATL +UIML
Next Topic:Why is the ATL editor removing the drop keyword?
Goto Forum:
  


Current Time: Thu Aug 21 18:06:27 EDT 2014

Powered by FUDForum. Page generated in 0.01659 seconds