Bug 123496 [IDE] Use operation validation API for IDE actions
We should use the Resources/Core operation validation API in the IDE actions for manipulating resources.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java
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);
                }
            }
        };
        boolean getDeleteContent() {
            return deleteContent;
        }
		/* (non-Javadoc)
		 * @see org.eclipse.jface.window.Window#open()
		 */
		public int open() {
			
			if (fIsTesting) {
				deleteContent = true;
				return Window.OK;
			}
			return super.open();
		}
        
		/**