Skip to content

Commit b7bd3c0

Browse files
committed
Add calls to progress monitor done.
1 parent a3e70e5 commit b7bd3c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

edu.cuny.hunter.streamrefactoring.eval/src/edu/cuny/hunter/streamrefactoring/eval/handlers/EvaluateConvertToParallelStreamRefactoringHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.eclipse.core.runtime.IStatus;
3636
import org.eclipse.core.runtime.NullProgressMonitor;
3737
import org.eclipse.core.runtime.Status;
38+
import org.eclipse.core.runtime.SubMonitor;
3839
import org.eclipse.core.runtime.SubProgressMonitor;
3940
import org.eclipse.core.runtime.jobs.Job;
4041
import org.eclipse.jdt.core.ICompilationUnit;
@@ -624,9 +625,11 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
624625
if (processor != null)
625626
processor.clearCaches();
626627
} catch (IOException e) {
628+
SubMonitor.done(monitor);
627629
return new Status(IStatus.ERROR, FrameworkUtil.getBundle(this.getClass()).getSymbolicName(),
628630
"Encountered exception during file closing", e);
629631
}
632+
SubMonitor.done(monitor);
630633
}
631634

632635
return new Status(IStatus.OK, FrameworkUtil.getBundle(this.getClass()).getSymbolicName(),

0 commit comments

Comments
 (0)