Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Debugging mtl templates with multiple model input
[Acceleo] Debugging mtl templates with multiple model input [message #1128146] Mon, 07 October 2013 07:42 Go to next message
Eclipse UserFriend
To debug mtl templates, the "Acceleo Plug-in Application" should be selected as the runner but this limits me only to 1 input model.

Is there any way I can extend the "Acceleo Plug-in Application"?
Or is there a way to debug mtl templates with multiple model inputs?
And also how do I register a resource factory with the "Acceleo Plug-in Application"?

Thanks,
John
Re: [Acceleo] Debugging mtl templates with multiple model input [message #1159088 is a reply to message #1128146] Mon, 28 October 2013 05:35 Go to previous message
Eclipse UserFriend
Hi,

To debug mtl templates, the "Acceleo Plug-in Application" should be selected as the runner but this limits me only to 1 input model. Is there any way I can extend the "Acceleo Plug-in Application"? Or is there a way to debug mtl templates with multiple model inputs?

You can't specify multiple input models using the Eclipse user interface, if you want to use multiple input models, you have multiple generations. You can create your own launch configuration thanks to a dedicated "UI Launcher" in order to customize your generator like the one I did in the UML to Java generator 1 and 2.

And also how do I register a resource factory with the "Acceleo Plug-in Application"?

Use the method "registerResourceFactories" in the generated class used to launch your generator.

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Google+: +stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com | Eclipse Java Development Tools Tips and Tricks
Previous Topic:Debugging Acceleo Project
Next Topic:Testing Acceleo generator modules
Goto Forum:
  


Current Time: Tue Jul 22 18:16:45 EDT 2025

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

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

Back to the top