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

Bug 332117

Summary: Double Click API is not working
Product: [Technology] SWTBot Reporter: Anuj Mehta <anuj.mehta>
Component: GEFBotAssignee: Project Inbox <swtbot-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: KetanPadegaonkar, mariot.chauvin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Anuj Mehta CLA 2010-12-08 06:28:33 EST
Build Identifier: I20100608-0911

I used it in the following way :-

SWTBotGefEditPart labelEditPart = gefEditor.getEditPart(<Label Name>).select();
labelEditPart.doubleClick();

But it could not worked for me. That is Double Click Action could not invoke..

Reproducible: Always

Steps to Reproduce:
I used it in the following way :-

SWTBotGefEditPart labelEditPart = gefEditor.getEditPart(<Label Name>).select();
labelEditPart.doubleClick();

But it could not worked for me. That is Double Click Action could not invoke..
Comment 1 Mariot Chauvin CLA 2010-12-09 08:13:51 EST
Well I created a unit test case on logic example and was not able to reproduce.

Did you see that the double click action is launched in a asynchronous manner, which means that you need to wait the UI thread execute the runnable.

However I find while debugging that events sent by the bot were not exactly the same. More precisely the button mask was not the good one for several events the correct one. I have fixed it.

See :

http://git.eclipse.org/c/swtbot/org.eclipse.swtbot.git/commit/?id=881816b374a0efbb58c38bd994cc6244db115689

http://git.eclipse.org/c/swtbot/org.eclipse.swtbot.git/commit/?id=c88a20acb6a11f932d087d90410cda6a850fdf96

Committed and pushed.