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
*/
    public void run() {
        IResource[] resources = getSelectedResourcesArray();
        
         
        
        
        if (!confirmDelete(resources))
            return;
        final IResource[] resourcesToDelete = getResourcesToDelete(resources);
        if (resourcesToDelete.length == 0)
            return;
		
    	Job deleteJob = new Job(IDEWorkbenchMessages.DeleteResourceAction_jobName) {
    		public IStatus run(IProgressMonitor monitor) {
				try {
					ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
						public void run(IProgressMonitor monitor) throws CoreException {
					        delete(resourcesToDelete, monitor);
						}
					},	null, IWorkspace.AVOID_UPDATE, monitor);
				} catch (CoreException e) {
					return e.getStatus();
				}
				return Status.OK_STATUS;
    		}
			/* (non-Javadoc)
			 * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object)
			 */
			public boolean belongsTo(Object family) {