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
getViewer().addFilter(new LibraryFilter());
	}
	
	/**
	 * Creates new NonJavaElementFilter and overides method select to allow for
	 * LogicalPackages.
	 * @return NonJavaElementFilter
	 */
	protected NonJavaElementFilter createNonJavaElementFilter() {
		return new NonJavaElementFilter(){
			public boolean select(Viewer viewer, Object parent, Object element){
				return ((element instanceof IJavaElement) || (element instanceof LogicalPackage));	
			}
		};
	}
	
	public void init(IViewSite site, IMemento memento) throws PartInitException {
		super.init(site, memento);
		
		fWrappedViewer= new PackageViewerWrapper();
		restoreLayoutState(memento);
	}
	private void restoreLayoutState(IMemento memento) {
		if (memento == null) {
			
			IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
			fCurrViewState= store.getInt(this.getViewSite().getId() + TAG_VIEW_STATE);
		} else {
			
			Integer integer= memento.getInteger(this.getViewSite().getId() + TAG_VIEW_STATE);