Bug 94906 Selecting an element in Package Explorer calls 3 times EditorUtility.revealInEditor
I20050509-2010 I have open on single-click enabled. When linking is disabled EditorUtility.revealInEditor is triggered only once but as soon as linking is enabled it gets sent three times when an element is selected in Package Explorer (assuming the CU is already open). Opening a CU results in revealing two times. If open on double-click is checked and linking enabled it reveals twice upon element selection (assuming the CU is already open).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
}
			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) {
				fActionSet.handleKeyEvent(event);
			}
		});
	}
	/**
	 * An editor has been activated.  Set the selection in this Packages Viewer
	 * to be the editor's input, if linking is enabled.
	 */
	void editorActivated(IEditorPart editor) {
		if (!isLinkingEnabled())  
			return;
		Object input= getElementOfInput(editor.getEditorInput());
		if (input == null) 
			return;
		if (!inputIsSelected(editor.getEditorInput()))
			showInput(input);
		else
			getTreeViewer().getTree().showSelection();
	}