Bug 163096 [Undo] WorkspaceUndoUtil#delete should not attempt to open project
Build: I20061030-0656 1) Create a new simple project 2) Shutdown Eclipse 3) Delete the project's directory on disk 4) Restart Eclipse 5) Try to delete the project from the Navigator view. -> The project cannot be deleted, because the deletion will attempt to reopen the project. The project cannot be opened because its project description is missing. Deletion should not attempt to reopen a closed project.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/WorkspaceUndoUtil.java
resourceDescription.recordStateFromHistory(resourceToDelete,
					new SubProgressMonitor(monitor, 1));
			monitor.done();
		}
		return resourceDescription;
	}
	/*
	 * Copy the content of the specified resource to the existing resource,
	 * returning a ResourceDescription that can be used to restore the original
	 * content. Do nothing if the resources are not files.
	 */
	private static ResourceDescription copyOverExistingResource(
			IResource source, IResource existing, IProgressMonitor monitor,
			IAdaptable uiInfo, boolean deleteSourceFile) throws CoreException {
		if (!(source instanceof IFile && existing instanceof IFile)) {
			return null;
		}
		IFile file = (IFile) source;
		IFile existingFile = (IFile) existing;
		monitor
				.beginTask(
						UndoMessages.AbstractResourcesOperation_CopyingResourcesProgress,
						3);
		if (file != null && existingFile != null) {
			if (validateEdit(file, existingFile, getShell(uiInfo))) {
				
				
				FileDescription fileDescription = new FileDescription(
						existingFile);