Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » [Databinding] Exceptions + Vetoable Changes
[Databinding] Exceptions + Vetoable Changes [message #370161] Wed, 29 July 2009 01:06 Go to next message
Charlie Kelly is currently offline Charlie KellyFriend
Messages: 276
Registered: July 2009
Senior Member
Suppose that a setter method within a model throws an Exception.
Is is possible the catch this within databinding?
Within an instance of UpdateValueStrategy?

If yes to either, how?
Where can I find documentation.

Also, suppose that a model wants to veto a property change?
How can this be handled within databinding?

In advanced, thanks for your help.

Charlie
Re: [Databinding] Exceptions + Vetoable Changes [message #371879 is a reply to message #370161] Wed, 29 July 2009 07:36 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
If your setter throws an Exception IIRC this is tracked in the status of
the binding but normally this should be prevented by defining your
custom IValidator for the binding.

Tom

Charlie Kelly schrieb:
>
> Suppose that a setter method within a model throws an Exception.
> Is is possible the catch this within databinding?
> Within an instance of UpdateValueStrategy?
>
> If yes to either, how?
> Where can I find documentation.
>
> Also, suppose that a model wants to veto a property change?
> How can this be handled within databinding?
>
> In advanced, thanks for your help.
>
> Charlie
>
>
Previous Topic:[databinding] Customize WizardPageSupport
Next Topic:Refresh element in ElementListSelectionDialog
Goto Forum:
  


Current Time: Thu Sep 19 07:37:25 GMT 2024

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

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

Back to the top