Examples of IScan


Examples of com.subgraph.vega.api.scanner.IScan

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) {
      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;
  }
View Full Code Here

Examples of com.subgraph.vega.api.scanner.IScan

  public Object execute(ExecutionEvent event) throws ExecutionException {
    final ScanAlertView scanAlertView = getScanAlertView(event);
    if(scanAlertView == null) {
      return null;
    }
    final IScan scan = scanAlertView.getSelection();
    if(scan != null) {
      runCommand(event, scan);
    }
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.