コード例 #1
0
 private void resolve(ProjectDependency projectDependency, Dependency d) {
   if (d != null) {
     IdentificationJob job = identificationJobs.get(projectDependency);
     job.setDependency(d);
     job.setRequestedProcess(Task.RESOLUTION_ONLY);
     job.schedule();
   }
 }
コード例 #2
0
  protected void runIdentificationJobs(IProgressMonitor monitor) {

    initJobs();
    if (monitor == null) {
      monitor = new NullProgressMonitor();
    }
    for (Map.Entry<ProjectDependency, Dependency> entry : dependencyMap.entrySet()) {
      if (entry.getValue() != null) {
        // don't need to run identification
        // continue;
      }
      IdentificationJob job = identificationJobs.get(entry.getKey());
      if (job != null) {
        job.setProgressGroup(monitor, 1);
        int jobState = job.getState();
        if (jobState == Job.NONE) {
          job.setRequestedProcess(Task.ALL);
          job.schedule();
        }
      }
    }
    refresh();
  }