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
}
/**
 * Removes the given double-click listener from this viewer.
 * Has no affect if an identical listener is not registered.
 *
 * @param listener a double-click listener
 */
public void removeDoubleClickListener(IDoubleClickListener listener) {
	doubleClickListeners.remove(listener);
}
/**
 * Removes the given filter from this viewer, 
 * and triggers refiltering and resorting of the elements if required.
 * Has no effect if the identical filter is not registered.
 *
 * @param filter a viewer filter
 */
public void removeFilter(ViewerFilter filter) {
	Assert.isNotNull(filter);
	if (filters != null) {
		
		for (Iterator i = filters.iterator(); i.hasNext();) {
			Object o = i.next();
			if (o == filter) {
				i.remove();
				refresh();
				if (filters.size() == 0)
					filters = null;
				return;
			}