WizardDialog dialog = new NewWizardDialog(shell, wizard);
if(dialog.open() == IDialogConstants.OK_ID) {
return maybeLaunchScanFromWizard(shell, wizard, scanner, scan);
} else {
// REVISIT: delete the scan so the ID can be used in the future?
scan.stopScan(); // stop to unlock workspace
}
return null;
}
private String maybeLaunchScanFromWizard(Shell shell, NewScanWizard wizard, IScanner scanner, IScan scan) {