Project: SWT
Bug 268303 Tree#getItem(Point) should not return item if point is on twistie
Reported: 2009-03-12 05:11:17 | Status: resolved fixed

I20090311-1800, cocoa Tree#getItem(Point) should not return an item if the given point is on a twistie (the triangle to show/hide children). Clicking at that location would not select the item. A consequence of this can be seen in the Quick Outline (Ctrl+O) in the Java editor: When you try to expand/collapse an item with the mouse, the dialog is immediately closed and the editor jumps to the element. We call Tree#getItem(Point) in the mouseUp listener in org.eclipse.jdt.internal.ui.text.AbstractInformationControl.createDialogArea(Composite)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSOutlineView.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java