diff --git a/bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay/FindReplaceOverlay.java b/bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay/FindReplaceOverlay.java index 16a035a3a40..a669f3f1d3c 100644 --- a/bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay/FindReplaceOverlay.java +++ b/bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay/FindReplaceOverlay.java @@ -221,12 +221,12 @@ private void toggleToolItem(ToolItem toolItem) { private ControlListener shellMovementListener = new ControlListener() { @Override public void controlMoved(ControlEvent e) { - positionToPart(); + getShell().getDisplay().asyncExec(() -> positionToPart()); } @Override public void controlResized(ControlEvent e) { - positionToPart(); + getShell().getDisplay().asyncExec(() -> positionToPart()); } };