Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Validation via Diagnostician multiple times
Validation via Diagnostician multiple times [message #889816] Tue, 19 June 2012 18:30 Go to next message
Felix Feisst is currently offline Felix FeisstFriend
Messages: 20
Registered: February 2012
Location: Germany
Junior Member
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 19:02 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30693
Registered: July 2009
Senior Member
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: Mon Dec 16 03:19:48 GMT 2019

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

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

Back to the top