Bug 64902 packages view: keyboard focus lost after switching layout [browsing]
RC1 - browsing perspective, packages view - normal selection in the list in the view - invoke the view menu (Ctrl+F10) - choose Layout->Hierarchical -> view gets updated as expected -> keyboard focus is lost. There is no way to get out by keyboard only. expected: the element previously selected in the list is not selected; and if needed expanded. I suspect the focus is still with the list that was replaced by the tree.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesView.java
if (fCurrViewState == state)
			return;
		else {
			fCurrViewState= state;
			IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
			store.setValue(getViewSite().getId() + TAG_VIEW_STATE, state);
		}
		
		StructuredViewer viewer= fWrappedViewer.getViewer();
		Object object= viewer.getInput();
		ISelection selection= viewer.getSelection();
		
		Control control= createViewer(fWrappedViewer.getControl().getParent()).getControl();
		setUpViewer(fWrappedViewer);
		createSelectAllAction();
		
		fWrappedViewer.setViewerInput(object);
		fWrappedViewer.setSelection(selection, true);
		
		viewer.getContentProvider().dispose();
		viewer.getControl().dispose();
		
		if (control != null && !control.isDisposed()) {
			control.setVisible(true);
			control.getParent().layout(true);
		}
	}
	private void createSelectAllAction() {
		IActionBars actionBars= getViewSite().getActionBars();