Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] where does it look for EMF models?
[Xpand] where does it look for EMF models? [message #57867] Fri, 27 February 2009 14:48 Go to next message
J F is currently offline J FFriend
Messages: 256
Registered: July 2009
Senior Member
How does an Xpand template find the EMF model(s) it requires to perform
context assist and compilation?

I have successfully run through
http://eclipse.dzone.com/articles/using-xpand-your-eclipse-w izar but I
would like to have my templates in a different project than my model ( and
its code ). I have tried exporting my EMF model as a standard EMF plugin
with generated package extension, and then putting this in the Xpand
template project dependencies, and I have tried just referencing my EMF
model project from my Xpand template project but to no avail. I do not
normaly put my models in the src folder for a project, as per the Dzone
example, is this where I am going wrong?

Any docs on this subject would be a great help.

I am using Eclipse3.5M4 ( I have a lot of work invested in other things
around M4 and don't wish to upgrade yet - p2 isn't letting me anyway ;-(),
Xpand0.7.0M4 with appropriate dependencies

Thanks.
Re: [Xpand] where does it look for EMF models? [message #57892 is a reply to message #57867] Fri, 27 February 2009 15:23 Go to previous messageGo to next message
J F is currently offline J FFriend
Messages: 256
Registered: July 2009
Senior Member
So as long as the model is on the classpath of the generator process then
everything works fine;

See
http://www.openarchitectureware.org/pub/documentation/4.3.1/ html/contents/core_reference.html

This means if you keep your EMF model under a directory "myModelPath" in
the root of your EMF generated plugin, and change the plugin classpath (
in Manifest.mf ) to include "myModelPath" then the template editor will
pick up your EMF model
Re: [Xpand] where does it look for EMF models? [message #57941 is a reply to message #57892] Tue, 03 March 2009 07:42 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Exactly, the ecore files needs to be somewhere on the classpath.

Cheers,
Sven

JF schrieb:
> So as long as the model is on the classpath of the generator process
> then everything works fine;
>
> See
> http://www.openarchitectureware.org/pub/documentation/4.3.1/ html/contents/core_reference.html
>
>
> This means if you keep your EMF model under a directory "myModelPath" in
> the root of your EMF generated plugin, and change the plugin classpath (
> in Manifest.mf ) to include "myModelPath" then the template editor will
> pick up your EMF model
>
Previous Topic:Launching JET2 from code
Next Topic:[Announce] M2T XPAND 0.7.0 I200903030415 is available
Goto Forum:
  


Current Time: Wed Jul 17 09:55:28 GMT 2024

Powered by FUDForum. Page generated in 0.03426 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top