Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xtend] Editor shows wrong errors
[Xtend] Editor shows wrong errors [message #537686] Thu, 03 June 2010 11:41 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 328
Registered: July 2009
Senior Member
Hi there,

I'm creating an xtend file with the xtend text editor.

I have two metamodels, one using the other where

metamodelA.ecore: Class NamedObject, field name:String
metamodelB.ecore: Class Entity extends NamedObject

An xtend file has:

---
import metamodelA;
import metamodelB;

Void test(metamodelB::Entity entity):
entity.setName("Test")
;
---

Actually the transformation works fine, when I execute it.
However, the Xtend editor shows a problem marker:

"Couldn't find operation 'setName(String)' 'for type metamodelB::Entity'"

I copied the ecore files to the same folder as the xtend file but this
did not help. Anything else I need to do to register the metamodels in
my current workspace? They already get registered in the workflow, but I
guess the xtend editor is not aware of the workflow file...

Hauke
Re: [Xtend] Editor shows wrong errors [message #537898 is a reply to message #537686] Fri, 04 June 2010 06:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6499
Registered: July 2009
Senior Member
Hello Hauke,

how do the metamodels / ecore file reference each other?
Namespace / File Location? ...

Regards,
Christian
Re: [Xtend] Editor shows wrong errors [message #537916 is a reply to message #537686] Fri, 04 June 2010 07:38 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 360
Registered: July 2009
Location: Dortmund
Senior Member

Could be a bug. Would you open a bug report and attach the sample project?

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: [Xtend] Editor shows wrong errors [message #545029 is a reply to message #537916] Tue, 06 July 2010 13:12 Go to previous message
svb007 is currently offline svb007Friend
Messages: 3
Registered: July 2010
Junior Member
My installation shows the same behaviour even I use only one metamodel. Furthermore the editor shows the problem that it cannot recognize the used namespace («IMPORT com::smc::ps::mdd::vS» in my case). Also the project specific extensions are not recognized.
Previous Topic:[Xtend] Accessing EClass of a model element?
Next Topic:[XPAND] xpanding for a Type T
Goto Forum:
  


Current Time: Fri Nov 28 04:21:55 GMT 2014

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

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