|Re: [Xtend]Executing Xtend templates contributed by other plugins through extension point [message #490006 is a reply to message #489848]
||Tue, 06 October 2009 16:33
| Sven Efftinge
Registered: July 2009
> In my project I will be having Xtend templates contributed through
> extension point. So the plugin that executes these templates will
> be different from the one containing these templates. But I have read on
> the Xtend/Xpand reference that the template
> should be on the classpath of the process executing this
> So is there a way to run such kind of templates?
There's a so called ResourceManager, which is used to load extension
files. The default implementation uses the classpath to locate
extensions, but you could provide a different implementation.
Subclassing org.eclipse.xtend.expression.ResourceManagerDefaultImpl and
overwriting its loadResource() method should be a good starting point.
You have to provide your implementation when creating an execution
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Powered by FUDForum
. Page generated in 0.01674 seconds