Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Live Validation not working!?
Live Validation not working!? [message #68463] Sun, 21 January 2007 12:42 Go to next message
Eclipse UserFriend
Originally posted by: S.Kemmann.herr-der-mails.de

Hi,

I've tried to get the Validation example running. (That one from the first
tutorial.)
Everything is find but LiveValidation is not working at all!

Is it right, that in "LiveValidationContentAdapter.java":

IStatus status = validator.validate(notification);

Is my understanding right that the constraint-checks should be invoked in
this method!?
In the debugging view I can see the call-sequence to delegate the validate
method to the AbstractValidator.validate(Collection) method. If this is
still working correctly could anyone (please) explain, who's calling the
validate-method of my constraint (NonEmptyNamesConstraint.validate)??

Thx a lot!!
Soeren
Re: Live Validation not working!? [message #68468 is a reply to message #68463] Sun, 21 January 2007 13:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: S.Kemmann.herr-der-mails.de

OK ... was (of course) my fault!
The constraint is of course only checked when set/unset events occur ...
*doh*

;-)

"Soeren Kemmann" <S.Kemmann@herr-der-mails.de> schrieb im Newsbeitrag
news:eovn35$jat$1@utils.eclipse.org...
> Hi,
>
> I've tried to get the Validation example running. (That one from the first
> tutorial.)
> Everything is find but LiveValidation is not working at all!
>
> Is it right, that in "LiveValidationContentAdapter.java":
>
> IStatus status = validator.validate(notification);
>
> Is my understanding right that the constraint-checks should be invoked in
> this method!?
> In the debugging view I can see the call-sequence to delegate the validate
> method to the AbstractValidator.validate(Collection) method. If this is
> still working correctly could anyone (please) explain, who's calling the
> validate-method of my constraint (NonEmptyNamesConstraint.validate)??
>
> Thx a lot!!
> Soeren
>
>
>
Re: Live Validation not working!? [message #68712 is a reply to message #68468] Mon, 22 January 2007 22:07 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Soeren,

I'm glad you worked it out!

Christian


Soeren Kemmann wrote:

> OK ... was (of course) my fault!
> The constraint is of course only checked when set/unset events occur ...
> *doh*
>
> ;-)
>
> "Soeren Kemmann" <S.Kemmann@herr-der-mails.de> schrieb im Newsbeitrag
> news:eovn35$jat$1@utils.eclipse.org...
>> Hi,
>>
>> I've tried to get the Validation example running. (That one from the
>> first tutorial.)
>> Everything is find but LiveValidation is not working at all!
>>
>> Is it right, that in "LiveValidationContentAdapter.java":
>>
>> IStatus status = validator.validate(notification);
>>
>> Is my understanding right that the constraint-checks should be invoked in
>> this method!?
>> In the debugging view I can see the call-sequence to delegate the
>> validate method to the AbstractValidator.validate(Collection) method. If
>> this is still working correctly could anyone (please) explain, who's
>> calling the validate-method of my constraint
>> (NonEmptyNamesConstraint.validate)??
>>
>> Thx a lot!!
>> Soeren
>>
>>
>>
Re: Live Validation not working!? [message #601455 is a reply to message #68463] Sun, 21 January 2007 13:17 Go to previous message
Soeren Kemmann is currently offline Soeren KemmannFriend
Messages: 15
Registered: July 2009
Junior Member
OK ... was (of course) my fault!
The constraint is of course only checked when set/unset events occur ...
*doh*

;-)

"Soeren Kemmann" <S.Kemmann@herr-der-mails.de> schrieb im Newsbeitrag
news:eovn35$jat$1@utils.eclipse.org...
> Hi,
>
> I've tried to get the Validation example running. (That one from the first
> tutorial.)
> Everything is find but LiveValidation is not working at all!
>
> Is it right, that in "LiveValidationContentAdapter.java":
>
> IStatus status = validator.validate(notification);
>
> Is my understanding right that the constraint-checks should be invoked in
> this method!?
> In the debugging view I can see the call-sequence to delegate the validate
> method to the AbstractValidator.validate(Collection) method. If this is
> still working correctly could anyone (please) explain, who's calling the
> validate-method of my constraint (NonEmptyNamesConstraint.validate)??
>
> Thx a lot!!
> Soeren
>
>
>
Re: Live Validation not working!? [message #601530 is a reply to message #68468] Mon, 22 January 2007 22:07 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Soeren,

I'm glad you worked it out!

Christian


Soeren Kemmann wrote:

> OK ... was (of course) my fault!
> The constraint is of course only checked when set/unset events occur ...
> *doh*
>
> ;-)
>
> "Soeren Kemmann" <S.Kemmann@herr-der-mails.de> schrieb im Newsbeitrag
> news:eovn35$jat$1@utils.eclipse.org...
>> Hi,
>>
>> I've tried to get the Validation example running. (That one from the
>> first tutorial.)
>> Everything is find but LiveValidation is not working at all!
>>
>> Is it right, that in "LiveValidationContentAdapter.java":
>>
>> IStatus status = validator.validate(notification);
>>
>> Is my understanding right that the constraint-checks should be invoked in
>> this method!?
>> In the debugging view I can see the call-sequence to delegate the
>> validate method to the AbstractValidator.validate(Collection) method. If
>> this is still working correctly could anyone (please) explain, who's
>> calling the validate-method of my constraint
>> (NonEmptyNamesConstraint.validate)??
>>
>> Thx a lot!!
>> Soeren
>>
>>
>>
Previous Topic:Problem with Interactive OCL Console used with Sample Ecore Editor
Next Topic:Live Validation after saving the model
Goto Forum:
  


Current Time: Fri Feb 26 11:05:21 GMT 2021

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

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

Back to the top