public static Integer openWizard(final Shell parentShell,
final Wizard wizard, final Point initialSize) {
try {
return Utils.runSWTSync(new Callable<Integer>() {
public Integer call() {
WizardDialog wizardDialog = new CenteredWizardDialog(
parentShell, wizard, initialSize);
wizardDialog.setHelpAvailable(false);
return wizardDialog.open();
}
});
} catch (Exception e) {
log.warn("Error opening wizard " + wizard.getWindowTitle(), e);
}