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
static IResource[] recreate(ResourceDescription[] resourcesToRecreate,
			IProgressMonitor monitor, IAdaptable uiInfo) throws CoreException {
		final List exceptions = new ArrayList();
		IResource[] resourcesToReturn = new IResource[resourcesToRecreate.length];
		monitor.beginTask("", resourcesToRecreate.length); 
		monitor
				.setTaskName(UndoMessages.AbstractResourcesOperation_CreateResourcesProgress);
		try {
			for (int i = 0; i < resourcesToRecreate.length; ++i) {
				if (monitor.isCanceled()) {
					throw new OperationCanceledException();
				}
				try {
					resourcesToReturn[i] = resourcesToRecreate[i]
							.createResource(new SubProgressMonitor(monitor, 1));
				} catch (CoreException e) {
					exceptions.add(e);
				}
			}
			IStatus result = WorkspaceUndoUtil.createResult(exceptions);
			if (!result.isOK()) {
				throw new CoreException(result);
			}
		} finally {
			monitor.done();
		}
		return resourcesToReturn;
	}
	/**
	 * Delete the specified resources, returning a resource description that can