Skip to content

Commit 5c65cbc

Browse files
committed
Mark deprecated and unsupported constants for deletion in
IWorkbenchPreferenceConstants Also remove initialization of unsupported preference values
1 parent e69ed28 commit 5c65cbc

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/IWorkbenchPreferenceConstants.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public interface IWorkbenchPreferenceConstants {
7070
* perspective. Callers should use IWorkbench.showPerspective
7171
* methods.
7272
*/
73-
@Deprecated
73+
@Deprecated(forRemoval = true, since = "2025-03")
7474
String ALTERNATE_OPEN_NEW_PERSPECTIVE = "ALTERNATE_OPEN_NEW_PERSPECTIVE"; //$NON-NLS-1$
7575

7676
/**
@@ -86,7 +86,7 @@ public interface IWorkbenchPreferenceConstants {
8686
* perspective. Callers should use IWorkbench.showPerspective
8787
* methods.
8888
*/
89-
@Deprecated
89+
@Deprecated(forRemoval = true, since = "2025-03")
9090
String SHIFT_OPEN_NEW_PERSPECTIVE = "SHIFT_OPEN_NEW_PERSPECTIVE"; //$NON-NLS-1$
9191

9292
/**
@@ -107,7 +107,7 @@ public interface IWorkbenchPreferenceConstants {
107107
* <code>org.eclipse.ui.ide.IDE.Preferences.PROJECT_OPEN_NEW_PERSPECTIVE</code>
108108
* instead.
109109
*/
110-
@Deprecated
110+
@Deprecated(forRemoval = true, since = "2025-03")
111111
String PROJECT_OPEN_NEW_PERSPECTIVE = "PROJECT_OPEN_NEW_PERSPECTIVE"; //$NON-NLS-1$
112112

113113
/**
@@ -161,7 +161,7 @@ public interface IWorkbenchPreferenceConstants {
161161
* @deprecated not used anymore by platform
162162
* @since 3.0
163163
*/
164-
@Deprecated
164+
@Deprecated(forRemoval = true, since = "2025-03")
165165
String DOCK_PERSPECTIVE_BAR = "DOCK_PERSPECTIVE_BAR"; //$NON-NLS-1$
166166

167167
/**
@@ -375,7 +375,7 @@ public interface IWorkbenchPreferenceConstants {
375375
*
376376
* @deprecated not supported by the platform anymore
377377
*/
378-
@Deprecated
378+
@Deprecated(forRemoval = true, since = "2025-03")
379379
String ENABLE_ANIMATIONS = "ENABLE_ANIMATIONS"; //$NON-NLS-1$
380380

381381
/**
@@ -390,7 +390,7 @@ public interface IWorkbenchPreferenceConstants {
390390
* when round or square corners are desired.
391391
* @since 3.120
392392
*/
393-
@Deprecated
393+
@Deprecated(forRemoval = true, since = "2025-03")
394394
String USE_ROUND_TABS = "USE_ROUND_TABS"; //$NON-NLS-1$
395395

396396
/**

bundles/org.eclipse.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ public void initializeDefaultPreferences() {
5555
// Deprecated but kept for backwards compatibility
5656
node.put(IWorkbenchPreferenceConstants.PROJECT_OPEN_NEW_PERSPECTIVE,
5757
IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);
58-
node.put(IWorkbenchPreferenceConstants.SHIFT_OPEN_NEW_PERSPECTIVE,
59-
IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);
60-
node.put(IWorkbenchPreferenceConstants.ALTERNATE_OPEN_NEW_PERSPECTIVE,
61-
IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);
6258

6359
// Although there is no longer any item on the preference pages
6460
// for setting the linking preference, since it is now a per-part

0 commit comments

Comments
 (0)