Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » About double click of tableItem
About double click of tableItem [message #491669] Thu, 15 October 2009 08:40 Go to next message
Jie Xiao is currently offline Jie Xiao
Messages: 11
Registered: July 2009
Junior Member
Can we use the double click of a table item?
I try to overrite the method clickXY() in class SWTBotTableItem. But how are the events of the notifyTable? I try to in the following code, but it doesn't work.
Can anyone help me? Thanks very much!

notifyTable(SWT.MouseEnter);
notifyTable(SWT.MouseMove);
notifyTable(SWT.Activate);
notifyTable(SWT.FocusIn);
notifyTable(SWT.MouseDown, createMouseEvent(x, y, 1, SWT.BUTTON1, 1));
notifyTable(SWT.MouseUp);
notifyTable(SWT.Selection, createEvent());
notifyTable(SWT.MouseDoubleClick);
notifyTable(SWT.MouseHover);
notifyTable(SWT.MouseMove);
notifyTable(SWT.MouseExit);
notifyTable(SWT.Deactivate);
notifyTable(SWT.FocusOut);
Re: About double click of tableItem [message #540096 is a reply to message #491669] Mon, 14 June 2010 17:19 Go to previous messageGo to next message
gregor  is currently offline gregor
Messages: 8
Registered: May 2010
Junior Member
did you found a solution?

i try: BOT.tableWithLabel("Kunde suchen").getTableItem(0).select().click().click()

but it didn't work, strange Very Happy

greetings
gregor
Re: About double click of tableItem [message #540261 is a reply to message #540096] Tue, 15 June 2010 09:36 Go to previous messageGo to next message
Jie Xiao is currently offline Jie Xiao
Messages: 11
Registered: July 2009
Junior Member
Hallo, I have sloved this problem, just overrite the function of doubleclick() of table item, fast the same with SWTBotTreeItem.doubleClick() .
It works well in my test cases Smile

https://bugs.eclipse.org/bugs/show_bug.cgi?id=259908
Re: About double click of tableItem [message #540463 is a reply to message #540261] Wed, 16 June 2010 05:00 Go to previous messageGo to next message
gregor  is currently offline gregor
Messages: 8
Registered: May 2010
Junior Member
thx, but i didn't find the correct comment
which comment-number you mean where i should find the patch or changes?

gregor
Re: About double click of tableItem [message #540465 is a reply to message #540463] Wed, 16 June 2010 05:17 Go to previous messageGo to next message
Jie Xiao is currently offline Jie Xiao
Messages: 11
Registered: July 2009
Junior Member
You can open the code of TreeItem.doubleclick(), and just use it:)
Re: About double click of tableItem [message #540586 is a reply to message #540465] Wed, 16 June 2010 11:12 Go to previous message
gregor  is currently offline gregor
Messages: 8
Registered: May 2010
Junior Member
which code?

can you please explain in detail how to make a double click on a row in a table.

thank you
gregor
Previous Topic:How to insert text into a text editor tab of a multipage editor?
Next Topic:expand section with swtbot
Goto Forum:
  


Current Time: Mon Jul 28 08:33:10 EDT 2014

Powered by FUDForum. Page generated in 0.02460 seconds