From 81ef63f5283a58192b56cc6330e7fb14198e011e Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Mon, 13 Jan 2025 15:58:22 +0100 Subject: [PATCH] Mark long deprecated methods in AbstractUIPlugin for removal These methods are deprecated since a long time and should be marked for removal. This will enable us to delete them after the API deprecation period. --- .../eclipse/ui/plugin/AbstractUIPlugin.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/plugin/AbstractUIPlugin.java b/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/plugin/AbstractUIPlugin.java index 114f08384fc..596df8c162e 100644 --- a/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/plugin/AbstractUIPlugin.java +++ b/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/plugin/AbstractUIPlugin.java @@ -269,7 +269,7 @@ public IPreferenceStore getPreferenceStore() { * * @return IWorkbench the workbench for this plug-in */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") public IWorkbench getWorkbench() { return PlatformUI.getWorkbench(); } @@ -297,7 +297,7 @@ public IWorkbench getWorkbench() { * @deprecated this is only called if the runtime compatibility layer is * present. See {@link #initializeDefaultPluginPreferences}. */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") protected void initializeDefaultPreferences(IPreferenceStore store) { // spec'ed to do nothing } @@ -322,7 +322,7 @@ protected void initializeDefaultPreferences(IPreferenceStore store) { * @see #initializeDefaultPreferences * @since 2.0 */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") @Override protected void initializeDefaultPluginPreferences() { // N.B. by the time this method is called, the plug-in has a @@ -372,7 +372,7 @@ protected void initializeImageRegistry(ImageRegistry reg) { * @deprecated * @see PlatformUI#getDialogSettingsProvider(Bundle) */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") protected void loadDialogSettings() { PlatformUI.getDialogSettingsProvider(getBundle()).loadDialogSettings(); } @@ -393,7 +393,7 @@ protected void loadDialogSettings() { * being initialized. The plug-ins preferences are loaded from the * file regardless of what this method does. */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") protected void loadPreferenceStore() { // do nothing by default } @@ -424,7 +424,7 @@ protected void refreshPluginActions() { * @deprecated * @see IDialogSettingsProvider#saveDialogSettings() */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") protected void saveDialogSettings() { PlatformUI.getDialogSettingsProvider(getBundle()).saveDialogSettings(); } @@ -440,7 +440,7 @@ protected void saveDialogSettings() { * savePluginPreferences, and exists only for backwards * compatibility. */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") protected void savePreferenceStore() { savePluginPreferences(); } @@ -451,7 +451,7 @@ protected void savePreferenceStore() { * * It is not called anymore as Eclipse 4.6 removed this plug-in. */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") @Override public void startup() throws CoreException { // this method no longer does anything @@ -477,7 +477,7 @@ public void startup() throws CoreException { * org.eclipse.core.runtime.compatibility plug-in; in contrast, the * stop method is always called. */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") @Override public void shutdown() throws CoreException { // this method no longer does anything interesting