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
unmapElement(element, item);
}
/**
 * Returns the widget in this viewer's control which 
 * represents the given element if it is the viewer's input.
 * <p>
 * This method is internal to the framework; subclassers should not call
 * this method.
 * </p>
 *
 * @param the element
 * @return the corresponding widget, or <code>null</code> if none
 */
protected abstract Widget doFindInputItem(Object element);
/**
 * Returns the widget in this viewer's control which represent the given element.
 * This method searchs all the children of the input element.
 * <p>
 * This method is internal to the framework; subclassers should not call
 * this method.
 * </p>
 *
 * @param the element
 * @return the corresponding widget, or <code>null</code> if none
 */
protected abstract Widget doFindItem(Object element);
/**
 * Copies the attributes of the given element into the given SWT item.
 * The element map is updated according to the value of <code>fullMap</code>.
 * If <code>fullMap</code> is <code>true</code> then the current mapping