Bug 161828 [Undo] - second undo on folder move/copy merge restores old snapshot
Project A folder file1 file2 file3 file4 subfolder file1 file2 file3 file4 Move the "folder" to this existing project: Project B folder file1 file2 file3 file4 file5 file6 subfolder file1 file2 file3 file4 The move operation correctly replaces the content of file1, file2, file3, file4 in the ProjectB folder and the content of file1, file2, file3, file4 in the subfolder. Undo the move. The files return to their original location in ProjectA, and the content of the files in ProjectB have reverted to their content before the move. Redo the move. Everything still fine. Undo the move. Now the files have returned to their original location in ProjectA, but the content of the files in ProjectB still have the content from the ProjectA files.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ResourceDescription.java
*/
public abstract class ResourceDescription {
	IContainer parent;
	long modificationStamp = IResource.NULL_STAMP;
	long localTimeStamp = IResource.NULL_STAMP;
	ResourceAttributes resourceAttributes;
	MarkerDescription[] markerDescriptions;
	/**
	 * Create a resource description given the specified resource. The resource
	 * is assumed to exist.
	 * 
	 * @param resource
	 *            the resource from which a description should be created
	 * @return the resource description
	 */
	public static ResourceDescription fromResource(IResource resource) {
		if (resource.getType() == IResource.PROJECT) {
			return new ProjectDescription((IProject) resource);
		} else if (resource.getType() == IResource.FOLDER) {
			return new FolderDescription((IFolder) resource);
		} else if (resource.getType() == IResource.FILE) {
			return new FileDescription((IFile) resource);
		} else {
			throw new IllegalArgumentException();
		}
	}
	/**
	 * Create a resource description with no initial attributes
	 */
	protected ResourceDescription() {