Bug 269264 [Viewers] TableViewer.remove doesn't post selection change
When using org.eclipse.jface.viewers.TableViewer.remove(Object[]) and the remove includes the current selection, the item is deleted and the selection goes away. But no selection change event is fired (where at the very least it should be an empty IStructuredSelection). PW
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
int[] selectionIndices = doGetSelectionIndices();
		for (int i = 0; i < selectionIndices.length; i++) {
			int index = selectionIndices[i];
			Item item = doGetItem(index);
			Object data = item.getData();
			if (data != null) {
				if ((elementsToBeRemoved != null && elementsToBeRemoved
						.containsKey(data))
						|| equals(elementToBeRemoved, data)) {
					table.deselect(index);
				}
			}
		}
		super.remove(elements);
	}
	
	protected Widget doFindItem(Object element) {
		IContentProvider contentProvider = getContentProvider();
		if (contentProvider instanceof IIndexableLazyContentProvider) {
			IIndexableLazyContentProvider indexable = (IIndexableLazyContentProvider) contentProvider;
			int idx = indexable.findElement(element);
			if (idx != -1) {
				return doGetItem(idx);
			}
			return null;
		}
		return super.doFindItem(element);
	}
}