Bug 46837 [Navigator] Cannot delete Java project
N20031118 Start a fresh workspace, create a Java project, delete it INCLUDING its resources ==> not possible Works if I don't delete the contents.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java
IResource[] selectedResources = getSelectedResourcesArray();
	if (containsOnlyProjects()  && !deleteContent) {
		
		return selectedResources;
	} 
	ReadOnlyStateChecker checker =
		new ReadOnlyStateChecker(
			this.shell,
			IDEWorkbenchMessages.getString("DeleteResourceAction.title1"), 
			IDEWorkbenchMessages.getString("DeleteResourceAction.readOnlyQuestion")); 
	
	return checker.checkReadOnlyResources(selectedResources);
}
/**
 * The <code>DeleteResourceAction</code> implementation of this
 * <code>SelectionListenerAction</code> method disables the action
 * if the selection contains phantom resources or non-resources
 */
protected boolean updateSelection(IStructuredSelection selection) {
	return super.updateSelection(selection) && canDelete();
}
	
/**
 * Ask the user whether the given resource should be deleted
 * despite being out of sync with the file system.
 * @param resource the out of sync resource
 * @return One of the IDialogConstants constants indicating which
 * 	of the Yes, Yes to All, No, Cancel options has been selected by 
 * 	the user.
 */