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 (toUpdate != null) {
					toUpdate.add(element);
				}
			}
		}
	}
	private void removeFromSiblings(Object element, Object parent) {
		Set siblings= (Set) fChildrenMap.get(parent);
		if (siblings != null) {
			siblings.remove(element);
		}
	}
	public Object[] getChildren(Object parentElement) {
		Set children= (Set) fChildrenMap.get(parentElement);
		if (children == null)
			return EMPTY_ARR;
		return children.toArray();
	}
	public boolean hasChildren(Object element) {
		return getChildren(element).length > 0;
	}
	public synchronized void elementsChanged(Object[] updatedElements) {
		AbstractTreeViewer viewer= (AbstractTreeViewer) getPage().getViewer();
		if (fResult == null)
			return;
		Set toRemove= new HashSet();
		Set toUpdate= new HashSet();
		Map toAdd= new HashMap();