Bug 67805 Java Editor 'Show In > Package Explorer' beeps even when element selected [package explorer]
200406180010 Open a Java editor and choose 'Navigate > Show In > Package Explorer'. The Package Explorer is shown and the right element is selected. Nevertheless, there's a Display#beep() which should only occur when the element could not be shown. The problem is that PackageExplorerPart#revealAndVerify(..) sets the selection (converting the given editor input file into an IJavaElement) and then compares the new selection to the given file to determine success. This test obviously fails when the selection is not a file but a CU. That's why the beep is issued.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
* Method declared on IViewPart.
	 */
	private boolean fLinkingEnabled;
    public void init(IViewSite site, IMemento memento) throws PartInitException {
		super.init(site, memento);
		fMemento= memento;
		restoreLayoutState(memento);
	}
	private void restoreLayoutState(IMemento memento) {
		Integer state= null;
		if (memento != null)
			state= memento.getInteger(TAG_LAYOUT);
		
		if(state == null) {
			IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
			state= new Integer(store.getInt(TAG_LAYOUT));
		}
		if (state.intValue() == FLAT_LAYOUT)
			fIsCurrentLayoutFlat= true;
		else if (state.intValue() == HIERARCHICAL_LAYOUT)
			fIsCurrentLayoutFlat= false;
		else
			fIsCurrentLayoutFlat= true;
	}
	
	/**
	 * Returns the package explorer part of the active perspective. If 
	 * there isn't any package explorer part <code>null</code> is returned.
	 */
	public static PackageExplorerPart getFromActivePerspective() {