Bug 161897 [Undo] Javadoc warnings in N20061022-0010
/builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java:71: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.MoveFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java:396: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.CopyFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java:71: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.MoveFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java:396: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.CopyFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java:71: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.MoveFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java:396: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.CopyFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java:71: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.MoveFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java:396: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.CopyFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java:396: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.CopyFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java:71: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.MoveFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java:71: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.MoveFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java:396: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.CopyFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java:396: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.CopyFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java:396: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.CopyFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java:71: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.MoveFilesAndFoldersOperation /builds/N200610220010/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java:71: warning - Tag @link: can't find performCopy(IResource[], IPath, IProgressMonitor) in org.eclipse.ui.actions.MoveFilesAndFoldersOperation
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
*/
	protected IFolder getFolder(IResource resource) {
		if (resource instanceof IFolder) {
			return (IFolder) resource;
		}
		return (IFolder) ((IAdaptable) resource).getAdapter(IFolder.class);
	}
	/**
	 * Returns a new name for a copy of the resource at the given path in the
	 * given workspace.
	 * 
	 * @param originalName
	 *            the full path of the resource
	 * @param workspace
	 *            the workspace
	 * @return the new full path for the copy, or <code>null</code> if the
	 *         resource should not be copied
	 */
	private IPath getNewNameFor(final IPath originalName,
			final IWorkspace workspace) {
		final IResource resource = workspace.getRoot().findMember(originalName);
		final IPath prefix = resource.getFullPath().removeLastSegments(1);
		final String returnValue[] = { "" }; 
		messageShell.getDisplay().syncExec(new Runnable() {
			public void run() {
				IInputValidator validator = new IInputValidator() {
					public String isValid(String string) {
						if (resource.getName().equals(string)) {
							return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_nameMustBeDifferent;
						}