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/CopyProjectAction.java
protected IStatus errorStatus;
    /**
     * Creates a new project copy action with the default text.
     *
     * @param shell the shell for any dialogs
     */
    public CopyProjectAction(Shell shell) {
        this(shell, COPY_TITLE);
        PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
				IIDEHelpContextIds.COPY_PROJECT_ACTION);
    }
    /**
     * Creates a new project copy action with the given text.
     *
     * @param shell the shell for any dialogs
     * @param name the string used as the text for the action, 
     *   or <code>null</code> if there is no text
     */
    CopyProjectAction(Shell shell, String name) {
        super(name);
        setToolTipText(COPY_TOOL_TIP);
        setId(CopyProjectAction.ID);
        if (shell == null) {
            throw new IllegalArgumentException();
        }
        this.shell = shell;
    }
    /**
     * Create a new IProjectDescription for the copy using the name and path selected
     * from the dialog.