public void widgetSelected(SelectionEvent e) {
// if the server is started, then we can bring up the dialog
if (isServerRunning()) {
GeronimoServerPluginManager pluginManager = new GeronimoServerPluginManager (gs.getServer());
ServerPluginManagerWizard wizard = new ServerPluginManagerWizard (pluginManager);
ServerPluginManagerDialog dialog = new ServerPluginManagerDialog(Display.getCurrent().getActiveShell(), wizard);
dialog.open();
if (dialog.getReturnCode() == Dialog.OK) {
}
} else {
MessageDialog.openError(Display.getCurrent().getActiveShell(), CommonMessages.errorOpenWizard, CommonMessages.serverNotStarted);
}
}