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
private static final int HIERARCHICAL_LAYOUT= 0x1;
	private static final int FLAT_LAYOUT= 0x2;
	
	public final static String VIEW_ID= JavaUI.ID_PACKAGES;
				
	
	static final String TAG_SELECTION= "selection"; 
	static final String TAG_EXPANDED= "expanded"; 
	static final String TAG_ELEMENT= "element"; 
	static final String TAG_PATH= "path"; 
	static final String TAG_VERTICAL_POSITION= "verticalPosition"; 
	static final String TAG_HORIZONTAL_POSITION= "horizontalPosition"; 
	static final String TAG_FILTERS = "filters"; 
	static final String TAG_FILTER = "filter"; 
	static final String TAG_LAYOUT= "layout"; 
	static final String TAG_CURRENT_FRAME= "currentFramge"; 
	
	private PackageExplorerContentProvider fContentProvider;
	private FilterUpdater fFilterUpdater;
	
	private PackageExplorerActionGroup fActionSet;
	private ProblemTreeViewer fViewer; 
	private Menu fContextMenu;		
	
	private IMemento fMemento;	
	private ISelectionChangedListener fSelectionListener;
	
	private String fWorkingSetName;
	
	private IPartListener fPartListener= new IPartListener() {