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
return false;
        }
        if (resources.length == 0)
            return false;
        
        for (int i = 0; i < resources.length; i++) {
            IResource resource = resources[i];
            if (resource.isPhantom()) {
                return false;
            }
        }
        return true;
    }
    /**
     * Returns whether the selection contains linked resources.
     *
     * @param resources the selected resources
     * @return <code>true</code> if the resources contain linked   
     *  resources, and <code>false</code> otherwise
     */
    private boolean containsLinkedResource(IResource[] resources) {
        for (int i = 0; i < resources.length; i++) {
            IResource resource = resources[i];
            if (resource.isLinked())
                return true;
        }
        return false;
    }
    /**
     * Returns whether the selection contains only non-projects.