|
|
|
|
|
|
Re: How to handle NatTable? [message #667748 is a reply to message #667241] |
Sun, 01 May 2011 23:53   |
Eclipse User |
|
|
|
Hi Nicolas,
Thank you very much for the useful information.
I've managed to make the Double Click work too. I just changed the AbstractSWTBot's original notify(SWT.Selection, createSelectionEvent(SWT.BUTTON1)); to notify(SWT.MouseDown, createMouseEvent(x, y, 1, SWT.NONE, 1));
Now it is:
public void doubleClick(final int rowPosition, final int columnPosition) {
assertIsLegalCell(rowPosition, columnPosition);
asyncExec(new VoidResult() {
public void run() {
Rectangle cellBounds = widget.getBoundsByPosition(columnPosition, rowPosition);
doubleClickXY(cellBounds.x + (cellBounds.width / 2), cellBounds.y + (cellBounds.height / 2));
}
});
}
protected void doubleClickXY(int x, int y) {
log.debug(MessageFormat.format("Double-clicking on {0}", widget)); //$NON-NLS-1$
notify(SWT.MouseEnter);
notify(SWT.MouseMove);
notify(SWT.Activate);
notify(SWT.FocusIn);
notify(SWT.MouseDown, createMouseEvent(x, y, 1, SWT.NONE, 1));
notify(SWT.MouseUp, createMouseEvent(x, y, 1, SWT.BUTTON1, 1));
notify(SWT.MouseDown, createMouseEvent(x, y, 1, SWT.NONE, 1));
notify(SWT.MouseDoubleClick, createMouseEvent(x, y, 1, SWT.BUTTON1, 2));
notify(SWT.MouseHover);
notify(SWT.MouseMove);
notify(SWT.MouseExit);
notify(SWT.Deactivate);
notify(SWT.FocusOut);
log.debug(MessageFormat.format("Double-clicked on {0}", widget)); //$NON-NLS-1$
}
I'll try the context menu. Thanks again!
|
|
|
|
|
|
|
Re: How to handle NatTable? [message #715112 is a reply to message #668074] |
Fri, 12 August 2011 08:03  |
Eclipse User |
|
|
|
Hi,
We are trying to do automation testing our swing and AWT UI through sikuli,can it be used for commercial purposes or are there any licensing issues with it.
Please let me know.
Regards,
Venkata Vineel
|
|
|
Powered by
FUDForum. Page generated in 0.08970 seconds