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 15:25 Go to next message
Testr t is currently offline Testr tFriend
Messages: 93
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 19:49 Go to previous messageGo to next message
Dirk Fauth is currently online Dirk FauthFriend
Messages: 1434
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 21:13 Go to previous messageGo to next message
Testr t is currently offline Testr tFriend
Messages: 93
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 06:44 Go to previous messageGo to next message
Dirk Fauth is currently online Dirk FauthFriend
Messages: 1434
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 15:00 Go to previous messageGo to next message
Testr t is currently offline Testr tFriend
Messages: 93
Registered: April 2013
Member
Yes.
Re: Context menu option for tree grid [message #1064702 is a reply to message #1064695] Thu, 20 June 2013 15:08 Go to previous message
Dirk Fauth is currently online Dirk FauthFriend
Messages: 1434
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: Mon Dec 22 10:47:57 GMT 2014

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

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