Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » WizardPageSupport and Eclipse UI Guideline 5.5(How do I get the default WizardPageSupport to be consistent with the UI Guidelines?)
WizardPageSupport and Eclipse UI Guideline 5.5 [message #844284] Fri, 13 April 2012 22:00 Go to next message
Michael Ihde is currently offline Michael IhdeFriend
Messages: 10
Registered: July 2009
Junior Member
I'm working on a wizard within Eclipse that uses the JFace DataBindings and WizardPageSupport. For example, assume the wizard has two text boxes:

Field 1 [ ]
Field 2 [ ]

Both of these fields *must* have a non-empty value.

WizardPageSupport correctly implements UI guideline 5.3 (Start the wizard with a prompt, not an error message). However, I cannot find a convenient way to comply with guideline 5.5 ( Display a prompt when information is absent, and an error when information is invalid).

If my validators return IStatus.ERROR when the value is empty that I violate guideline 5.5. If my validators return IStatus.INFO instead, then the Finish button is enabled when the dialog still requires user input. If my validators return IStatus.CANCEL, then a real error (i.e. an invalid entry) is masked until all fields are filled in (i.e. a Cancel status is considered higher priority than and Error status).

Is their a proper way to use DataBindings and also comply with UI guidelines 5.5?

Thanks
~Michael
Re: WizardPageSupport and Eclipse UI Guideline 5.5 [message #846645 is a reply to message #844284] Mon, 16 April 2012 13:52 Go to previous message
Michael Ihde is currently offline Michael IhdeFriend
Messages: 10
Registered: July 2009
Junior Member
So here are a few ideas I've thought up.

1. Override WizardPage.setPageComplete(); the validators return OK status when the fields are absent and the setPageComplete() checks that all fields are filled in.

2. Create a custom WizardPageSupport that treats and non-OK status (i.e. INFO and WARNING) as reason to mark a page as incomplete.

3. Create a custom WizardPageSupport that uses an alternative to MaxSeverityValidationStatusProvider that would treat CANCEL status as a lower severity than INFO, WARNING, ERROR.

4. Change the severity of the CANCEL constant.

I'm leaning towards (1) for now...but it seems that Eclipse may wish to either change the UI guidelines or update WizardPageSupport to be compliant with the UI guidelines in some manner.

Thoughts?
~Michael

Previous Topic:[DataBinding] Bind Control.enabled to viewer selection if instanceof of type XY
Next Topic:Java Editor ToolTip
Goto Forum:
  


Current Time: Thu Mar 28 08:34:40 GMT 2024

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

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

Back to the top