Bug 68608 [Dialogs] Resource deletion could be run in the background
If I delete a resource in Eclipse and the deletion is blocked by another job, I get a blocked dialog. I then have to wait until the blocking job finishes. It would be nice if I could have the deletion run in the background and occur when it can. In essence, this is what happens in window except that windows uses a non-modal dialog instead of a "Run in Background" button.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java
SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK));
            } catch (CoreException e) {
                exceptions.add(e);
            }
        }
        
        final int exceptionCount = exceptions.size();
        if (exceptionCount == 1) {
            throw (CoreException) exceptions.get(0);
        } else if (exceptionCount > 1) {
            final MultiStatus multi = new MultiStatus(
                    IDEWorkbenchPlugin.IDE_WORKBENCH,
                    0,
                    IDEWorkbenchMessages
                            .getString("DeleteResourceAction.deletionExceptionMessage"), new Exception()); 
            for (int i = 0; i < exceptionCount; i++) {
                CoreException exception = (CoreException) exceptions.get(0);
                IStatus status = exception.getStatus();
                multi.add(new Status(status.getSeverity(), status.getPlugin(),
                        status.getCode(), status.getMessage(), exception));
            }
            throw new CoreException(multi);
        }
        
        monitor.done();
    }
    /**
     * Deletes the given resource.
     */
    private void delete(IResource resourceToDelete, IProgressMonitor monitor)