Skip to content

Commit

Permalink
Cancel jobs on editor close. Solves #3289.
Browse files Browse the repository at this point in the history
  • Loading branch information
olas committed Sep 10, 2012
1 parent 0b84ac1 commit 3fca849
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -1224,6 +1224,14 @@ public void partClosed(IWorkbenchPartReference partRef) {
if (molTestMap.keySet().contains( mol )){
molTestMap.remove( mol );
}

//Cancel all running tests
for (BioclipseJob<List<ITestResult>> job : runningJobs){
//Ask job to cancel
job.cancel();
logger.debug("Job: " + job.getName() + " asked to cancel.");
}

}

//If no more editor, clear all in view
Expand Down

0 comments on commit 3fca849

Please sign in to comment.