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
return control;
	}
	
	private void initDragAndDrop() {
		Transfer[] transfers= new Transfer[] { LocalSelectionTransfer.getInstance() };
		int ops= DND.DROP_COPY;
		DragSource source= new DragSource(fMethodsViewer.getControl(), ops);
		source.setTransfer(transfers);
		source.addDragListener(new BasicSelectionTransferDragAdapter(fMethodsViewer));
		
		for (int i= 0; i < fAllViewers.length; i++) {
			TypeHierarchyViewer curr= fAllViewers[i];
			curr.addDropSupport(ops, transfers, new TypeHierarchyTransferDropAdapter(curr));
		}	
	}
	
	
	private void viewPartKeyShortcuts(KeyEvent event) {
		if (event.stateMask == SWT.CTRL) {
			if (event.character == '1') {
				setView(VIEW_ID_TYPE);
			} else if (event.character == '2') {
				setView(VIEW_ID_SUPER);
			} else if (event.character == '3') {
				setView(VIEW_ID_SUB);
			}
		}	
	}