Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [JET] More than one level of transformation overrides
[JET] More than one level of transformation overrides [message #755085] Mon, 07 November 2011 10:42
Andrew Rouse is currently offline Andrew RouseFriend
Messages: 1
Registered: April 2011
Junior Member
Should it be possible to have three JET transformation projects where project A overrides project B, and project B overrides project C?

When setting this up I run into problems.

The main.jet in A runs and ends with the line <c:include template="templates/main.jet" super="true"/>. This calls the main.jet in B which ends with the same line. This calls the main.jet in B again, rather than the main.jet in C as I expected.

This leads to a stack overflow as the main.jet in B is run over and over and nothing in C is ever called.

Looking further into the problem, there appear to be two symptoms:

  • setDelegateLoader is not called on the template loader for B. This means that A delegates to B but B does not delegate to C
  • using <c:include super="true"/> always trys to include templates in B, even if the calling template is itself in B.

Is this the expected behaviour?
Previous Topic:[Acceleo] Prefix of used metamodels
Next Topic:[Jet] Execute alternative from override template
Goto Forum:

Current Time: Wed Sep 28 06:39:12 GMT 2022

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

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

Back to the top