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
if (delta != null) {
				IResourceDelta[] projDeltas = delta
						.getAffectedChildren(IResourceDelta.CHANGED);
				for (int i = 0; i < projDeltas.length; ++i) {
					IResourceDelta projDelta = projDeltas[i];
					if ((projDelta.getFlags() & IResourceDelta.OPEN) != 0) {
						if (sel.contains(projDelta.getResource())) {
							selectionChanged(getStructuredSelection());
							return;
						}
					}
				}
			}
		}
	}
	/*
	 * (non-Javadoc) Method declared on IAction; overrides method on
	 * WorkspaceAction.
	 */
	public void run() {
		try {
			if (promptToOpenWithReferences()) {
				runOpenWithReferences();
			}
			ISchedulingRule rule = null;
			
			
			IResourceRuleFactory factory = ResourcesPlugin.getWorkspace()
					.getRuleFactory();
			Iterator resources = getSelectedResources().iterator();