Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » [Xtend / Check] using multiple check files
[Xtend / Check] using multiple check files [message #664198] Thu, 07 April 2011 19:23 Go to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hello,

I'm unsure if this is the correct newsgroup for questions related to the
Check language - please feel free to crosspost if it isn't...

I'm thinking about replacing some rather clumsy hand-written Java
validators with Check expressions using the extension point
org.eclipse.xtend.typesystem.emf.checks. I need to execute my checks
instead of the default EMF checks because the error messages generated
by the default checks are unsuitable for the users. From the
documentation I understand that I have to set override to true, and it
seems to work.

At the same time, I want to keep things organized by splitting my checks
into several .chk files. I can add multiple checkFile elements inside a
metaModel element, but I'm getting strange results. If I read the
implementation of CheckRegistry correctly, the validators that
correspond to each of the files replace each other as soon as override
is set to true. This looks like a bug to me - is it one?

Thanks
Volker


--
* Volker Wegert * http://www.volker-wegert.de/contact *
Re: [Xtend / Check] using multiple check files [message #665304 is a reply to message #664198] Thu, 14 April 2011 08:31 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Volker,

the m2t newsgroup is a better match for questions related to the Check
language.

I hope that somebody will jump in and answer your actual questions.

Regards,
Sebastian


Am 07.04.11 21:23, schrieb Volker Wegert:
> Hello,
>
> I'm unsure if this is the correct newsgroup for questions related to the
> Check language - please feel free to crosspost if it isn't...
>
> I'm thinking about replacing some rather clumsy hand-written Java
> validators with Check expressions using the extension point
> org.eclipse.xtend.typesystem.emf.checks. I need to execute my checks
> instead of the default EMF checks because the error messages generated
> by the default checks are unsuitable for the users. From the
> documentation I understand that I have to set override to true, and it
> seems to work.
>
> At the same time, I want to keep things organized by splitting my checks
> into several .chk files. I can add multiple checkFile elements inside a
> metaModel element, but I'm getting strange results. If I read the
> implementation of CheckRegistry correctly, the validators that
> correspond to each of the files replace each other as soon as override
> is set to true. This looks like a bug to me - is it one?
>
> Thanks
> Volker
>
>
Previous Topic:Topcased interface custumitation
Next Topic:[BPMN2] adding potentialOwner to UserTask
Goto Forum:
  


Current Time: Thu Apr 25 10:57:38 GMT 2024

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

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

Back to the top