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
* Opens a project along with all projects it references
			 */
			private void doOpenWithReferences(IProject project,
					IProgressMonitor monitor) throws CoreException {
				if (!project.exists() || project.isOpen()) {
					return;
				}
				project.open(new SubProgressMonitor(monitor, 1000));
				IProject[] references = project.getReferencedProjects();
				for (int i = 0; i < references.length; i++) {
					doOpenWithReferences(references[i], monitor);
				}
			}
			public IStatus runInWorkspace(IProgressMonitor monitor)
					throws CoreException {
				try {
					
					monitor.beginTask("", countClosedProjects() * 1000); 
					monitor.setTaskName(getOperationMessage());
					for (Iterator it = resources.iterator(); it.hasNext();) {
						doOpenWithReferences((IProject) it.next(), monitor);
					}
				} finally {
					monitor.done();
				}
				return Status.OK_STATUS;
			}
		};
		job.setRule(ResourcesPlugin.getWorkspace().getRoot());
		job.setUser(true);