Community
Participate
Working Groups
Currently, Tree.getItem(Point) only returns the item, if it is inside the item's bounding box - unless SWT.FULL_SECTION is specified (which we can't use because of bug #438479). For an own TreeDropTargetEffect we need Tree.getItem(Point) to only use the y-coordinate. Suggestion: introduce an overloaded Tree.getItem(Point, boolean) that only depending on the second parameter checks the x-coordinate. Make the existing Tree.getItem(Point) path to the new Tree.getItem(Point, boolean) using the SWT.FULL_SECTION check.
We currently have to iterate over all visible tree items calculating their bounds - which, as you can imagine, is VERY slow.