From 95810c8fcaa3a0c58236f2ce10bd97014e189acd Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Thu, 16 Jan 2025 08:48:53 +0100 Subject: [PATCH] Revert "Activate monitor-specific scaling before Display instantiation" This partially reverts commit 3587081342bd7e3980412a9bca360d5588112e64. It introduced a regression as preferences cannot be read that early during startup. Moving that preference evaluation call is reverted. Fixes https://github.com/eclipse-platform/eclipse.platform.ui/issues/2712 --- .../eclipseui/org/eclipse/ui/internal/Workbench.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/Workbench.java b/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/Workbench.java index 21961d1d76e..448f1714631 100644 --- a/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/Workbench.java +++ b/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/Workbench.java @@ -588,6 +588,7 @@ public static int createAndRunWorkbench(final Display display, final WorkbenchAd int orientation = store.getInt(IPreferenceConstants.LAYOUT_DIRECTION); Window.setDefaultOrientation(orientation); } + setRescaleAtRuntimePropertyFromPreference(); if (obj instanceof E4Application) { E4Application e4app = (E4Application) obj; E4Workbench e4Workbench = e4app.createE4Workbench(getApplicationContext(), display); @@ -757,8 +758,6 @@ public static Display createDisplay() { Display.setAppName(applicationName); } - setRescaleAtRuntimePropertyFromPreference(); - // create the display Display newDisplay = Display.getCurrent(); if (newDisplay == null) {