Bug 64897 packages view: not updated when project source folders change [browsing]
RC1 - browsing perspective - smoke test scenario... - import junit.zip into the previously not existing folder 'src' -> packages view shows a number of packages src.junit.framework... with errors - go to the project properties, source page - add 'src' as source folder, accept when asked to remove the project root as source folder - press OK -> the error marks in the packages view are removed -> the packages src... are still visible in the packages view -> they are only removed upon a selection change in the "projects" view
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(Object)
	 */
	public Object[] getElements(Object inputElement) {
		return getChildren(inputElement);
	}
	protected void processDelta(IJavaElementDelta delta) throws JavaModelException {
		int kind = delta.getKind();
		final IJavaElement element = delta.getElement();
		if (element instanceof IPackageFragment) {
			final IPackageFragment frag = (IPackageFragment) element;
			
			
			if (kind == IJavaElementDelta.REMOVED) {
				removeElement(frag);
				return;
			} else if (kind == IJavaElementDelta.ADDED) {
				Object parent= getParent(frag);
				addElement(frag, parent);
				return;
			} else if (kind == IJavaElementDelta.CHANGED) {
				
				LogicalPackage logicalPkg= findLogicalPackage(frag);
				
				if (logicalPkg != null)
					postRefresh(findElementToRefresh(logicalPkg));
				else
					postRefresh(findElementToRefresh(frag));
				return;
			}
		}