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
doubleClickListeners.add(listener);
}
/**
 * Adds a listener for selection-open in this viewer.
 * Has no effect if an identical listener is already registered.
 *
 * @param listener a double-click listener
 */
public void addOpenListener(IOpenListener listener) {
	openListeners.add(listener);
}
/**
 * Adds a listener for post selection in this viewer.
 * It is equivalent to selection changed if the selection
 * was triggered by the mouse but it has a delay if the selection
 * is triggered by the keyboard arrows.
 * Has no effect if an identical listener is already registered.
 *
 * @param listener a double-click listener
 */
public void addPostSelectionChangedListener(ISelectionChangedListener listener) {
	postSelectionChangedListeners.add(listener);
}
/**
 * Adds support for dragging items out of this viewer via
 * a user drag-and-drop operation.
 *
 * @param operations a bitwise OR of the supported drag and drop operation
 *  types (<code>DROP_COPY</code>, <code>DROP_LINK</code>, and <code>DROP_MOVE</code>)
 * @param transferTypes the transfer types that are supported by the drag operation