Skip to content

Commit

Permalink
Mark deprecated and unsupported constants for deletion in
Browse files Browse the repository at this point in the history
IWorkbenchPreferenceConstants

Also remove initialization of unsupported preference values
  • Loading branch information
vogella authored and mai-tran-03 committed Dec 10, 2024
1 parent d652e36 commit 3b7d187
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public interface IWorkbenchPreferenceConstants {
* perspective. Callers should use IWorkbench.showPerspective
* methods.
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
String ALTERNATE_OPEN_NEW_PERSPECTIVE = "ALTERNATE_OPEN_NEW_PERSPECTIVE"; //$NON-NLS-1$

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

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

/**
Expand Down Expand Up @@ -161,7 +161,7 @@ public interface IWorkbenchPreferenceConstants {
* @deprecated not used anymore by platform
* @since 3.0
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
String DOCK_PERSPECTIVE_BAR = "DOCK_PERSPECTIVE_BAR"; //$NON-NLS-1$

/**
Expand Down Expand Up @@ -375,7 +375,7 @@ public interface IWorkbenchPreferenceConstants {
*
* @deprecated not supported by the platform anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
String ENABLE_ANIMATIONS = "ENABLE_ANIMATIONS"; //$NON-NLS-1$

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ public void initializeDefaultPreferences() {
// Deprecated but kept for backwards compatibility
node.put(IWorkbenchPreferenceConstants.PROJECT_OPEN_NEW_PERSPECTIVE,
IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);
node.put(IWorkbenchPreferenceConstants.SHIFT_OPEN_NEW_PERSPECTIVE,
IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);
node.put(IWorkbenchPreferenceConstants.ALTERNATE_OPEN_NEW_PERSPECTIVE,
IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);

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

0 comments on commit 3b7d187

Please sign in to comment.