listModel.addElement(resources.getStringValue("languageName" + i));
if (resources.getStringValue("languageCode" + i).equals(oldcode)) {
sel = i;
}
}
JList langlist = new JList(listModel);
langlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
if (sel != -1) {
langlist.setSelectedIndex(sel);
}
int result = JOptionPane.showConfirmDialog(owner, langlist, resources.getString("chooseLanguageTitle"),
JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
if ((result == JOptionPane.OK_OPTION) && (langlist.getSelectedIndex() != -1)) {
String code = resources.getStringValue("languageCode" + langlist.getSelectedIndex());
Run.getProperties().setString("jsynoptic.language", (code != null) ? code : "");
}
} else if (e.getSource() == miFindPlugins) {
setStatus(messageWriter.print0args("lookingForPlugins"));
new LongAction() {