/*
* tidy inputs and check there is something to search for
*/
- String text = textArea.getText();
- final String t0 = text;
+ String t0 = textArea.getText();
+ String text = t0.trim();
if (replacePunctuation.isEnabled() && replacePunctuation.isSelected())
{
text = text.replace(",", ";");
resetDialog();
return;
}
+ if (database.getSelectedIndex() == 0)
+ {
+ // todo i18n
+ showErrorMessage("Please choose a database");
+ resetDialog();
+ return;
+ }
+
exampleBtn.setEnabled(false);
textArea.setEnabled(false);
okBtn.setEnabled(false);