143
143
private void doValidation() {
144
144
StatusInfo status = new StatusInfo();
145
145
String newText = fNameDialogField.getText();
147
147
status.setError(PreferencesMessages.TodoTaskInputDialog_error_enterName);
149
149
if (newText.indexOf(',') != -1) {
150
150
status.setError(PreferencesMessages.TodoTaskInputDialog_error_comma);
151
151
} else if (fExistingNames.contains(newText)) {
152
152
status.setError(PreferencesMessages.TodoTaskInputDialog_error_entryExists);
154
154
status.setError(PreferencesMessages.TodoTaskInputDialog_error_noSpace);
164
161
protected void configureShell(Shell newShell) {
165
162
super.configureShell(newShell);