Community
Participate
Working Groups
PreferenceDialog.okPressed() always closes the dialog. To improve UI behaviour, this should not happen if one of the PreferencePages within returns false from its performOk() method. What I mean by that is: if an error occurs validating or saving data on a preference page (indicated by the preference page returning false), the PreferenceDialog should remain open or the page that caused an error, with the error dialog centered over the PreferenceDialog. The dialog should then remain open so the user can address the error without having to re-open the dialog. I'm working around this for now by extending PreferenceDialog, but it would be nice if either: a) the dialog stays open when one of its pages returns false from its performOk () method b) this behaviour can be customized, for example, by means of a setCloseOnError (boolean) method
*** This bug has been marked as a duplicate of 75988 ***