Bug 63400 elements not removed from hierarchical search
20040520 Ensure that you are use the hierarchical presentation for search. 1. Do a search with several hits: references to toString, or JavaCore, or ... 2. Remove one of the leaf elements from the list (one method or type). The count of search items decreases, however, the view is not updated. When I remove the last element from the package, the entire package is removed (but not before)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/LevelTreeContentProvider.java
} else if (possibleParent instanceof IResource) {
			IResource resource= (IResource) possibleParent;
			for (int j= fCurrentLevel; j < MAX_LEVEL + 1; j++) {
				for (int i= 0; i < RESOURCE_TYPES[j].length; i++) {
					if (resource.getType() == RESOURCE_TYPES[j][i]) {
						return null;
					}
				}
			}
		}
		if (fCurrentLevel != LEVEL_FILE && child instanceof IType) {
			IType type= (IType) child;
			if (possibleParent instanceof ICompilationUnit
					|| possibleParent instanceof IClassFile)
				possibleParent= type.getPackageFragment();
		}
		return possibleParent;
	}
	private Object internalGetParent(Object child) {
		return fContentProvider.getParent(child);
	}
	public Object[] getElements(Object inputElement) {
		return getChildren(inputElement);
	}
	protected synchronized void initialize(JavaSearchResult result) {
		super.initialize(result);
		fChildrenMap= new HashMap();
		if (result != null) {
			Object[] elements= result.getElements();
			for (int i= 0; i < elements.length; i++) {