Skip to content

Conversation

@ptziegler
Copy link
Contributor

This replaces the reflective access to the JDT UI preference store with a call to PreferenceConstants.getPreferenceStore().

In addition, the PreferenceAdapter is marked as deprecated, to resolve the warnings produced by referencing the deprecated Eclipse Preferences. The class sadly can't be removed, because JDT Core doesn't have a public accessor for its preference store and because this deprecated class is required for the JavaTextTools.

This replaces the reflective access to the JDT UI preference store with
a call to `PreferenceConstants.getPreferenceStore()`.

In addition, the PreferenceAdapter is marked as deprecated, to resolve
the warnings produced by referencing the deprecated Eclipse Preferences.
The class sadly can't be removed, because JDT Core doesn't have a public
accessor for its preference store and because this deprecated class is
required for the JavaTextTools.
@ptziegler ptziegler added this to the 1.21.0 milestone Jul 28, 2025
@ptziegler ptziegler merged commit bc38b83 into eclipse-windowbuilder:master Jul 29, 2025
8 checks passed
@ptziegler ptziegler deleted the jdt-pref-handling branch July 29, 2025 10:20
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.

1 participant