customAssemblyButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
customAssemblyButton.addSelectionListener(new SelectionListener() {
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());
ServerCustomAssemblyWizard wizard = new ServerCustomAssemblyWizard (pluginManager);
WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wizard);
dialog.open();
if (dialog.getReturnCode() == Dialog.OK) {
}
} else {
MessageDialog.openError(Display.getCurrent().getActiveShell(), CommonMessages.errorOpenWizard, CommonMessages.serverNotStarted);
}
}
public void widgetDefaultSelected(SelectionEvent e) {
}
});
pluginManagerButton = toolkit.createButton(composite, CommonMessages.convertAppsToPlugins, SWT.PUSH);
pluginManagerButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
pluginManagerButton.addSelectionListener(new SelectionListener() {
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) {
}