Skip to main content


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 19:50 Go to next message
Yu Sun is currently offline Yu SunFriend
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 20:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [Xpand] Xpand editor error markers [message #550040 is a reply to message #550036] Wed, 28 July 2010 20:23 Go to previous message
Yu Sun is currently offline Yu SunFriend
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: Fri Apr 19 05:55:45 GMT 2024

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

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

Back to the top