Examples of ITargetScope


Examples of com.subgraph.vega.api.model.scope.ITargetScope

    return null;
  }
 
  private String maybeLaunchScanFromWizard(Shell shell, NewScanWizard wizard, IScanner scanner, IScan scan) {

    final ITargetScope scanTargetScope = wizard.getScanTargetScope();
    if(scanTargetScope == null) {
      return null;
    }

    final IScannerConfig config = scan.getConfig();
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

    this.scan = scan;
  }

  @Override
  public void run() {
    final ITargetScope scanScope = scan.getConfig().getScanTargetScope();
    for(URI uri: scanScope.getScopeURIs()) {
      if(cancelScan) {
        scan.stopScan();
        return;
      }
      processTargetURI(uri);
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

    targetScopeManager.removeScope(getScopeFromCombo());
    refreshScopeCombo();
  }
 
  private void handleAdd() {
    final ITargetScope newScope = targetScopeManager.createNewScope();
    targetScopeManager.saveScope(newScope);
    targetScopeManager.setActiveScope(newScope);
    refreshScopeCombo();
    setEditable();
  }
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

  abstract protected void handleSelectedURI(ITargetScope scope, URI uri);
  abstract protected boolean isEnabledForURIs(ITargetScope scope, List<URI> uris);
 
  @Override
  public void run() {
    final ITargetScope scope = getCurrentActiveScope();
    if(scope == null) {
      return;
    }
    final IStructuredSelection ss = (IStructuredSelection) viewer.getSelection();
    for(Object ob: ss.toList()) {
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

      }
    }
  }
 
  public boolean isEnabledForSelection() {
    final ITargetScope scope = getCurrentActiveScope();
    if(scope == null) {
      return false;
    }
   
    final IStructuredSelection ss = (IStructuredSelection) viewer.getSelection();
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

    this.model = model;
  }
 
  @Override
  public boolean select(Viewer viewer, Object parentElement, Object element) {
    final ITargetScope activeScope = getActiveScope();
    if(activeScope == null) {
      return true;
    } else if(element instanceof IWebEntity) {
      return isFiltered(activeScope, ((IWebEntity)element));
    } else {
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

    if(currentWorkspace != null) {
      currentWorkspace.getTargetScopeManager().removeActiveScopeChangeListener(scopeChangeListener);
    }
    currentWorkspace = workspace;
    if(workspace != null) {
      final ITargetScope activeScope = workspace.getTargetScopeManager().addActiveScopeChangeListener(scopeChangeListener);
      changeActiveScope(activeScope);
    }
  }
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

    }
  }
 
  public void setFilterByScopeEnabled(boolean value) {
    filterEnabled = value;
    final ITargetScope activeScope = currentWorkspace.getTargetScopeManager().getActiveScope();
    changeActiveScope(activeScope);
  }
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

    return createNewScope("New Scope");
  }
 
  @Override
  public ITargetScope createDuplicatedScope(ITargetScope scope) {
    final ITargetScope newScope = createNewScope(scope.getName());
    for(URI u: scope.getScopeURIs()) {
      newScope.addScopeURI(u);
    }
    for(URI u: scope.getExclusionURIs()) {
      newScope.addExclusionURI(u);
    }
    for(String s: scope.getExclusionPatterns()) {
      newScope.addExclusionPattern(s);
    }
    return newScope;
  }
View Full Code Here

Examples of com.subgraph.vega.api.model.scope.ITargetScope

    return newScope;
  }

  private ITargetScope createNewScope(String name) {
    final long id = scopeId.allocateId();
    final ITargetScope scope = new TargetScope(id, false, scopeChangeListeners);
    scope.setName(name);
    return scope;
  }
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.