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: 333
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):

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...

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 online Christian DietrichFriend
Messages: 10534
Registered: July 2009
Senior Member
Hello Hauke,

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

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: 502
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Could be a bug. Would you open a bug report and attach the sample project?
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] access to Issues from JAVA extension
Next Topic:Xtend/Xpand support in ohloh
Goto Forum:

Current Time: Wed May 24 06:29:54 GMT 2017

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

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