Skip to content

Commit

Permalink
[566621] Disable visual refresh of anchorages while attaching feedbac…
Browse files Browse the repository at this point in the history
…k and handle parts.
  • Loading branch information
nyssen committed Sep 2, 2020
1 parent c34de30 commit 60e42f7
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ protected void addAnchoreds(
for (IVisualPart<? extends Node> anchorage : targets) {
// XXX: When adding feedback and handles, the anchorage
// should not need to refresh its visuals
boolean refreshVisual = anchorage.isRefreshVisual();
anchorage.setRefreshVisual(false);
anchored.attachToAnchorage(anchorage);
anchorage.setRefreshVisual(true);
anchorage.setRefreshVisual(refreshVisual);
}
}
}
Expand Down Expand Up @@ -122,9 +123,10 @@ protected void addAnchoreds(
for (IVisualPart<? extends Node> anchorage : targets) {
// XXX: When adding feedback and handles, the anchorage
// should not need to refresh its visuals
boolean refreshVisual = anchorage.isRefreshVisual();
anchorage.setRefreshVisual(false);
anchored.attachToAnchorage(anchorage);
anchorage.setRefreshVisual(true);
anchorage.setRefreshVisual(refreshVisual);
}
}
}
Expand Down Expand Up @@ -571,9 +573,10 @@ protected void removeAnchoreds(
for (IVisualPart<? extends Node> anchorage : targets) {
// XXX: When removing feedback and handles, the anchorage
// should not need to refresh its visuals
boolean refreshVisual = anchorage.isRefreshVisual();
anchorage.setRefreshVisual(false);
anchored.detachFromAnchorage(anchorage);
anchorage.setRefreshVisual(true);
anchorage.setRefreshVisual(refreshVisual);
}
}
anchoreds.iterator().next().getRoot().removeChildren(anchoreds);
Expand Down

0 comments on commit 60e42f7

Please sign in to comment.