Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to right-click in a column of a table  () 1 Vote
How to right-click in a column of a table [message #544793] Mon, 05 July 2010 14:24 Go to next message
Victor  is currently offline Victor Friend
Messages: 16
Registered: June 2010
Junior Member
Hi all,
I'm having some problems with tables inside editors.
I would like to right-click a whole column, like this image below.

http://www.students.ic.unicamp.br/~ra064940/example4.JPG

I've looked over forums and tried a lot of samples, but I just can't access the context menu of the table.

Someone can help me, please?

Victor

[Updated on: Mon, 05 July 2010 14:30]

Report message to a moderator

Re: How to right-click in a column of a table [message #544834 is a reply to message #544793] Mon, 05 July 2010 16:20 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 7/5/10 7:24 AM, Victor wrote:
> Hi All,
> I'm having some problems with tables inside editors.
> I would like to right-click a whole column, like this image below.
>
>
>
> I've looked over forums and tried a lot of samples, but I just can't
> access the context menu of the table.
>
> Someone can Help me, please?
>
> Victor

Are you looking for the context menu of a table or a table column ?

All widgets support a #contextMenu() method to access a menu item. To
access a table column you need to use:

bot.table().header("column heading").contextMenu("selection").click();

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot
Re: How to right-click in a column of a table [message #544846 is a reply to message #544834] Mon, 05 July 2010 17:13 Go to previous messageGo to next message
Victor  is currently offline Victor Friend
Messages: 16
Registered: June 2010
Junior Member
Hi Ketan,
First, thanks for the reply.

I'm trying to access the context menu of the column values.
So I did:

bot.table().header("values").contextMenu("Clone").click();

I recieve an WidgetNotFounfException when I execute the contextMenu() method. If I execute:

bot.table().header("values").toString();

It works fine.
So, the problem is the contextMenu().

Is there any way to access the right-click menu, without using the contextMenu() method? Or how can I use the contextMenu() in the right way?

Thanks again.


Victor
Re: How to right-click in a column of a table [message #650236 is a reply to message #544793] Sun, 23 January 2011 15:21 Go to previous message
Kevin Yu is currently offline Kevin YuFriend
Messages: 2
Registered: January 2011
Junior Member
I want to know how to resolve this problem too.
Thank you~
Previous Topic:how to get screenshots, logger messages into results/${class-name}.html file?
Next Topic:SWTBotGefConnectionEditPart Move
Goto Forum:
  


Current Time: Thu Mar 28 18:41:22 GMT 2024

Powered by FUDForum. Page generated in 0.05898 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top