Bug 5475 F4 causes loss of context when called from a method view
1) Open a class with many methods 2) Make sure "show of source element only" is selected 3) Choose a method 4) Press F4 with no selection The class is open on the hierarchy view and the full source is shown in the editor. The method focus was lost. You have to find and select the method again.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
}
	/**
	 * Gets the curret active view index.
	 */		
	public int getViewIndex() {
		return fCurrentViewerIndex;
	}
	
	private TypeHierarchyViewer getCurrentViewer() {
		return fAllViewers[fCurrentViewerIndex];
	}
	/**
	 * called from EnableMemberFilterAction.
	 * Must be called after creation of the viewpart.
	 */	
	public void enableMemberFilter(boolean on) {
		if (on != fIsEnableMemberFilter) {
			fIsEnableMemberFilter= on;
			if (!on) {
				Object methodViewerInput= fMethodsViewer.getInput();
				setMemberFilter(null);
				if (methodViewerInput != null && getCurrentViewer().isElementShown(methodViewerInput)) {
					
					getCurrentViewer().setSelection(new StructuredSelection(methodViewerInput));
				} else if (fSelectedType != null) {
					
					getCurrentViewer().setSelection(new StructuredSelection(fSelectedType));
					updateMethodViewer(fSelectedType);
				}
			} else {