Bug 167619 [Undo] 'Undo Delete Resources' should not be available after full project deletion
I20061212-0010. When deleting a project with all its contents there's a comment in the dialog that I cannot undo (OK). Once the project is gone I can still undo the project which is unexpected. Undoing the deletion results in an empty project which can be in a completely weird state (e.g. a Java project without a .classpath file). Adding Markus to track whether deleting from the Package Explorer is affected too.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java
radio2.setSelection(!deleteContent);
			return composite;
		}
		private SelectionListener selectionListener = new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				Button button = (Button) e.widget;
				if (button.getSelection()) {
					deleteContent = (button == radio1);
				}
			}
		};
		boolean getDeleteContent() {
			return deleteContent;
		}
		/*
		 * (non-Javadoc)
		 * 
		 * @see org.eclipse.jface.window.Window#open()
		 */
		public int open() {
			
			if (fIsTesting) {
				deleteContent = true;
				return Window.OK;
			}
			return super.open();
		}
		/**
		 * Set this delete dialog into testing mode. It won't pop up, and it
		 * returns true for deleteContent.