if (server == null)
return;
WizardDialog dialog = new WizardDialog(null, new Wizard() {
private DefineHadoopServerLocWizardPage page =
new DefineHadoopServerLocWizardPage(server);
@Override
public void addPages() {
super.addPages();
setWindowTitle("Edit Hadoop Server Location");
addPage(page);
}
@Override
public boolean performFinish() {
return (page.performFinish() != null);
}
});
dialog.create();
dialog.setBlockOnOpen(true);