Bug 35107 Show in>doesn't work from synchronize view
1) perform a synchronize in the Java perspective 2) select a resource that has changes and is in the workspace 3) Navigate>Show in>Package Explorer -> beep The problem is that the show in logic doesn't check whether the selection (TeamFile) can be adapted to an IResource. This is a common navigation, i.e., you want to check/edit an affected file. Navigating to the PackageExplorer is already possible from the context menu. The fix is to also check for the IResource adapter when the slection isn't an IJavaElement. I'm tempted to fix it for RC3 since it is a real value add. Dirk - I remember you have complained about this too Kai - please approve if you agree
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
restoreLayoutState(memento);
	}
	private void restoreLayoutState(IMemento memento) {
		Integer state= null;
		if (memento != null)
			state= memento.getInteger(TAG_LAYOUT);
		
		if(state == null) {
			IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
			state= new Integer(store.getInt(TAG_LAYOUT));
		}
		if (state.intValue() == FLAT_LAYOUT)
			fIsCurrentLayoutFlat= true;
		else if (state.intValue() == HIERARCHICAL_LAYOUT)
			fIsCurrentLayoutFlat= false;
		else
			fIsCurrentLayoutFlat= true;
	}
	
	/**
	 * Returns the package explorer part of the active perspective. If 
	 * there isn't any package explorer part <code>null</code> is returned.
	 */
	public static PackageExplorerPart getFromActivePerspective() {
		IWorkbenchPage activePage= JavaPlugin.getActivePage();
		if (activePage == null)
			return null;
		IViewPart view= activePage.findView(VIEW_ID);
		if (view instanceof PackageExplorerPart)
			return (PackageExplorerPart)view;