Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » Code generation from xTend in oAW
Code generation from xTend in oAW [message #375944] Wed, 24 January 2007 08:38 Go to next message
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 Go to previous messageGo to next message
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 #375946 is a reply to message #375945] Wed, 24 January 2007 22:36 Go to previous messageGo to next message
Miles Parker is currently offline Miles Parker
Messages: 1340
Registered: July 2009
Senior Member
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 #375947 is a reply to message #375946] Thu, 25 January 2007 07:52 Go to previous messageGo to next message
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 #375948 is a reply to message #375947] Thu, 25 January 2007 15:37 Go to previous messageGo to next message
Miles Parker is currently offline Miles Parker
Messages: 1340
Registered: July 2009
Senior Member
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..
Re: [Offtopic] Re: Code generation from xTend in oAW [message #375954 is a reply to message #375948] Sat, 03 February 2007 20:11 Go to previous message
Markus Voelter is currently offline Markus Voelter
Messages: 33
Registered: July 2009
Member
> Yes, it does seem like the oAW crew is over-streched. :)

very true :-)

If people want to help us develop oAW further, please
contact us. We do welcome additional developers!

Markus




--
Markus Völter

voelter - ingenieurbüro für softwaretechnologie
Ziegeläcker 11, 89520 Heidenheim, Germany
Tel. +49 (0) 171 / 86 01 869
Email: voelter@acm.org

Web: http://www.voelter.de
Blog: http://www.voelter.de/blog
Podcast: http://www.se-radio.net

PGP Public Key: http://www.voelter.de/data/MarkusVoelter.gpg
Re: Code generation from xTend in oAW [message #562325 is a reply to message #375944] Wed, 24 January 2007 15:28 Go to previous message
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 22:36 Go to previous message
Miles Parker is currently offline Miles Parker
Messages: 1340
Registered: July 2009
Senior Member
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 07:52 Go to previous message
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 15:37 Go to previous message
Miles Parker is currently offline Miles Parker
Messages: 1340
Registered: July 2009
Senior Member
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..
Re: [Offtopic] Re: Code generation from xTend in oAW [message #562514 is a reply to message #375948] Sat, 03 February 2007 20:11 Go to previous message
Markus Voelter is currently offline Markus Voelter
Messages: 33
Registered: July 2009
Member
> Yes, it does seem like the oAW crew is over-streched. :)

very true :-)

If people want to help us develop oAW further, please
contact us. We do welcome additional developers!

Markus




--
Markus Völter

voelter - ingenieurbüro für softwaretechnologie
Ziegeläcker 11, 89520 Heidenheim, Germany
Tel. +49 (0) 171 / 86 01 869
Email: voelter@acm.org

Web: http://www.voelter.de
Blog: http://www.voelter.de/blog
Podcast: http://www.se-radio.net

PGP Public Key: http://www.voelter.de/data/MarkusVoelter.gpg
Previous Topic:[Epsilon] Exeed (EXtended Emf EDitor)
Next Topic:[MOFScript] The context "http://www.eclipse.org/uml2/1.0.0/UML" is not found
Goto Forum:
  


Current Time: Thu Sep 18 22:05:37 GMT 2014

Powered by FUDForum. Page generated in 0.04471 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software