Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332117 - Double Click API is not working
Summary: Double Click API is not working
Status: RESOLVED FIXED
Alias: None
Product: SWTBot
Classification: Technology
Component: GEFBot (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 06:28 EST by Anuj Mehta CLA
Modified: 2010-12-09 11:22 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.