Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Check Editor is not aware of metamodel
Check Editor is not aware of metamodel [message #60138] Fri, 17 July 2009 16:56 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Hi there,

I try to edit a Check language file with the nice editor that provides
syntax highlighting, etc.
Although I import a metamodel simply by the line
import modelname;
in the Check-file, the editor does not seem to be aware of my metamodel.
It does not provide any content-assist and auto-completion.

Is there anything I have to do manually to register the metamodel such
that the Check editor gets aare of it?

Hauke
Re: Check Editor is not aware of metamodel [message #60209 is a reply to message #60138] Fri, 17 July 2009 18:07 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Hauke,

I've tried to use the editor and it works fine. Usually there is no need
for any customization.

Did you generate your language?
Does your runtime dsl project contain the metamodel file or does it
reside in a dependent plugin?
Did you enable the Xtend/Xpand Nature for your project?
Did you activate the EMF Metamodel for your project in the preferences?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


Am 17.07.2009 18:56 Uhr, schrieb Hauke Fuhrmann:
> Hi there,
>
> I try to edit a Check language file with the nice editor that provides
> syntax highlighting, etc.
> Although I import a metamodel simply by the line
> import modelname;
> in the Check-file, the editor does not seem to be aware of my metamodel.
> It does not provide any content-assist and auto-completion.
>
> Is there anything I have to do manually to register the metamodel such
> that the Check editor gets aare of it?
>
> Hauke
Re: Check Editor is not aware of metamodel [message #60300 is a reply to message #60209] Fri, 17 July 2009 19:05 Go to previous message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Hi Sebastian,

I have the ecore/genmodel file together with the chk file in the same
project. The model code generated is in another project. The Xtext stuff
is also in another project.
When opening the Check file Eclipse asked me if I wanted to add the
XTend nature and I agreed. In the project properties "EMF MEtamodel" is
enabled.

Hauke

Sebastian Zarnekow schrieb:
> Hi Hauke,
>
> I've tried to use the editor and it works fine. Usually there is no need
> for any customization.
>
> Did you generate your language?
> Does your runtime dsl project contain the metamodel file or does it
> reside in a dependent plugin?
> Did you enable the Xtend/Xpand Nature for your project?
> Did you activate the EMF Metamodel for your project in the preferences?
>
> Regards,
> Sebastian
Previous Topic:[Announce] TMF XTEXT 0.7.1 is available
Next Topic:Unsatisfied dependency on interim update site
Goto Forum:
  


Current Time: Thu Sep 26 22:49:21 GMT 2024

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

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

Back to the top