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
}
/**
 * Sets or clears the input for this viewer.
 *
 * @param input the input of this viewer, or <code>null</code> if none
 */
public abstract void setInput(Object input);
/**
 * The viewer implementation of this <code>ISelectionProvider</code> 
 * method make the new selection for this viewer without making it visible.
 * <p>
 * This method is equivalent to <code>setSelection(selection,false)</code>.
 * </p>
 */
public void setSelection(ISelection selection) {
	setSelection(selection, false);
}
/**
 * Sets a new selection for this viewer and optionally makes it visible.
 * <p>
 * Subclasses must implement this method.
 * </p>
 *
 * @param selection the new selection
 * @param reveal <code>true</code> if the selection is to be made
 *   visible, and <code>false</code> otherwise
 */
public abstract void setSelection(ISelection selection, boolean reveal);
}