Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark deprecated methods in Plugin for deletion #1606

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -213,7 +213,7 @@ public Plugin() {
* @return a URL for the given path or <code>null</code>
* @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);
}
Expand All @@ -232,7 +232,7 @@ public final URL find(IPath path) {
* @return a URL for the given path or <code>null</code>
* @deprecated use {@link FileLocator#find(Bundle, IPath, Map)}
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final URL find(IPath path, Map<String,String> override) {
return FileLocator.find(getBundle(), path, override);
}
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -353,7 +353,7 @@ public final Preferences getPluginPreferences() {
* @since 2.0
* @deprecated Replaced by InstanceScope.getNode(&lt;bundleId&gt;).flush()
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final void savePluginPreferences() {
if (InternalPlatform.getDefault().isRunning()) {
Location instance = InternalPlatform.getDefault().getInstanceLocation();
Expand Down Expand Up @@ -424,7 +424,7 @@ public final void savePluginPreferences() {
* }
* </pre>
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
protected void initializeDefaultPluginPreferences() {
// default implementation of this method - spec'd to do nothing
}
Expand All @@ -437,7 +437,7 @@ protected void initializeDefaultPluginPreferences() {
* @since 3.0
* @deprecated
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final void internalInitializeDefaultPluginPreferences() {
initializeDefaultPluginPreferences();
}
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down Expand Up @@ -576,7 +576,7 @@ private DebugOptions getDebugOptions() {
*
* @deprecated
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public void shutdown() throws CoreException {
// intentionally left empty
}
Expand All @@ -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
}
Expand Down
Loading