import com.subgraph.vega.ui.scanner.wizards.NewWizardDialog;
public class ScanExecutor {
public String runScan(Shell shell, String target) {
final IScanner scanner = Activator.getDefault().getScanner();
final IScan scan = scanner.createScan();
final Collection<IIdentity> identities = Activator.getDefault().getModel().getCurrentWorkspace().getIdentityModel().getAllIdentities();
NewScanWizard wizard = new NewScanWizard(target, identities, scan.getModuleList(), scan.getConfig().getDefaultExcludedParameterNames());
WizardDialog dialog = new NewWizardDialog(shell, wizard);
if(dialog.open() == IDialogConstants.OK_ID) {