Code generation from xTend in oAW [message #375944] |
Wed, 24 January 2007 03: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 #562325 is a reply to message #375944] |
Wed, 24 January 2007 10: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 #562344 is a reply to message #375945] |
Wed, 24 January 2007 17:36  |
Eclipse User |
|
|
|
I think perhaps you will have better luck in the oAW forums..
http://www.openarchitectureware.org/forum/index.php?forum=2
FWIW, it sounds like something that could be easily accimpliushed in
oAW workflow...
On 2007-01-24 10:28:48 -0500, Laph95@gmail.com (Laph95) said:
> 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 02: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...
|
|
|
[Offtopic] Re: Code generation from xTend in oAW [message #562395 is a reply to message #375947] |
Thu, 25 January 2007 10:37  |
Eclipse User |
|
|
|
On 2007-01-25 02:52:52 -0500, Laph95@gmail.com (Laph95) said:
> 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...
Yes, it does seem like the oAW crew is over-streched. :)
Anyway, can you not do it in a workflow? If so, there is a java API for
calling an arbitrary workflow..
|
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds