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
}
        return types;
    }
    /* (non-Javadoc)
     * Method declared on IAction.
     */
    public void run() {
        IResource[] resources = getSelectedResourcesArray();
        
         
        
        
        if (!confirmDelete(resources))
            return;
        final IResource[] resourcesToDelete = getResourcesToDelete(resources);
        if (resourcesToDelete.length == 0)
            return;
        try {
            WorkspaceModifyOperation op = new WorkspaceModifyOperation(getDeleteRule(resourcesToDelete)) {
                protected void execute(IProgressMonitor monitor)
                        throws CoreException {
                    delete(resourcesToDelete, monitor);
                }
            };
            new ProgressMonitorJobsDialog(shell).run(true, true, op);
        } catch (InvocationTargetException e) {
            Throwable t = e.getTargetException();
            if (t instanceof CoreException) {
                CoreException exception = (CoreException) t;
                IStatus status = exception.getStatus();