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/CopyFilesAndFoldersOperation.java
* @param originalName
	 *            the full path of the resource
	 * @param workspace
	 *            the workspace
	 * @return the new full path for the copy
	 */
	static IPath getAutoNewNameFor(IPath originalName, IWorkspace workspace) {
		int counter = 1;
		String resourceName = originalName.lastSegment();
		IPath leadupSegment = originalName.removeLastSegments(1);
		while (true) {
			String nameSegment;
			if (counter > 1)
				nameSegment = NLS
						.bind(
								IDEWorkbenchMessages.CopyFilesAndFoldersOperation_copyNameTwoArgs,
								new Integer(counter), resourceName);
			else
				nameSegment = NLS
						.bind(
								IDEWorkbenchMessages.CopyFilesAndFoldersOperation_copyNameOneArg,
								resourceName);
			IPath pathToTry = leadupSegment.append(nameSegment);
			if (!workspace.getRoot().exists(pathToTry))
				return pathToTry;
			counter++;
		}
	}
	/**
	 * Creates a new operation initialized with a shell.