| Summary: | [DataBinding] getCombinedValidationMessage firing too often | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Dave Orme <djo> |
| Component: | UI | Assignee: | Boris Bokowski <bokowski> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bokowski, chs, gmendel, Winchest |
| Version: | 3.2 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
(The result is that even though the correct message is being fired, it is immediately being cleared by some another field on the form.) This may be a dupe of bug #119930 (In reply to comment #1) > (The result is that even though the correct message is being fired, it is > immediately being cleared by some another field on the form.) > > This may be a dupe of bug #119930 Nope. We're processing too many SWT events here, not JavaBeans events. Also getPartialValidationMessage Dave, is this still a problem? The main complaint in this bug (too many SWT events triggering validation) can is addressed by SWTObservables.observeDelayedValue(). Close? sure Closing as dupe of 180746 since that bug fix addresses this issue *** This bug has been marked as a duplicate of bug 180746 *** |
Given: private IChangeListener messageChangeListener = new IChangeListener() { public void handleChange(ChangeEvent changeEvent) { String displayMessage = (String)validationMessage.getValue(); setMessage(displayMessage); } }; protected IUpdatableValue validationMessage; private void bindGUI() { IDataBindingContext dbc = PartnerBinding.createContext(this.getShell()); validationMessage = dbc.getCombinedValidationMessage(); validationMessage.addChangeListener(messageChangeListener); ... } The validation message never gets displayed because every field on the form is firing validation messages after every keystroke.