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/Viewer.java
* </p>
 *
 * @param input the new input of this viewer, or <code>null</code> if none
 * @param oldInput the old input element or <code>null</code> if there
 *   was previously no input
 */
protected void inputChanged(Object input, Object oldInput) {
}
/**
 * Refreshes this viewer completely with information freshly obtained from this
 * viewer's model.
 */
public abstract void refresh();
/**
 * Removes the given help listener from this viewer.
 * Has no affect if an identical listener is not registered.
 *
 * @param listener a help listener
 */
public void removeHelpListener(HelpListener listener) {
	helpListeners.remove(listener);
	if (helpListeners.size() == 0) {
		Control control = getControl();
		if (control != null && !control.isDisposed()) {
			control.removeHelpListener(this.helpListener);
			helpHooked = false;
		}
	}
}
/* (non-Javadoc)