| Generation code source [message #972487] |
Mon, 05 November 2012 12:14  |
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   |
Hugo Bruneliere Messages: 461 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 #973335 is a reply to message #972533] |
Tue, 06 November 2012 03:46   |
Hugo Bruneliere Messages: 461 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 #982991 is a reply to message #982593] |
Tue, 13 November 2012 10:35  |
Hugo Bruneliere Messages: 461 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
------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.01670 seconds