Project: Eclipse_Platform_UI
Bug 159918 [Viewers] TreeViewer.setChildCount(...) should preserve selection
Reported: 2006-10-05 14:09:04 | Status: verified fixed

Since changing the child count of an element in a tree can effectively remove children, the #setChildCount(...) method should preserve selection. This way if a selected item is disposed, the selection change will fire with the new <empty selection>.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java