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
"DeleteResourceAction.deleteContents1", new Object[] { project.getLocation().toOSString() }); 
            } else {
                text1 = IDEWorkbenchMessages
                        .getString("DeleteResourceAction.deleteContentsN"); 
            }
            radio1.setText(text1);
            radio1.setFont(parent.getFont());
            radio2 = new Button(composite, SWT.RADIO);
            radio2.addSelectionListener(selectionListener);
            String text2 = IDEWorkbenchMessages
                    .getString("DeleteResourceAction.doNotDeleteContents"); 
            radio2.setText(text2);
            radio2.setFont(parent.getFont());
            
            radio1.setSelection(deleteContent);
            radio2.setSelection(!deleteContent);
            return composite;
        }
        private SelectionListener selectionListener = new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                Button button = (Button) e.widget;
                if (button.getSelection()) {
                    deleteContent = (button == radio1);
                }
            }
        };
        public boolean getDeleteContent() {
            return deleteContent;
        }
    }