Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353720

Summary: SWTBotTreeItem.doubleClick() not setting mouse button
Product: [Technology] SWTBot Reporter: Lorenzo Bettini <lorenzo.bettini>
Component: SWTBotAssignee: Project Inbox <swtbot-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: mariot.chauvin
Version: 2.0.4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip
none
patch for fixing this bug
mariot.chauvin: iplog+
mylyn/context/zip none

Description Lorenzo Bettini CLA 2011-08-03 05:28:16 EDT
I am using SWTBotMenuItem to post some doubleClick events to a Tree.

The events got posted correctly but without the mouse button which makes impossible to test mouse listeners which check the button pressed.
Comment 1 Lorenzo Bettini CLA 2011-08-03 05:32:38 EDT
Created attachment 200785 [details]
mylyn/context/zip

method doubleClick and the corresponding test
Comment 2 Lorenzo Bettini CLA 2011-08-03 05:43:52 EDT
Created attachment 200788 [details]
patch for fixing this bug
Comment 3 Lorenzo Bettini CLA 2011-08-03 05:43:53 EDT
Created attachment 200789 [details]
mylyn/context/zip
Comment 4 Lorenzo Bettini CLA 2011-08-03 05:44:13 EDT
This is similar to bug 308619 and I borrowed from that bug for the patch attached (there is also a patch for the unit test).
Comment 5 Mariot Chauvin CLA 2011-09-21 08:30:57 EDT
fixed with commit f0ced0fb1faad6fbaa4c606bc3884d37fe863ed6
Comment 6 Mariot Chauvin CLA 2011-09-21 08:31:41 EDT
(In reply to comment #5)
> fixed with commit f0ced0fb1faad6fbaa4c606bc3884d37fe863ed6

Thanks for the patch !
Comment 7 Lorenzo Bettini CLA 2011-09-21 09:15:16 EDT
but I don't see the commit... have you pushed?
Comment 8 Mariot Chauvin CLA 2011-09-21 09:52:16 EDT
(In reply to comment #7)
> but I don't see the commit... have you pushed?

yep I pushed, see http://git.eclipse.org/c/swtbot/org.eclipse.swtbot.git/commit/?id=f0ced0fb1faad6fbaa4c606bc3884d37fe863ed6