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
*  if the deletion should be abandoned
     */
    private boolean confirmDeleteNonProjects(IResource[] resources) {
        String title;
        String msg;
        if (resources.length == 1) {
            title = IDEWorkbenchMessages
                    .getString("DeleteResourceAction.title1"); 
            IResource resource = resources[0];
            if (resource.isLinked())
                msg = IDEWorkbenchMessages
                        .format(
                                "DeleteResourceAction.confirmLinkedResource1", new Object[] { resource.getName() }); 
            else
                msg = IDEWorkbenchMessages
                        .format(
                                "DeleteResourceAction.confirm1", new Object[] { resource.getName() }); 
        } else {
            title = IDEWorkbenchMessages
                    .getString("DeleteResourceAction.titleN"); 
            if (containsLinkedResource(resources))
                msg = IDEWorkbenchMessages
                        .format(
                                "DeleteResourceAction.confirmLinkedResourceN", new Object[] { new Integer(resources.length) }); 
            else
                msg = IDEWorkbenchMessages
                        .format(
                                "DeleteResourceAction.confirmN", new Object[] { new Integer(resources.length) }); 
        }
        return MessageDialog.openQuestion(shell, title, msg);