Bug 133416 Open with references should only prompt if necessary
Build: I20060327-1200 While watching a demo at EclipseCon I noticed a user selecting "open project" on a workspace with only one project. It then prompted to ask if referenced projects should also be opened. This drew some laughter from the crowd - clearly it doesn't need to prompt if there is nothing to open. This is an easy polish item
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenResourceAction.java
/*
	 * (non-Javadoc) Method declared on WorkspaceAction.
	 */
	protected String getOperationMessage() {
		return IDEWorkbenchMessages.OpenResourceAction_operationMessage;
	}
	/*
	 * (non-Javadoc) Method declared on WorkspaceAction.
	 */
	protected String getProblemsMessage() {
		return IDEWorkbenchMessages.OpenResourceAction_problemMessage;
	}
	/*
	 * (non-Javadoc) Method declared on WorkspaceAction.
	 */
	protected String getProblemsTitle() {
		return IDEWorkbenchMessages.OpenResourceAction_dialogTitle;
	}
	protected void invokeOperation(IResource resource, IProgressMonitor monitor)
			throws CoreException {
		((IProject) resource).open(monitor);
	}
	/**
	 * Returns the preference for whether to open required projects when opening
	 * a project. Consults the preference and prompts the user if necessary.
	 * 
	 * @return <code>true</code> if referenced projects should be opened, and
	 *         <code>false</code> otherwise.
	 */
	private boolean promptToOpenWithReferences() {