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 b51ccce commit c34de30
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ protected void addAnchoreds(
targets.iterator().next().getRoot().addChildren(anchoreds);
for (IVisualPart<? extends Node> anchored : anchoreds) {
for (IVisualPart<? extends Node> anchorage : targets) {
// XXX: When adding feedback and handles, the anchorage
// should not need to refresh its visuals
anchorage.setRefreshVisual(false);
anchored.attachToAnchorage(anchorage);
anchorage.setRefreshVisual(true);
}
}
}
Expand Down Expand Up @@ -116,7 +120,11 @@ protected void addAnchoreds(
insertionIndex);
for (IVisualPart<? extends Node> anchored : anchoreds) {
for (IVisualPart<? extends Node> anchorage : targets) {
// XXX: When adding feedback and handles, the anchorage
// should not need to refresh its visuals
anchorage.setRefreshVisual(false);
anchored.attachToAnchorage(anchorage);
anchorage.setRefreshVisual(true);
}
}
}
Expand Down Expand Up @@ -561,7 +569,11 @@ protected void removeAnchoreds(
if (anchoreds != null && !anchoreds.isEmpty()) {
for (IVisualPart<? extends Node> anchored : anchoreds) {
for (IVisualPart<? extends Node> anchorage : targets) {
// XXX: When removing feedback and handles, the anchorage
// should not need to refresh its visuals
anchorage.setRefreshVisual(false);
anchored.detachFromAnchorage(anchorage);
anchorage.setRefreshVisual(true);
}
}
anchoreds.iterator().next().getRoot().removeChildren(anchoreds);
Expand Down

0 comments on commit c34de30

Please sign in to comment.