Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [newbie] Getting my Check.chk recognized
[newbie] Getting my Check.chk recognized [message #23580] Wed, 26 November 2008 19:48 Go to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
I'm working through some of the tutorial docs with the Generic Editor.
Everything works fine until I try to write my own Checks.chk file.

I have installed the nature using the project context menu. I have placed
the file 'Checks.chk' into the root src directory. When I place the
following in the file:

import foo;
context MyClass1 WARNING "foo#MyClass1 should have a
name": !this.foo.isEmpty();

It has a validation failure that says: "Type not found: MyClass1".
MyClass1 is an EClass defined in an ecore model in the models directory of
the same project. I tried generating the model as well so the source is
in the foo package, directly under the Checks.chk file.

Any pointers?


Thanks,

Cameron
[Xpand] Re: [newbie] Getting my Check.chk recognized [message #23623 is a reply to message #23580] Fri, 28 November 2008 10:04 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Hi Cameron,

as the question is related to Xpand, I added the M2T newsgroup.

Currently all xpand editors require the ecore files to be reachable
through the java class path. So you have to copy the ecore file into the
src folder.

cheers,
Sven

Bateman schrieb:
> I'm working through some of the tutorial docs with the Generic Editor.
> Everything works fine until I try to write my own Checks.chk file.
>
> I have installed the nature using the project context menu. I have
> placed the file 'Checks.chk' into the root src directory. When I place
> the following in the file:
>
> import foo;
> context MyClass1 WARNING "foo#MyClass1 should have a
> name": !this.foo.isEmpty();
>
> It has a validation failure that says: "Type not found: MyClass1".
> MyClass1 is an EClass defined in an ecore model in the models directory
> of the same project. I tried generating the model as well so the source
> is in the foo package, directly under the Checks.chk file.
>
> Any pointers?
>
>
> Thanks,
>
> Cameron
>
Previous Topic:xtext or xtext?
Next Topic:how to install openarchitetureware 4.3 on ganymade 3.4
Goto Forum:
  


Current Time: Thu Dec 26 09:57:14 GMT 2024

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

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

Back to the top