Summary: | [Dialogs] odd code in org.eclipse.jface.preference.StringFieldEditor | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Michael Moser <mmo> |
Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 | ||
Version: | 3.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Michael Moser
2005-07-05 05:53:11 EDT
I suggest the following modification (at least that's how I implemented my CComboFieldEditor and that seems to work): protected boolean checkState() { boolean result; if (textField == null) { result = false; } else { String txt = textField .getText(); result = (txt.trim().length() > 0) || emptyStringAllowed; } // call hook for subclasses result = result && doCheckState(); if (result) clearErrorMessage(); else showErrorMessage(errorMessage); return result; } changing prio and status to conform to plat-ui bug guidelines This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |