Bug 15844 [Exception Handling] SelectionChange events and NPE
Build 20020508 Due to new global actions there are now more objects listening to selection changes send out by a JFace viewer. We now had the case that one of the listener generated a NPE. As a result all listeners registered after that one didn't receive the selection change event. StructuredViewers should be more fault tolorant to exceptions when informing listeners.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
});
}
/**
 * Refreshes the given TableItem with the given element.
 * Calls <code>doUpdateItem(..., false)</code>.
 * <p>
 * This method is internal to the framework; subclassers should not call
 * this method.
 * </p>
 */
protected final void refreshItem(Widget widget, Object element) {
	doUpdateItem(widget, element, false);
}
/**
 * Removes the given open listener from this viewer.
 * Has no affect if an identical listener is not registered.
 *
 * @param listener a double-click listener
 */
public void removeOpenListener(IOpenListener listener) {
	openListeners.remove(listener);
}
/**
 * Removes the given post selection listener from this viewer.
 * Has no affect if an identical listener is not registered.
 *
 * @param listener a double-click listener
 */
public void removePostSelectionChangedListener(ISelectionChangedListener listener) {
	postSelectionChangedListeners.remove(listener);