|
Re: [XPand2] Splitting one big xpt-file [message #794580 is a reply to message #794545] |
Thu, 09 February 2012 13:14  |
|
Florian,
sure, actually this is quite common.
You can call other definitions with the EXPAND keyword, the definitions need not to be in the same file. You can either import the namespace of the file
«IMPORT my::other::template»
«DEFINE Xyz FOR MyType»
«EXPAND DefinitionFromOtherTemplate FOR this»
...
or qualified
«DEFINE Xyz FOR MyType»
«EXPAND my::other::template::DefinitionFromOtherTemplate FOR this»
...
See Root.xpt as an example (ignore the encoding issues if you see some, these are just the guillemot brackets).
Regards,
~Karsten
Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
Powered by
FUDForum. Page generated in 0.02255 seconds