Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Xpand editor error markers
[Xpand] Xpand editor error markers [message #550034] Wed, 28 July 2010 15:50 Go to next message
Yu Sun is currently offline Yu Sun
Messages: 58
Registered: July 2009
Member
Hi everyone,

My Xpand templates work well.

But one problem is:

In the Eclipse Initial WS, I have a code generation project which contains all the templates.

In the Eclipse Runtime WS, I trigger this code generation on a selected model.

Everything works fine. However, when I open the templates in the Initial WS, the red error markers appear at all the locations that contain names from the metamodel. So, it seems that the editor cannot recognize the metamodel, even though I used the correct <<import ... >>

These error markers are very annoying.

Any ideas?

Thanks.

Yu
Re: [Xpand] Xpand editor error markers [message #550036 is a reply to message #550034] Wed, 28 July 2010 16:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 5841
Registered: July 2009
Senior Member
Hi, make sure that the metamodel is on the classpath and that you activate the right metamodel in your Generator projects xpand xtend properties - the Default is (Dynamic) EMF but it should Be JavaBeansMetamodel for Xtext projects.

Regards,
Christian
Re: [Xpand] Xpand editor error markers [message #550040 is a reply to message #550036] Wed, 28 July 2010 16:23 Go to previous message
Yu Sun is currently offline Yu Sun
Messages: 58
Registered: July 2009
Member
Thanks Christian. The problem has been solved. I need to put the ecore file in the correspondent folder.

Yu
Previous Topic:[Acceleo 3] Module to plugin [Resolved]
Next Topic:[Acceleo] store trace information
Goto Forum:
  


Current Time: Wed Apr 16 09:31:45 EDT 2014

Powered by FUDForum. Page generated in 0.03065 seconds