public void actionPerformed(ActionEvent e) {
String item = e.getActionCommand();
GeneralToolPluginBase plugin = menuItemNameToGenToolPlugin
.get(item);
try {
plugin.invoke();
} catch (Throwable t) {
MessageBox.showErrorDialog("Tool Error", t);
}
}
};