Project: SWT
Bug 279313 TreeItem.removeAll incorrectly implemented on Mac platform
Reported: 2009-06-05 16:22:23 | Status: verified fixed

Build ID: I20090515-1143 Steps To Reproduce: 1.Construct a tree 2.Add a TreeItem to the tree 3.Call removeAll on the TreeItem -- instead of removing the child items from that TreeItem, it removes all items from the Tree. More information: The implementation for TreeItem.removeAll currently looks like this: public void removeAll () { checkWidget (); parent.setItemCount (0); } It should be this: public void removeAll () { checkWidget (); parent.setItemCount (this, 0); }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java