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
public static final int VIEW_ORIENTATION_SINGLE= 2;
	
	private static final String DIALOGSTORE_HIERARCHYVIEW= "TypeHierarchyViewPart.hierarchyview";	 
	private static final String DIALOGSTORE_VIEWORIENTATION= "TypeHierarchyViewPart.orientation";	 
	private static final String TAG_INPUT= "input"; 
	private static final String TAG_VIEW= "view"; 
	private static final String TAG_ORIENTATION= "orientation"; 
	private static final String TAG_RATIO= "ratio"; 
	private static final String TAG_SELECTION= "selection"; 
	private static final String TAG_VERTICAL_SCROLL= "vertical_scroll"; 
	
	private IType fSelectedType;
	
	private IJavaElement fInputElement;
	
	
	private ArrayList fInputHistory;
	
	private IMemento fMemento;
	
	private IProblemChangedListener fHierarchyProblemListener;
	
	private TypeHierarchyLifeCycle fHierarchyLifeCycle;
	private ITypeHierarchyLifeCycleListener fTypeHierarchyLifeCycleListener;
		
	private MethodsViewer fMethodsViewer;
			
	private int fCurrentViewerIndex;
	private TypeHierarchyViewer[] fAllViewers;