Bug 162655 [Undo] [IDE] - Undoing a delete should check for existence of resources to be restored
N20061027. - I deleted two projects (along with their content). I read the warning that undo delete cannot restore the content and said "OK." - Then I checked out those same projects from HEAD. - Then I selected "Undo Delete Resources." This overwrote my code with empty projects. I think that "Undo Delete Resources" should become invalid if the resources exist again, because you'll end up replacing content without keeping a backup.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/UndoMessages.java
/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.internal.ide.undo;
import org.eclipse.osgi.util.NLS;
/**
 * UndoMessages is the class that handles the messages for performing workspace
 * undo and redo.
 * 
 */
public class UndoMessages extends NLS {