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
}
                } finally {
                    saving = false;
                }
            }
        };
        getTree().getShell().getDisplay().asyncExec(query);
    }
    /**
     * The <code>RenameResourceAction</code> implementation of this
     * <code>SelectionListenerAction</code> method ensures that this action is
     * disabled if any of the selections are not resources or resources that are
     * not local.
     */
    protected boolean updateSelection(IStructuredSelection selection) {
        disposeTextWidget();
        if (selection.size() > 1)
            return false;
        if (!super.updateSelection(selection))
            return false;
        IResource currentResource = getCurrentResource();
        if (currentResource == null || !currentResource.exists())
            return false;
        return true;
    }
    /**
     * Set the text action handler.
     * 
     * @param actionHandler the action handler
     */