Bug 7873 Bogus error messages
1. Create a Project Test with a folder "COM". 2. Create a Project Test2 with a folder "com". 3. Select "COM" from Step 1, copy it to Test2. You get an error dialog: An error occurred while copying resources. Reason: Status <==== bogus, what does "Status" mean? 4. Same thing happens if you try to a folder with the same name AND the error dialog has the incorrect action information (the dialog is titled "Copy" instead of "Move" and its error message says error "copying", not "moving").
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgDestinationAction.java
if (p1.segment(i).equals(p2.segment(i)))
				commonPath= commonPath.append(p1.segment(i));
			else
				break;	
		}
		return ResourcesPlugin.getWorkspace().getRoot().findMember(commonPath);
	}
	
	private static IResource getResource(Object o) {
		try{
			if (o instanceof IResource)
				return (IResource)o;
			else if (o instanceof IJavaElement)
				return 	((IJavaElement)o).getCorrespondingResource();
			else
				return null;	
		} catch (JavaModelException e){
			JavaPlugin.log(e);
			return null;
		}		
	}
	/* non java-doc
	 * @see IRefactoringAction#canOperateOn(IStructuredSelection)
	 */
	public boolean canOperateOn(IStructuredSelection selection) {
		return canActivate(createRefactoring(selection.toList()));
	}
	
	
	private static class ContainerFilter extends PackageFilter {