Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Determine the template file on runtime in an EXPAND statement
[Xpand] Determine the template file on runtime in an EXPAND statement [message #644198] Thu, 09 December 2010 21:03
Muba  is currently offline Muba Friend
Messages: 20
Registered: November 2009
Junior Member
Hi,

I want to do something like this:
«EXPAND this.content.name::createContent FOR this»


Where "this.content.name" is variable.

The goal is that if I have a new type of content, I just have to create a new templateFile, which corresponds to "this.content.name" and has a DEFINE statement "createContent".

That way I do not have to alter my main template file very time I add a new type of content.

The way I tried it does not work, but is there an another way to do the same thing?
Previous Topic:[Xpand] Call Template for Null Object
Next Topic:[Xpand] Call Template for Null Object
Goto Forum:
  


Current Time: Fri Apr 26 06:59:01 GMT 2024

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

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

Back to the top