Skip to main content



      Home
Home » Modeling » EMF » Validation via Diagnostician multiple times
Validation via Diagnostician multiple times [message #889816] Tue, 19 June 2012 14:30 Go to next message
Eclipse UserFriend
I tried to use the validation programatically.

To achieve this I use: Diagnostician.INSTANCE.validate(model)

The validation works as expected the first time I invoke validate(..) but if I invoke the method a second time (with a different model as argument) the validation does not work as expected.

Do I have to clear some state in between or what am I supposed to do?

Regards,
Felix
Re: Validation via Diagnostician multiple times [message #889820 is a reply to message #889816] Tue, 19 June 2012 15:02 Go to previous message
Eclipse UserFriend
Felix,

The Diagnostician is effectively stateless (other than a registry, which
is never modified) so I'm not sure what to say.


On 19/06/2012 2:30 PM, Felix Atmanspacher wrote:
> I tried to use the validation programatically.
>
> To achieve this I use: Diagnostician.INSTANCE.validate(model)
>
> The validation works as expected the first time I invoke validate(..)
> but if I invoke the method a second time (with a different model as
> argument) the validation does not work as expected.
>
> Do I have to clear some state in between or what am I supposed to do?
>
> Regards,
> Felix
Previous Topic:How can I set multiple root to treeviewer using emf adapterfactoryContentProvider
Next Topic:[Resolved] [CDO] - HowTo customise the (de)serialization ?
Goto Forum:
  


Current Time: Sun Aug 31 14:22:02 EDT 2025

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

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

Back to the top