Bug 5820 Close all editors brings up hierarchy of object
Build: 1107 1. Open a Java editor in the Java perspective 2. Select the project 3. Hit Ctrl-Shift-F4 The hierarchy for Object appears after ~30 seconds. This is very confusing.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
elements.add(element);
			}
			fViewer.setExpandedElements(elements.toArray());
		}
	}
	
	/**
	 * Create the KeyListener for doing the refresh on the viewer.
	 */
	private void initKeyListener() {
		fViewer.getControl().addKeyListener(new KeyAdapter() {
			public void keyReleased(KeyEvent event) {
				doKeyPressed(event.keyCode);
			}
		});
	}
	private void doKeyPressed(int key) {
		if (key == SWT.F5) {
			fRefreshAction.selectionChanged(
				(IStructuredSelection) fViewer.getSelection());
			if (fRefreshAction.isEnabled())
				fRefreshAction.run();
		} else if (key == SWT.F4) {
			OpenTypeHierarchyUtil.open(getSelection(), getSite().getWorkbenchWindow());
		} else if (key == SWT.F3) {
			fOpenCUAction.update();
			if (fOpenCUAction.isEnabled())
				fOpenCUAction.run();
		}
	}