Live Validation/Audit Rules [message #153661] |
Fri, 05 October 2007 05:26  |
Eclipse User |
|
|
|
Originally posted by: martinschmidt.83.web.de
Hi @all,
i want to implement some rules i cant describe with my ecore-model. so i
wanted to use audit rules with ocl. i
|
|
|
|
Re: Live Validation/Audit Rules [message #153709 is a reply to message #153683] |
Fri, 05 October 2007 07:14   |
Eclipse User |
|
|
|
Originally posted by: ijerez2001.gmail.com
Perhaps because you generate a RCP application code, in RCP, the live
validation don´t work, and you have to press the menu Validate button, it
show to you a icon in your figure that they don´t validate.
It work well if it is a non-RCP application.
Also, you can do live validation manually, change the diagram code and
introding MessageDialog.operError(....).
Regards. Iván.
"Tomas Zijdemans" <trommas@yahoo.com> escribió en el mensaje de
noticias:fe55nr$ui9$1@build.eclipse.org...
> My best guess is that there is a logical error in you ocl statement (and
> that your setup is correct) - maybee you could post the ocl?
>
>
> Regards,
>
> Tomas
>
> Martin Schmidt wrote:
>> Hi @all,
>> i want to implement some rules i cant describe with my ecore-model. so i
>> wanted to use audit rules with ocl. i´ve seen, it is implemented in
>> mindmap-example:
>> - topics must have a name
>> - one rule for avoiding circles of the connections
>>
>> but it does not work. in the past, there was a message in the error
>> log..something like: "you dont have an ocl-parser". so i downloaded the
>> feature for it as it was described in a past Newsgroup Thread. Now the
>> message do not appear anymore. But the rules wont work. I dont get the
>> error message, which is defined in audit rule...
>> Somebody knows why?
|
|
|
|
|
|
|
|
Re: Live Validation/Audit Rules [message #154583 is a reply to message #154086] |
Wed, 10 October 2007 04:41  |
Eclipse User |
|
|
|
Originally posted by: martinschmidt.83.web.de
Thanx! This was what i needed. Indeed, I did it before, but i forgot to
check out the new plugin for the project in "open run dialog" ;)
"Johan Linander" <johan@mediaempire.se> schrieb im Newsbeitrag
news:7f4d9a14f932f9fde3909a84d64c3f09$1@www.eclipse.org...
>I had the same problem as you.
> Try adding the 'EMF Validation Framework OCL Integration' plugin from the
> Europa Discovery Site. That solved my problem! :)
>
> Regards
> Johan
>
> Martin Schmidt wrote:
>
>> Sorry, i found my fault. The value "use in live mod" of the seperate
>> Audit Rules was set to false. But now the old problem appears again.
>> "Warning
>> Fri Oct 05 14:13:22 CEST 2007
>> No parser is registered for the "OCL" language. Constraints expressed in
>> this language will not be evaluated."
>
>> Can somebody explain for a beginner, how OCL-Parser in registered step by
>> step?
>> Thank u a lot!
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03486 seconds