Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Xtend] Editor shows wrong errors
[Xtend] Editor shows wrong errors [message #537686] Thu, 03 June 2010 07:41 Go to next message
Eclipse UserFriend
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 02:47 Go to previous messageGo to next message
Eclipse UserFriend
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 03:38 Go to previous messageGo to next message
Eclipse UserFriend
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 09:12 Go to previous message
Eclipse UserFriend
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: Tue Jul 01 10:56:13 EDT 2025

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

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

Back to the top