Algorithm algorithm = (Algorithm) j.next();
SchedulerTableItem schedulerTableItem = (SchedulerTableItem) algorithmToGuiItemMap
.get(algorithm);
if (tableItems[i].equals(schedulerTableItem.getTableItem())) {
if (algorithmIsProgressTrackable(algorithm)) {
ProgressMonitor monitor = ((ProgressTrackable) algorithm)
.getProgressMonitor();
monitor.setCanceled(true);
}
schedulerTableItem.remove();
algorithmToGuiItemMap.remove(algorithm);
break;
}