[databinding] Customize WizardPageSupport [message #45091] |
Mon, 27 July 2009 13:54  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.35254 seconds