Bug 176764 [Undo] - DeleteResourcesOperation does not handle overlapped selections
In a project, create a folder f1. In f1, create another folder f2. Select f1 and f2 delete The undo fails with a "not enough info to restore" message. The problem is that the resource description for f2 checks to see whether f2's parent is valid, and at the time of the check, f1 has not been restored. Either the validity check needs to be smarter, or else the deletes should be collapsed into just f1.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyResourcesOperation.java
setResourceDescriptions(new ResourceDescription[0]);
		
		
		
		setTargetResources(originalResources);
		monitor.done();
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.ide.undo.AbstractWorkspaceOperation#updateResourceChangeDescriptionFactory(org.eclipse.core.resources.mapping.IResourceChangeDescriptionFactory,
	 *      int)
	 */
	protected boolean updateResourceChangeDescriptionFactory(
			IResourceChangeDescriptionFactory factory, int operation) {
		boolean update = false;
		if (operation == UNDO) {
			for (int i = 0; i < resources.length; i++) {
				update = true;
				IResource resource = resources[i];
				factory.delete(resource);
			}
			for (int i = 0; i < resourceDescriptions.length; i++) {
				update = true;
				IResource resource = resourceDescriptions[i]
						.createResourceHandle();
				factory.create(resource);
			}
		} else {
			for (int i = 0; i < resources.length; i++) {