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
* Method declared on IAction; overrides method on WorkspaceAction.
     */
    public void run() {
        if (this.navigatorTree == null) {
            IResource currentResource = getCurrentResource();
            if (currentResource == null || !currentResource.exists())
                return;
            
            if (!checkReadOnlyAndNull(currentResource))
                return;
            String newName = queryNewResourceName(currentResource);
            if (newName == null || newName.equals(""))
                return;
            newPath = currentResource.getFullPath().removeLastSegments(1)
                    .append(newName);
            super.run();
        } else
            runWithInlineEditor();
    }
    /* 
     * Run the receiver using an inline editor from the supplied navigator. The
     * navigator will tell the action when the path is ready to run.
     */
    private void runWithInlineEditor() {
        IResource currentResource = getCurrentResource();
        if (!checkReadOnlyAndNull(currentResource))
            return;
        queryNewResourceNameInline(currentResource);
    }