Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » XpandFacade and Classpath(How to set the classpath for the XpandFacade correctly)
XpandFacade and Classpath [message #1006174] Wed, 30 January 2013 05:51 Go to next message
Udo Walker is currently offline Udo Walker
Messages: 4
Registered: January 2013
Junior Member
I wrote an Eclipse plugin in which I create a XpandFacade. This XpandFacade uses my own resource manager which loads the template from a Java project in the runtime Eclipse where my plugin is installed.
Everything works find except my own extensions are not found by my templates (my XpandFacade instance).


How can I expand the classpath so that I can use my own Xpand/Xtend extensions in my template files?

I tried to place my extension files in the source classpath of the Java project. -> Did not work.
I tried to put my extension in my plugin where I initialize the XpandFacade. -> Did not work.

Where should I put it?


Re: XpandFacade and Classpath [message #1006385 is a reply to message #1006174] Thu, 31 January 2013 03:28 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten Thoms
Messages: 353
Registered: July 2009
Location: Dortmund
Senior Member

Hi Udo,

the ResourceManager is already the right place. Also Xtend files are loaded through the ResourceManager. Once successfully loaded they are parsed, and extension function become available to the template.

Kind regards,
~Karsten


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: XpandFacade and Classpath [message #1006682 is a reply to message #1006385] Fri, 01 February 2013 07:17 Go to previous message
Udo Walker is currently offline Udo Walker
Messages: 4
Registered: January 2013
Junior Member
Hi Karsten,

thanks. My ResourceManager implementation was the problem.

Kind regards,
Udo
Previous Topic:org.eclipse.emf.mwe.utils.Reader is not reading stereotype
Next Topic:[Acceleo/Papyrus]How to view Acceleo UML2Java example with Papyrus?
Goto Forum:
  


Current Time: Thu Aug 28 19:31:25 EDT 2014

Powered by FUDForum. Page generated in 0.01569 seconds