Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Re: Acceleo loop problem
Re: Acceleo loop problem [message #1734871] Mon, 13 June 2016 10:12
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1855
Registered: July 2009
Senior Member
Hi Viktoria,

If you indeed have inheritance, then yes, we'll generate for each element that is an "instanceof" the main template's argument. There is however a way to avoid the recursion if you're sure you only want to generate from the top-level Pipenet.

If you look at the generate java file beside your "main" template, you'll see that "doGenerate" calls "super.doGenerate(monitor)". Change that to "super.generate(monitor, false)" to disable the recursion.

Laurent Goubet
Obeo
Previous Topic:[solved] Acceleo loop problem
Next Topic:Re: Acceleo loop problem
Goto Forum:
  


Current Time: Sun Apr 22 05:10:05 GMT 2018

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

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