It is nothing very interesting - actually just a clumsy work around because I didn't understand how the context menu worked. I just got the widget and sent a mouseDown, mouseUp event to the Gui thread.
-----Original Message----- From: Ketan Padegaonkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 3:06 PM To: swtbot-users@lists.sourceforge.net Subject: Re: [SWTBot-users] can right_click be performed in SWTbot?? On 08-Oct-08, at 12:17 AM, Bob Mattei wrote: > I've written a method to implement the right click. I'd like to hear more about this. How is it different from the existing method ? Is it something that SWTBot does not allow you to do ? > But I would rather do it the correct way thru Swtbot. It's not > clear to me how to use the context menu if I have a tree item that > has a context menu what text am I specifying in > treeItem.contextMenu(text)? You specify the text on the menu item you wish to click on: tree.select("Jon, Doe").contextMenu("Delete user"); -- Ketan ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ SWTBot-users mailing list SWTBot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swtbot-users http://swtbot.org/ - a functional testing tool for SWT/Eclipse ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ SWTBot-users mailing list SWTBot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swtbot-users http://swtbot.org/ - a functional testing tool for SWT/Eclipse