Skip to content

Commit

Permalink
StructureDiffViewer.diff: fix Progress #1144
Browse files Browse the repository at this point in the history
was IllegalStateException toggling whitespace on/off in diff editor

eclipse-platform/eclipse.platform.ui#1144
  • Loading branch information
EcljpseB0T authored and iloveeclipse committed Sep 22, 2023
1 parent 1369cae commit efe0dce
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,11 @@ protected void diff() {
// A null compare configuration indicates that the viewer was disposed
if (compareConfiguration != null) {
compareConfiguration.getContainer().run(true, true, monitor -> {
monitor.beginTask(CompareMessages.StructureDiffViewer_2, 100);
diffTask.run(SubMonitor.convert(monitor, 100));
monitor.done();
try {
diffTask.run(SubMonitor.convert(monitor, CompareMessages.StructureDiffViewer_2, 100));
} finally {
monitor.done();
}
});
}
} catch (InvocationTargetException e) {
Expand Down

0 comments on commit efe0dce

Please sign in to comment.