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
forceOutOfSyncDelete = false;
        monitor.beginTask("", resourcesToDelete.length); 
        try {
	        for (int i = 0; i < resourcesToDelete.length; ++i) {
	            if (monitor.isCanceled()) {
	                throw new OperationCanceledException();
	            }
	            try {
	                delete(resourcesToDelete[i], new SubProgressMonitor(monitor, 1,
	                        SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK));
	            } catch (CoreException e) {
	                exceptions.add(e);
	            }
	        }
	        IStatus result = createResult(exceptions);
			if (!result.isOK())
				throw new CoreException(result);
        } finally {
        	monitor.done();
        }
    }
    /**
     * Deletes the given resource.
     */
    private void delete(IResource resourceToDelete, IProgressMonitor monitor)
            throws CoreException {
        boolean force = false; 
        try {
            if (resourceToDelete.getType() == IResource.PROJECT) {