|Re: [Xtend]Executing Xtend templates contributed by other plugins through extension point [message #490006 is a reply to message #489848]
||Tue, 06 October 2009 20: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 on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Powered by FUDForum
. Page generated in 0.04801 seconds