diff --git a/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/editor/DesignPage.java b/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/editor/DesignPage.java index 3e5a73cbd..1e1b47c1a 100644 --- a/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/editor/DesignPage.java +++ b/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/editor/DesignPage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2025 Google, Inc. and others. + * Copyright (c) 2011, 2026 Google, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at @@ -56,7 +56,6 @@ import org.eclipse.swt.graphics.Image; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Display; import org.eclipse.ui.IPartListener; import org.eclipse.ui.IWorkbenchPart; @@ -452,7 +451,6 @@ boolean internal_refreshGEF() { } private void internal_refreshGEF_withProgress() throws Exception { - final Display display = Display.getCurrent(); IRunnableWithProgress runnable = new IRunnableWithProgress() { @Override @SuppressWarnings("removal") @@ -462,16 +460,7 @@ public void run(final IProgressMonitor monitor) throws InvocationTargetException // try { DesignPageSite.setProgressMonitor(monitor); - display.syncExec(new Runnable() { - @Override - public void run() { - try { - internal_refreshGEF(monitor); - } catch (Throwable e) { - ReflectionUtils.propagate(e); - } - } - }); + internal_refreshGEF(monitor); } catch (Throwable e) { ReflectionUtils.propagate(e); } finally {