Bug 28439 java browsing: package view not updated sometimes [browsing]
20021216 maybe it's the desired behavior, i don't know. but it feels strange 1. junit 3.7 with 2 src folders (one has everything and the other some random packages) 2. select the project - stuff is shown in packages view 3. select a package 4. select the project again - nothing happens in the packages view to make anything change you have to click around a couple of times
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java
return null;
			case IJavaElement.JAVA_PROJECT:
				return je;
			case IJavaElement.PACKAGE_FRAGMENT_ROOT:
				if (je.getElementName().equals(IPackageFragmentRoot.DEFAULT_PACKAGEROOT_PATH))
					return je.getParent();
				else
					return je;
			default :
				return findElementToSelect(je.getParent());
		}
	}
	
	/*
	 * @see JavaBrowsingPart#setInput(Object)
	 */
	protected void setInput(Object input) {
		
		if (input != null)
			super.setInput(input);
		else
			getViewer().setSelection(null);
	}
	
	protected void createActions() {		
		super.createActions();
		fActionGroups.addGroup(new ProjectActionGroup(this));
	}		
}