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
static class DeleteProjectDialog extends MessageDialog {
        private IResource[] projects;
        private boolean deleteContent = false;
        private Button radio1;
        private Button radio2;
        DeleteProjectDialog(Shell parentShell, IResource[] projects) {
            super(parentShell, getTitle(projects), null, 
                    getMessage(projects), MessageDialog.QUESTION, new String[] {
                            IDialogConstants.YES_LABEL,
                            IDialogConstants.NO_LABEL }, 0); 
            this.projects = projects;
        }
        static String getTitle(IResource[] projects) {
            if (projects.length == 1)
                return IDEWorkbenchMessages
                        .getString("DeleteResourceAction.titleProject1"); 
            else
                return IDEWorkbenchMessages
                        .getString("DeleteResourceAction.titleProjectN"); 
        }
        static String getMessage(IResource[] projects) {
            if (projects.length == 1) {
                IProject project = (IProject) projects[0];
                return IDEWorkbenchMessages