diff --git a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Plugin.java b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Plugin.java index 328d34baacc..bfd2233ab90 100644 --- a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Plugin.java +++ b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Plugin.java @@ -180,7 +180,7 @@ public abstract class Plugin implements BundleActivator { * @since 2.0 * @deprecated */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") private Preferences preferences = null; /** @@ -213,7 +213,7 @@ public Plugin() { * @return a URL for the given path or null * @deprecated use {@link FileLocator#find(Bundle, IPath, Map)} */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public final URL find(IPath path) { return FileLocator.find(getBundle(), path, null); } @@ -232,7 +232,7 @@ public final URL find(IPath path) { * @return a URL for the given path or null * @deprecated use {@link FileLocator#find(Bundle, IPath, Map)} */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public final URL find(IPath path, Map override) { return FileLocator.find(getBundle(), path, override); } @@ -317,7 +317,7 @@ public final IPath getStateLocation() throws IllegalStateException { * obtaining other kinds of preference values (strings, booleans, * etc). */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public final Preferences getPluginPreferences() { final Bundle bundleCopy = getBundle(); if (preferences != null) { @@ -353,7 +353,7 @@ public final Preferences getPluginPreferences() { * @since 2.0 * @deprecated Replaced by InstanceScope.getNode(<bundleId>).flush() */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public final void savePluginPreferences() { if (InternalPlatform.getDefault().isRunning()) { Location instance = InternalPlatform.getDefault().getInstanceLocation(); @@ -424,7 +424,7 @@ public final void savePluginPreferences() { * } * */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") protected void initializeDefaultPluginPreferences() { // default implementation of this method - spec'd to do nothing } @@ -437,7 +437,7 @@ protected void initializeDefaultPluginPreferences() { * @since 3.0 * @deprecated */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public final void internalInitializeDefaultPluginPreferences() { initializeDefaultPluginPreferences(); } @@ -479,7 +479,7 @@ public boolean isDebugging() { * @see #openStream(IPath,boolean) * @deprecated use {@link FileLocator#openStream(Bundle, IPath, boolean)} */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public final InputStream openStream(IPath file) throws IOException { return FileLocator.openStream(getBundle(), file, false); } @@ -502,7 +502,7 @@ public final InputStream openStream(IPath file) throws IOException { * @exception IOException if the given path cannot be found in this plug-in * @deprecated use {@link FileLocator#openStream(Bundle, IPath, boolean)} */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public final InputStream openStream(IPath file, boolean substituteArgs) throws IOException { return FileLocator.openStream(getBundle(), file, substituteArgs); } @@ -576,7 +576,7 @@ private DebugOptions getDebugOptions() { * * @deprecated */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public void shutdown() throws CoreException { // intentionally left empty } @@ -600,7 +600,7 @@ public void shutdown() throws CoreException { * * @deprecated */ - @Deprecated + @Deprecated(forRemoval = true, since = "2024-12") public void startup() throws CoreException { // intentionally left empty }