@@ -73,40 +73,27 @@ public class PreferenceConverter {
73
73
private static final String ENTRY_SEPARATOR = ";" ; //$NON-NLS-1$
74
74
75
75
/**
76
- * The default-default value for <code>FontData[]</code> preferences.
77
- * Read-only.
76
+ * The default-default value for <code>FontData</code> preferences. Read-only.
77
+ * The value is hard coded to the object created via
78
+ * {@link FontData#FontData()}.
78
79
*
79
- * @deprecated this is not thread-safe and may contain invalid data at
80
- * startup. Call {@link #getFontDataArrayDefaultDefault()} from
81
- * the UI thread instead.
80
+ * @deprecated Call {@link #getFontDataArrayDefaultDefault()}} from the UI
81
+ * thread instead.
82
82
*/
83
- @ Deprecated
84
- public static FontData [] FONTDATA_ARRAY_DEFAULT_DEFAULT ;
83
+ @ Deprecated ( forRemoval = true , since = "2025-06" )
84
+ public static FontData FONTDATA_DEFAULT_DEFAULT = new FontData () ;
85
85
86
86
/**
87
- * The default-default value for <code>FontData</code> preferences.
88
- * Read-only.
87
+ * Contains single {@link #FONTDATA_DEFAULT_DEFAULT} element.
89
88
*
90
- * @deprecated this is not thread-safe and may contain invalid data at
91
- * startup. Call {@link #getFontDataArrayDefaultDefault()}} from
92
- * the UI thread instead.
89
+ * @deprecated Call {@link #getFontDataArrayDefaultDefault()} from the UI thread
90
+ * instead.
93
91
*/
94
- @ Deprecated
95
- public static FontData FONTDATA_DEFAULT_DEFAULT ;
92
+ @ Deprecated ( forRemoval = true , since = "2025-06" )
93
+ public static FontData [] FONTDATA_ARRAY_DEFAULT_DEFAULT = new FontData [] { FONTDATA_DEFAULT_DEFAULT } ;
96
94
97
95
private static FontData [] fontDataArrayDefaultDefault ;
98
96
99
- static {
100
- Display display = Display .getDefault ();
101
- display .asyncExec (() -> {
102
- // Ensure that the deprecated FONTDATA_DEFAULT_DEFAULT and
103
- // FONTDATA_ARRAY_DEFAULT values
104
- // are initialized as soon as possible
105
- FONTDATA_ARRAY_DEFAULT_DEFAULT = getFontDataArrayDefaultDefault ();
106
- FONTDATA_DEFAULT_DEFAULT = getFontDataArrayDefaultDefault ()[0 ];
107
- });
108
- }
109
-
110
97
/**
111
98
* private constructor to prevent instantiation.
112
99
*/
0 commit comments