} else if (name.equals("about")) {
new About(frame);
} else if (name.equals("dnd")) {
new DnDTest();
} else if (name.equals("message.info")) {
new MessageDialog(frame, getString("test.message.info.title"), getString("test.message.info.message"));
} else if (name.equals("message.warning")) {
new MessageDialog(frame, MessageDialog.WARNING_MESSAGE, getString("test.message.warning.title"), getString("test.message.warning.message"), null);
} else if (name.equals("message.error")) {
throw new GUIException("This is an example error");
} else if (name.equals("edit")) {
TableRow selection[] = (TableRow[]) model.getValue("table.value");
for (int i = 0; i < selection.length; i++) {
new PersonEditor(selection[i]);
}
} else if (name.equals("consoleCommand")) {
CommandEvent event = (CommandEvent) e.getSwingEvent();
event.getSource().appendText(getString("test.console.command"));
event.getSource().appendText(event.getCommand(), boldAttribute);
event.getSource().appendText(getString("test.console.notfound")+"\n");
} else if (name.equals("login")) {
log.debug(
"Login has been clicked. username ["
+ model.getValue("username")
+ "], password ["
+ model.getValue("password")
+ "], ssl ["
+ model.getValue("ssl")
+ "], verbose ["
+ model.getValue("verbose")
+ "]");
}
} catch (GUIException ex) {
new MessageDialog(ex);
}
}