Bug 163241 [Undo] Allow Undo notification to be turned off
When deleting a project you will always been notified that it removes the Undo History. Could we add a "Don't show this" checkbox to its dialog settings? Thanx, PW
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java
* 
	 * @param resources
	 *            the selected resources
	 * @return <code>true</code> if the resources contains only non-projects,
	 *         and <code>false</code> otherwise
	 */
	private boolean containsOnlyNonProjects(IResource[] resources) {
		int types = getSelectedResourceTypes(resources);
		
		if (types == 0) {
			return false;
		}
		
		return (types & IResource.PROJECT) == 0;
	}
	/**
	 * Returns whether the selection contains only projects.
	 * 
	 * @param resources
	 *            the selected resources
	 * @return <code>true</code> if the resources contains only projects, and
	 *         <code>false</code> otherwise
	 */
	private boolean containsOnlyProjects(IResource[] resources) {
		int types = getSelectedResourceTypes(resources);
		
		return types == IResource.PROJECT;
	}
	/**
	 * Asks the user to confirm a delete operation.