Skip to content

Set proper default for monitor-specific scaling preference#4005

Merged
HeikoKlare merged 2 commits into
eclipse-platform:masterfrom
HeikoKlare:monitor-specific-scaling-restore-default
May 30, 2026
Merged

Set proper default for monitor-specific scaling preference#4005
HeikoKlare merged 2 commits into
eclipse-platform:masterfrom
HeikoKlare:monitor-specific-scaling-restore-default

Conversation

@HeikoKlare

Copy link
Copy Markdown
Contributor

When restoring the default values for the "Appearance" preference page, the Windows-specific preference for enabling/disabling monitor-specific scaling is not updated. The default value for this preference is currently defined at every place accessing the preference redundantly.

With this change, a proper default value in the default preference scope is defined for the monitor-specific scaling preference. This value is used by all consumers of the preference via a ScopedPreferenceStore. The defaults restoration of the "Appearance" preference page is extended with a restore of the monitor-specific scaling preference.

How to test

Open the "Apperance" page of the preference dialog and press "Restore Defaults". Without this change, the "Use monitor-specific UI scaling" option will not change. With this change, the default value (enabled) will be applied.

image

@github-actions

github-actions Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

Test Results

   864 files  ±0     864 suites  ±0   52m 44s ⏱️ - 1m 34s
 7 988 tests ±0   7 745 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 418 runs  ±0  19 763 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit 039b68e. ± Comparison against base commit 8cb6e80.

♻️ This comment has been updated with latest results.

@HeikoKlare
HeikoKlare marked this pull request as ready for review May 15, 2026 12:15

@fedejeanne fedejeanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected.

Hint for testing

When testing this across restarts and using a launch configuration (i.e. when launching it from the IDE), make sure that you do not clear the configuration area before launching, otherwise the value is always reset to true (selected) upon restarts:

Image

When restoring the default values for the "Appearance" preference page,
the Windows-specific preference for enabling/disabling monitor-specific
scaling is not updated. The default value for this preference is
currently defined at every place accessing the preference redundantly.

With this change, a proper default value in the default preference scope
is defined for the monitor-specific scaling preference. This value is
used by all consumers of the preference via a ScopedPreferenceStore. The
defaults restoration of the "Appearance" preference page is extended
with a restore of the monitor-specific scaling preference.
@HeikoKlare
HeikoKlare force-pushed the monitor-specific-scaling-restore-default branch from fdfa795 to ce8bd9e Compare May 30, 2026 10:11
@eclipse-platform-bot

Copy link
Copy Markdown
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

bundles/org.eclipse.ui/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From db2326f890b8c010bf202e21844099945156a49e Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Sat, 30 May 2026 10:16:45 +0000
Subject: [PATCH] Version bump(s) for 4.41 stream


diff --git a/bundles/org.eclipse.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.ui/META-INF/MANIFEST.MF
index 58e479e7a4..585f6c1d78 100644
--- a/bundles/org.eclipse.ui/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %Plugin.name
 Bundle-SymbolicName: org.eclipse.ui; singleton:=true
-Bundle-Version: 3.209.0.qualifier
+Bundle-Version: 3.209.100.qualifier
 Bundle-Activator: org.eclipse.ui.internal.UIPlugin
 Bundle-ActivationPolicy: lazy
 Bundle-Vendor: %Plugin.providerName
-- 
2.54.0

Further information are available in Common Build Issues - Missing version increments.

@HeikoKlare
HeikoKlare merged commit ad80376 into eclipse-platform:master May 30, 2026
18 checks passed
@HeikoKlare
HeikoKlare deleted the monitor-specific-scaling-restore-default branch May 30, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants