Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Run different templates in Xpand project(I want to call different templates inside another template which is the root.)
icon11.gif  Run different templates in Xpand project [message #1760141] Sun, 23 April 2017 17:04 Go to next message
gerard TALLA is currently offline gerard TALLAFriend
Messages: 1
Registered: April 2017
Junior Member
Hey guys, Someone can help me?

I defined 3 different templates for my xpand project, so I want to use one of them as the root template which one is referenced in my workflow MWE and make a reference / call the two another template inside this root. I don't know if it possible or how to do it?

Thanks
Gerard
Re: Run different templates in Xpand project [message #1760189 is a reply to message #1760141] Mon, 24 April 2017 12:54 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 592
Registered: July 2009
Location: Dortmund, Germany
Senior Member

This is a quite common use case. It is exactly like you would call definitions within one templtae, only that you qualify the template's name.
«DEFINE Root FOR MyType»
«EXPAND Template1::Start»
«EXPAND Template2::Start»
«ENDDEFINE» 
Previous Topic:sirius table
Next Topic:Acceleo
Goto Forum:
  


Current Time: Tue Apr 24 21:14:05 GMT 2018

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

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