Project: Eclipse_Platform_UI
Bug 162655 [Undo] [IDE] - Undoing a delete should check for existence of resources to be restored
Reported: 2006-10-27 19:54:43 | Status: verified fixed

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.

Files changed in fix:
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCreateResourcesOperation.java bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractResourcesOperation.java bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyResourcesOperation.java bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteResourcesOperation.java bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/UndoMessages.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java