Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [ACCELEO] Add model preprocessing before text generation
[ACCELEO] Add model preprocessing before text generation [message #1711062] Mon, 12 October 2015 15:40 Go to next message
Pierre Gaufillet is currently offline Pierre GaufilletFriend
Messages: 20
Registered: September 2015
Junior Member
Hi Acceleo team!

I am currently working on a text generator that requires first a complex transformation (coded in Java) of the input model. Where is the best place in the Acceleo start sequence for calling this transformation?

Pierre
Re: [ACCELEO] Add model preprocessing before text generation [message #1714165 is a reply to message #1711062] Tue, 10 November 2015 12:10 Go to previous messageGo to next message
Pierre Gaufillet is currently offline Pierre GaufilletFriend
Messages: 20
Registered: September 2015
Junior Member
Not even a suggestion? Shocked
Re: [ACCELEO] Add model preprocessing before text generation [message #1714167 is a reply to message #1714165] Tue, 10 November 2015 12:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Pierre,
If you take a look at the plugin source code generated by Acceleo wizard
(see how to do it in
https://wiki.eclipse.org/Acceleo/Getting_Started#Creating_a_UI_launcher
) you will find easily where to put it before the Acceleo engine is
invoked. Maybe in doGenerate method.

Best,

Víctor

El 10/11/2015 a las 13:10, Pierre Gaufillet escribió:
> Not even a suggestion? 8o
Re: [ACCELEO] Add model preprocessing before text generation [message #1714168 is a reply to message #1714167] Tue, 10 November 2015 12:49 Go to previous messageGo to next message
Pierre Gaufillet is currently offline Pierre GaufilletFriend
Messages: 20
Registered: September 2015
Junior Member
Thanks Victor!
Re: [ACCELEO] Add model preprocessing before text generation [message #1714170 is a reply to message #1714168] Tue, 10 November 2015 12:51 Go to previous messageGo to next message
Pierre Gaufillet is currently offline Pierre GaufilletFriend
Messages: 20
Registered: September 2015
Junior Member
For now I am relying on a Java helper called at the beginning of the Acceleo template. It works but I am not that confident with this approach. I'll try what you propose.

[Updated on: Tue, 10 November 2015 12:51]

Report message to a moderator

Re: [ACCELEO] Add model preprocessing before text generation [message #1714171 is a reply to message #1711062] Tue, 10 November 2015 13:00 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6107
Registered: July 2009
Senior Member
HI

If you are building a transformation chain, I recommend using MWE2 to
sequence it.

Regards

Ed Willink


On 12/10/2015 18:23, Pierre Gaufillet wrote:
> Hi Acceleo team!
>
> I am currently working on a text generator that requires first a
> complex transformation (coded in Java) of the input model. Where is
> the best place in the Acceleo start sequence for calling this
> transformation?
>
> Pierre
Previous Topic:[Acceleo] Generate package with same order as the UML editor
Next Topic:What happend to
Goto Forum:
  


Current Time: Tue Nov 13 02:50:09 GMT 2018

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

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

Back to the top