Code generation from xTend in oAW [message #375944] |
Wed, 24 January 2007 08:38 |
Eclipse User |
|
|
|
Originally posted by: Laph95.gmail.com
Hi,
I'm currently working on an application which is a kind of builder. I have
a A language in input and I want to "transform" it in a B language
(output).
oAW seems to be a good tool to realize such an application but I'm
actually in front of a problem.
I want the futur user just have to push a button to "compilate" the input
language. So all the transformation process must be hidden. I just want to
know how, in the xTend tool, it is possible to generate java classes
associated with the .ext file created ?
More precisely : I have two eCore metamodels (input and output), I've
created a xTend file which describe the transformation I want and now I
don't know how to fill the workflow file to generate java classes
(actually I want to be able to call methods with the input file in
parameter).
Thanks in advance !!
|
|
|
Re: Code generation from xTend in oAW [message #375945 is a reply to message #375944] |
Wed, 24 January 2007 15:28 |
Eclipse User |
|
|
|
Originally posted by: Laph95.gmail.com
Some precisions in my question...
In fact, I think my main problem is to know if oAW is able to give me a
m2m transformator and not "only" to transform...
Is there a possibility for me to realize a translator "callable" in my own
application ? There's always the good old method via ANTLR but my goal was
to perform that thanks to oAW.
Effectively, I want to get java classes corresponding to xtend file which
allow me to use the following expression in my own java program : Y y =
doTranslate(X x); Where Y is the output model (and y his instance) and X
the input model (and x his instance).
I really need some help about all of that :(
|
|
|
|
Re: Code generation from xTend in oAW [message #375947 is a reply to message #375946] |
Thu, 25 January 2007 07:52 |
Eclipse User |
|
|
|
Originally posted by: Laph95.gmail.com
First of all, thank you for your answer !
I've already post in the forum, no better answer for the moment...
Of course it seems something quite easy but nowhere I've found something
like that. Maybe the problem has no solution, and effectively it is
possible to transform a model to another model only in the development
environment but no in our own applications...
|
|
|
|
|
Re: Code generation from xTend in oAW [message #562325 is a reply to message #375944] |
Wed, 24 January 2007 15:28 |
Eclipse User |
|
|
|
Originally posted by: Laph95.gmail.com
Some precisions in my question...
In fact, I think my main problem is to know if oAW is able to give me a
m2m transformator and not "only" to transform...
Is there a possibility for me to realize a translator "callable" in my own
application ? There's always the good old method via ANTLR but my goal was
to perform that thanks to oAW.
Effectively, I want to get java classes corresponding to xtend file which
allow me to use the following expression in my own java program : Y y =
doTranslate(X x); Where Y is the output model (and y his instance) and X
the input model (and x his instance).
I really need some help about all of that :(
|
|
|
|
Re: Code generation from xTend in oAW [message #562372 is a reply to message #375946] |
Thu, 25 January 2007 07:52 |
Eclipse User |
|
|
|
Originally posted by: Laph95.gmail.com
First of all, thank you for your answer !
I've already post in the forum, no better answer for the moment...
Of course it seems something quite easy but nowhere I've found something
like that. Maybe the problem has no solution, and effectively it is
possible to transform a model to another model only in the development
environment but no in our own applications...
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04728 seconds