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
*
     * @param resources the selected resources
     * @return <code>true</code> if the resources contain linked   
     *  resources, and <code>false</code> otherwise
     */
    private boolean containsLinkedResource(IResource[] resources) {
        for (int i = 0; i < resources.length; i++) {
            IResource resource = resources[i];
            if (resource.isLinked())
                return true;
        }
        return false;
    }
    /**
     * Returns whether the selection contains only non-projects.
     *
     * @param resources the selected resources
     * @return <code>true</code> if the resources contains only non-projects, and 
     *  <code>false</code> otherwise
     */
    private boolean containsOnlyNonProjects(IResource[] resources) {
        int types = getSelectedResourceTypes(resources);
        
        if (types == 0)
            return false;
        
        return (types & IResource.PROJECT) == 0;
    }
    /**
     * Returns whether the selection contains only projects.