Bug 211360

Summary: Graphics example can't select items from tree-menu
Product: [Eclipse Project] Platform Reporter: Alex Blewitt <alex.blewitt>
Component: SWTAssignee: Kevin Barnes <cocoakevin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: carolynmacleod4, maruojie, steve_northover
Version: 3.4Keywords: contributed
Target Milestone: 3.4 M6   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Patch Silenio_Quarti: iplog+

Description Alex Blewitt CLA 2007-11-28 19:20:02 EST
Running GraphicsExample, I couldn't use the tree on the left to achieve anything different. I could drill down into sections, but from there, not achieve anything interesting.

I discovered that if I clicked 'next' then it would cycle through the animations. I suspect the listener on the tree isn't picking up the click/double click actions (if indeed, that's how it should be used)
Comment 1 Steve Northover CLA 2008-01-25 17:20:32 EST
This WORKSFORME.  Does this happen on Mac OSX-Cocoa?
Comment 2 Alex Blewitt CLA 2008-01-26 15:35:57 EST
Sorry, my bad. I meant MacOSX-Cocoa when I filed it. 
Comment 3 Luma CLA 2008-01-31 19:23:20 EST
Created attachment 88483 [details]
Patch

The reason is tree selection event doesn't carry a TreeItem. The patch fixes it by setting event.item to current selected item.
Comment 4 Steve Northover CLA 2008-02-08 14:19:25 EST
Ping.
Comment 5 Kevin Barnes CLA 2008-02-10 15:24:39 EST
fixed in Table and Tree > 20080210.

Luma thanks for the patch!