|Dynamically call another xtend method from current xtend method [message #483642]
||Wed, 02 September 2009 12:46
| Joerg Reichert
Registered: July 2009
Is it possible to dynamically call a Xtend method in another file from the current Xtend file? The path of the method to call is dynamically calculated at runtime in the first extension file. It's like a need for reflection for Xtend.|
- source model
- transformation description model containing the paths to the extension files
- target model
- a list of extension files having the same name and the same named methods just differ in the directory location (so the solution to import all possible to use extensions won't work)
At runtime it is determined on basis of the source model which paths are read out from the transformation model, defining the xtend file and the method to call. The context of the current xtend method should be also available for the called extension.
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Powered by FUDForum
. Page generated in 0.02184 seconds