Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » How to get the context menu of NatTable
How to get the context menu of NatTable [message #1440361] Wed, 08 October 2014 09:14 Go to next message
ju lei is currently offline ju leiFriend
Messages: 5
Registered: September 2014
Location: Beijing
Junior Member
I am a automation tester using SWTBot. Now I need to click a context menu item on context menu of NatTable. In SWTBot, we will get the menu at first, then get the menu item by the context menu. In SWTBot, the context menu will not pop up.

I use the method below:
Menu menu = natTable.getMenu();

But I get a null menu.


Can you tell me how can I get the menu for NatTable?
Re: How to get the context menu of NatTable [message #1440477 is a reply to message #1440361] Wed, 08 October 2014 12:17 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2803
Registered: July 2012
Senior Member
natTable.getMenu() would return the menu that is configured via plugin.xml or application model (which depends on the Eclipse version you are using). NatTable doesn't make use of this.

Techically you need to perform a right click on the specified region (column/row header) and see if you are able to access the resulting menu.

Maybe the article written about SWTBot and NatTable is helpful. At least the examples might be as they are in English while the article is written in German.

https://www.eclipse.org/nattable/documentation.php?page=articles
Previous Topic:Nattable css engine
Next Topic:Issue with spanned cells covered by a dialog
Goto Forum:
  


Current Time: Fri Mar 05 20:47:08 GMT 2021

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

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

Back to the top