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
}
	return (result != null) ? result : new Object[0];
}
/**
 * Returns the root element.
 * <p>
 * The default implementation of this framework method forwards to
 * <code>getInput</code>.
 * Override if the root element is different from the viewer's input
 * element.
 * </p>
 *
 * @return the root element, or <code>null</code> if none
 */
protected Object getRoot() {
	return getInput();
}
/**
 * The <code>StructuredViewer</code> implementation of this method
 * returns the result as a <code>StructuredSelection</code>.
 * <p>
 * Subclasses do not typically override this method, but implement
 * <code>getSelectionFromWidget(List)</code> instead.
 * <p>
 */
public ISelection getSelection() {
	Control control = getControl();
	if (control == null || control.isDisposed()) {
		return StructuredSelection.EMPTY;
	}