if (StringUtils.isNullOrEmpty(filename)) {
JOptionPane.showMessageDialog(TextFileDictionaryDialog.this, "Please select a character encoding");
return;
}
TextFileDictionary dict = new TextFileDictionary(name, filename, encoding);
if (_originalDictionary != null) {
_catalog.removeDictionary(_originalDictionary);
}
_catalog.addDictionary(dict);