Skip to main content


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: 1901
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:i an unbable to set value for type attribute in class diagram using papyrus plugin
Next Topic:Re: Acceleo loop problem
Goto Forum:
  


Current Time: Thu Nov 30 11:08:35 GMT 2023

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

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

Back to the top