Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Context menu option for tree grid
Context menu option for tree grid [message #1064515] Wed, 19 June 2013 11:25 Go to next message
Testr t is currently offline Testr t
Messages: 91
Registered: April 2013
Member
Hi,

Is there an example that I can look into to add context menu option to the Nattable tree grid?

I want to expose some custom functionality in addition to print, find, export options that I want to show context menu options.
Re: Context menu option for tree grid [message #1064545 is a reply to message #1064515] Wed, 19 June 2013 15:49 Go to previous messageGo to next message
Dirk Fauth is currently online Dirk Fauth
Messages: 1213
Registered: July 2012
Senior Member
Where should the context menu be located? In the headers or in the body? Usually you can have a look at any example that adds a context menu to the header and transform it the way you want.
Re: Context menu option for tree grid [message #1064557 is a reply to message #1064545] Wed, 19 June 2013 17:13 Go to previous messageGo to next message
Testr t is currently offline Testr t
Messages: 91
Registered: April 2013
Member
Its for the body/cells. I added menus by looking at the DebugMenuConfiguration and it works. I want to add the context menu options like Copy/Paste with custom implementations. Is there a way the context menu that appears when we select text in the cells can be hidden(the menu that provides options like Right to left reading order, copy, paste etc)
Re: Context menu option for tree grid [message #1064587 is a reply to message #1064557] Thu, 20 June 2013 02:44 Go to previous messageGo to next message
Dirk Fauth is currently online Dirk Fauth
Messages: 1213
Registered: July 2012
Senior Member
Do you speak of the context menu in the Text Control on editing?
Re: Context menu option for tree grid [message #1064695 is a reply to message #1064587] Thu, 20 June 2013 11:00 Go to previous messageGo to next message
Testr t is currently offline Testr t
Messages: 91
Registered: April 2013
Member
Yes.
Re: Context menu option for tree grid [message #1064702 is a reply to message #1064695] Thu, 20 June 2013 11:08 Go to previous message
Dirk Fauth is currently online Dirk Fauth
Messages: 1213
Registered: July 2012
Senior Member
Well that is the SWT Text Control context menu and nothing special to NatTable. There was some discussion on that in another forum topic where I added a link.

http://www.eclipse.org/forums/index.php/mv/msg/367988/897768/#msg_897768

Hopefully that helps.
Previous Topic:Not all values displayed
Next Topic:Converting UnderlyingLayer coordinates to GridLayer coordinates?
Goto Forum:
  


Current Time: Fri Jul 25 07:23:24 EDT 2014

Powered by FUDForum. Page generated in 0.01622 seconds