Skip to main content



      Home
Home » Eclipse Projects » JFace » [databinding] Customize WizardPageSupport
[databinding] Customize WizardPageSupport [message #45091] Mon, 27 July 2009 13:54 Go to next message
Eclipse UserFriend
I started a thread last week about customizing the behavior of
ControlDecorationSupport ("[databinding] ControlDecorationSupport idea").
The idea was that a red "X" would only show up if the user had modified a
field.

I would like to do the same for WizardPageSupport/DialogPageSupport.
Currently, these classes have the intelligence to hide page error messages
initially. But as soon as any field changes, the page errors are shown even
for untouched fields. For example:

___________________ ___________________
Enter your name. X Last Name is required
___________________ ___________________
--->
First Name: *______ First Name: _Will___
Last Name: *______ Last Name: *______

I would like the asterisk to speak for itself until the user has actually
interacted with the field. My workaround (as with ControlDecorationSupport)
is to use a custom status which is aware of whether it is the initial
validation. But unlike ControlDecorationSupport, I see no clear way to
provide custom handling for it in DialogPageSupport. The best I have come
up with required me to subclass DialogPageSupport and copy/paste
handleUIChanged, handleStatusChanged() and handleStatusException(). The
first two methods have a @noreference and the third is private so this is
clearly not desirable.

Any ideas?

My code is here: http://textsnip.com/e1b7a7/java

-Will
Re: [databinding] Customize WizardPageSupport [message #299131 is a reply to message #45091] Mon, 27 July 2009 20:13 Go to previous messageGo to next message
Eclipse UserFriend
Will,

Would you file a bug for this?

Matthew

Will Horn wrote:
> I started a thread last week about customizing the behavior of
> ControlDecorationSupport ("[databinding] ControlDecorationSupport
> idea"). The idea was that a red "X" would only show up if the user had
> modified a field.
>
> I would like to do the same for WizardPageSupport/DialogPageSupport.
> Currently, these classes have the intelligence to hide page error
> messages initially. But as soon as any field changes, the page errors
> are shown even for untouched fields. For example:
>
> ___________________ ___________________
> Enter your name. X Last Name is required
> ___________________ ___________________
> --->
> First Name: *______ First Name: _Will___
> Last Name: *______ Last Name: *______
>
> I would like the asterisk to speak for itself until the user has
> actually interacted with the field. My workaround (as with
> ControlDecorationSupport) is to use a custom status which is aware of
> whether it is the initial validation. But unlike
> ControlDecorationSupport, I see no clear way to provide custom handling
> for it in DialogPageSupport. The best I have come up with required me
> to subclass DialogPageSupport and copy/paste handleUIChanged,
> handleStatusChanged() and handleStatusException(). The first two
> methods have a @noreference and the third is private so this is clearly
> not desirable.
>
> Any ideas?
>
> My code is here: http://textsnip.com/e1b7a7/java
>
> -Will
Re: [databinding] Customize WizardPageSupport [message #369123 is a reply to message #299131] Tue, 28 July 2009 13:51 Go to previous message
Eclipse UserFriend
http://bugs.eclipse.org/284908

"Matthew Hall" <matthall@woodcraftmill.com> wrote in message
news:h4lfrn$pde$1@build.eclipse.org...
> Will,
>
> Would you file a bug for this?
>
> Matthew
>
> Will Horn wrote:
>> I started a thread last week about customizing the behavior of
>> ControlDecorationSupport ("[databinding] ControlDecorationSupport idea").
>> The idea was that a red "X" would only show up if the user had modified a
>> field.
>>
>> I would like to do the same for WizardPageSupport/DialogPageSupport.
>> Currently, these classes have the intelligence to hide page error
>> messages initially. But as soon as any field changes, the page errors
>> are shown even for untouched fields. For example:
>>
>> ___________________ ___________________
>> Enter your name. X Last Name is required
>> ___________________ ___________________
>> --->
>> First Name: *______ First Name: _Will___
>> Last Name: *______ Last Name: *______
>>
>> I would like the asterisk to speak for itself until the user has actually
>> interacted with the field. My workaround (as with
>> ControlDecorationSupport) is to use a custom status which is aware of
>> whether it is the initial validation. But unlike
>> ControlDecorationSupport, I see no clear way to provide custom handling
>> for it in DialogPageSupport. The best I have come up with required me to
>> subclass DialogPageSupport and copy/paste handleUIChanged,
>> handleStatusChanged() and handleStatusException(). The first two methods
>> have a @noreference and the third is private so this is clearly not
>> desirable.
>>
>> Any ideas?
>>
>> My code is here: http://textsnip.com/e1b7a7/java
>>
>> -Will
Previous Topic:UpdateListStrategy validation
Next Topic:[Databinding] Exceptions + Vetoable Changes
Goto Forum:
  


Current Time: Sun Aug 31 16:07:09 EDT 2025

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

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

Back to the top