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
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: Thu Sep 18 17:48:42 GMT 2014

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

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