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/RenameResourceAction.java
/**
     * Return the currently selected resource. Only return
     * an IResouce if there is one and only one resource selected.
     * @return IResource or <code>null</code> if there is zero
     * or more than one resources selected.
     */
    private IResource getCurrentResource(){
    	List resources = getSelectedResources();
    	if(resources.size() == 1)
    		return (IResource) resources.get(0);
    	return null;
    	
    }
    /**
     * @param path the path
     * @param resource the resource
     */
    protected void runWithNewPath(IPath path, IResource resource) {
        this.newPath = path;
        super.run();
    }
    /**
     * Save the changes and dispose of the text widget.
     * @param resource - the resource to move.
     */
    private void saveChangesAndDispose(IResource resource) {
        if (saving == true)
            return;
        saving = true;