Bug 30751 [Viewers] Closing all projects doesnt clear package browser list [browsing]
In the java browsing perspective, if you close all projects, the packages browser still has a list of all the packages from the last opened project.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
/**
 * Compares two elements for equality.
 * Uses the element comparer if one has been set, otherwise
 * uses the default <code>equals</code> method on the elements themselves.
 * 
 * @param elementA the first element
 * @param elementB the second element
 * @return whether elementA is equal to elementB
 */	
protected boolean equals(Object elementA, Object elementB) {
	if (comparer == null)
		return elementA.equals(elementB);
	else
		return comparer.equals(elementA, elementB);
}
/**
 * Returns the result of running the given elements through the filters.
 *
 * @param elements the elements to filter
 * @return only the elements which all filters accept
 */
protected Object[] filter(Object[] elements) {
	if (filters != null) {
		ArrayList filtered = new ArrayList(elements.length);
		Object root = getRoot();
		for (int i = 0; i < elements.length; i++) {
			boolean add = true;
			for (int j = 0; j < filters.size(); j++) {
				add = ((ViewerFilter) filters.get(j)).select(this, root, elements[i]);
				if (!add)