Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » Extending Acceleo Templates(How to customize Acceleo templates)
Extending Acceleo Templates [message #1152910] Thu, 24 October 2013 04:49 Go to next message
Eclipse UserFriend
Hi Everyone,

I have successfully override my templates using Acceleo's dynamic overriding capability. But this only works when my original generator plugin project and the dynamic plugin project are both inside my eclipse workspace.

I have also observed the following when I run my original generator and modify a dynamic template while the generator is still running:
1) Modify dynamic template in my eclipse workspace - the applied changes were generated(auto-build happens).
2) Modify dynamic template using other editor(i.e. notepad++) - the changes are not generated.

What I want to achieve here is to run my generator and customize the templates dynamically while the generator is running.

So, is there a way on how to we can expose Acceleo templates and be able to modify them outside eclipse? Or maybe tell Acceleo where to get the mtl templates to generate.

Thanks,
Rhea
Re: Extending Acceleo Templates [message #1159047 is a reply to message #1152910] Mon, 28 October 2013 05:05 Go to previous message
Eclipse UserFriend
Hi,

You may be able to do this by using the APIs of the Acceleo engine (I never tried it so I'm not 100% sure), have a look at AcceleoDynamicTemplateRegistry.

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Google+: +stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com | Eclipse Java Development Tools Tips and Tricks
Previous Topic:[Xpand] validation syntax
Next Topic:ACCELEO chain compilation error
Goto Forum:
  


Current Time: Sun Apr 27 14:00:59 EDT 2025

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

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

Back to the top