Bug 33226 Show In beeps
RC1 - JUnit setup - select TestCase in package explorer - open TestCase in editor - position cursor right after the package declaration - Show in->Package Explorer Observe: you hear a beep. Normally beeps indicate an error but TestCase is correctly selected since it was before executung Show In.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
if (obj instanceof IJavaElement) 
					EditorUtility.revealInEditor(part, (IJavaElement) obj);
			}
		}
	}
	private boolean isActivePart() {
		return this == getSite().getPage().getActivePart();
	}
	
	public void saveState(IMemento memento) {
		if (fViewer == null) {
			
			if (fMemento != null) 
				memento.putMemento(fMemento);
			return;
		}
		saveExpansionState(memento);
		saveSelectionState(memento);
		saveLayoutState(memento);
		saveLinkingEnabled(memento);
		
		
		fActionSet.saveFilterAndSorterState(memento);
	}
	
	private void saveLinkingEnabled(IMemento memento) {
		memento.putInteger(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, fLinkingEnabled ? 1 : 0);
	}
	/**
	 * Saves the current layout state.