Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » Xpand importing ecore model
Xpand importing ecore model [message #490187] Wed, 07 October 2009 13:51 Go to next message
Eclipse UserFriend
Hello everybody,

I'm kind of a newbie around xtext, xpand and xtend, I'm trying to use it in a modernization process involving CORBA's IDL.

I've succesfully imported my IDL metamodel in the form of an .ecore file (inside a project called IDLMM) in my xtext t2m transformation, and now I'm trying to use the generator (xpand) to generate code. The problem is that, although I was able to import that .ecore metamodel in the xtext grammar (import 'platform:/resource/IDL-MM/IDLMM.ecore' as IDL), I don't find the way to import that same metamodel in the generator project!. Could anyone bring some light around this surely naive problem?

Thanks in advance,
Pedro.
Re: Xpand importing ecore model [message #490250 is a reply to message #490187] Thu, 08 October 2009 01:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi

you have to put the ecore to your generator project's classpath. then you can import the epackages defined in the ecore file into your xpand templates / check files / xtend files
Re: Xpand importing ecore model [message #490421 is a reply to message #490250] Thu, 08 October 2009 11:38 Go to previous message
Eclipse UserFriend
Thanks so much!, it works now. I just copied the .ecore file inside the project, and it worked like a charm.
Previous Topic:Reading Multiple XML files with Xpand
Next Topic:Patch for <jet.compile> (<jet.compile2) gives null pointer exceptions
Goto Forum:
  


Current Time: Tue Jul 22 20:21:50 EDT 2025

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

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

Back to the top