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
if (getPage().getDisplayedMatchCount(elements[i]) > 0) {
					insert(null, null, elements[i]);
				}
			}
		}
	}
	protected void insert(Map toAdd, Set toUpdate, Object child) {
		Object parent= getParent(child);
		while (parent != null) {
			if (insertChild(parent, child)) {
				if (toAdd != null)
					insertInto(parent, child, toAdd);
			} else {
				if (toUpdate != null)
					toUpdate.add(parent);
				return;
			}
			child= parent;
			parent= getParent(child);
		}
		if (insertChild(fResult, child)) {
			if (toAdd != null)
				insertInto(fResult, child, toAdd);
		}
	}
	/**
	 * returns true if the child already was a child of parent.
	 * 
	 * @param parent
	 * @param child