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
while (resources.hasNext()) {
				IProject project = (IProject) resources.next();
				rule = MultiRule.combine(rule, factory.modifyRule(project));
			}
			runInBackground(rule);
		} catch (OperationCanceledException e) {
			
		}
	}
	/**
	 * Opens the selected projects, and all related projects, in the background.
	 */
	private void runOpenWithReferences() {
		final List resources = new ArrayList(getActionResources());
		Job job = new WorkspaceJob(removeMnemonics(getText())) {
			/**
			 * Returns the total number of closed projects in the workspace.
			 */
			private int countClosedProjects() {
				int count = 0;
				IProject[] projects = ResourcesPlugin.getWorkspace().getRoot()
						.getProjects();
				for (int i = 0; i < projects.length; i++) {
					if (!projects[i].isOpen()) {
						count++;
					}
				}
				return count;
			}
			/**