Skip to content

Commit a7caedc

Browse files
committed
Refresh the tree only if it is not busy.
Although the tree may become busy after the check and before refresh, the check avoids the "Ignored reentrant call exception" in practice. Fixed #64.
1 parent c6e8498 commit a7caedc

File tree

1 file changed

+3
-1
lines changed
  • plugins/checker.framework.errorcentric.view/src/checker/framework/errorcentric/view/views

1 file changed

+3
-1
lines changed

plugins/checker.framework.errorcentric.view/src/checker/framework/errorcentric/view/views/ErrorCentricView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ public void setFocus() {
330330
public void update(final TreeObject node) {
331331
Display.getDefault().syncExec(new Runnable() {
332332
public void run() {
333-
viewer.refresh();
333+
if (!viewer.isBusy()) {
334+
viewer.refresh();
335+
}
334336
}
335337
});
336338
}

0 commit comments

Comments
 (0)