Skip to content

Commit

Permalink
delete WorkbenchCommandSupport "API is scheduled for deletion"
Browse files Browse the repository at this point in the history
fix "overriding a synchronized method without being synchronized"
and several deprecation warnings
  • Loading branch information
EcljpseB0T authored and jukzi committed Jan 29, 2024
1 parent 73c06a7 commit 76ed151
Show file tree
Hide file tree
Showing 53 changed files with 7 additions and 5,879 deletions.
2 changes: 1 addition & 1 deletion bundles/org.eclipse.core.commands/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.core.commands
Bundle-Version: 3.11.300.qualifier
Bundle-Version: 3.12.0.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.core.commands,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ public abstract class CommandException extends Exception {
*/
private static final long serialVersionUID = 5389763628699257234L;

/**
* This member variable is required here to allow us to compile against JCL
* foundation libraries. The value may be <code>null</code>.
*/
private Throwable cause;

/**
* Creates a new instance of this class with the specified detail message.
*
Expand All @@ -57,20 +51,7 @@ public CommandException(final String message) {
* the cause; may be <code>null</code>.
*/
public CommandException(final String message, final Throwable cause) {
super(message);
// don't pass the cause to super, to allow compilation against JCL Foundation
this.cause = cause;
}

/**
* Returns the cause of this throwable or <code>null</code> if the
* cause is nonexistent or unknown.
*
* @return the cause or <code>null</code>
*/
@Override
public Throwable getCause() {
return cause;
super(message, cause);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
*/
public class DeviceResourceException extends RuntimeException {

private Throwable cause;

/**
* All serializable objects should have a stable serialVersionUID
*/
Expand All @@ -36,9 +34,7 @@ public class DeviceResourceException extends RuntimeException {
* @param cause cause of the exception (or null if none)
*/
public DeviceResourceException(DeviceResourceDescriptor<?> missingResource, Throwable cause) {
super("Unable to create resource " + missingResource); //$NON-NLS-1$
// don't pass the cause to super, to allow compilation against JCL Foundation (bug 80059)
this.cause = cause;
super("Unable to create resource " + missingResource, cause); //$NON-NLS-1$
}

/**
Expand All @@ -51,16 +47,4 @@ public DeviceResourceException(DeviceResourceDescriptor<?> missingResource) {
this(missingResource, null);
}

/**
* Returns the cause of this throwable or <code>null</code> if the
* cause is nonexistent or unknown.
*
* @return the cause or <code>null</code>
* @since 3.1
*/
@Override
public Throwable getCause() {
return cause;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.eclipse.ui.activities.IWorkbenchActivitySupport;
import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
import org.eclipse.ui.commands.ICommandService;
import org.eclipse.ui.commands.IWorkbenchCommandSupport;
import org.eclipse.ui.contexts.IContextService;
import org.eclipse.ui.contexts.IWorkbenchContextSupport;
import org.eclipse.ui.handlers.IHandlerService;
Expand Down Expand Up @@ -473,21 +472,6 @@ IWorkbenchPage showPerspective(String perspectiveId, IWorkbenchWindow window, IA
*/
IWorkbenchActivitySupport getActivitySupport();

/**
* Returns an interface to manage commands at the workbench level.
*
* @return an interface to manage commands at the workbench level. Guaranteed
* not to be <code>null</code>.
* @since 3.0
* @deprecated Please use {@link IServiceLocator#getService(Class)} instead.
* This API is scheduled for deletion, see Bug 431177 for details
* @see ICommandService
* @see IHandlerService
* @noreference IWorkbenchCommandSupport is scheduled for deletion.
*/
@Deprecated
IWorkbenchCommandSupport getCommandSupport();

/**
* Returns an interface to manage contexts at the workbench level.
*
Expand Down

This file was deleted.

Loading

0 comments on commit 76ed151

Please sign in to comment.