Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » disable editing and context menu in nattable
disable editing and context menu in nattable [message #1170578] Mon, 04 November 2013 18:53 Go to next message
Testr t is currently offline Testr tFriend
Messages: 93
Registered: April 2013
Member
I am using Nattable in a eclipse plugin view. The grid has a context menu that provides some custom options to the user. Now i need a way to disable any editing in the grid and also disable context menu conditionally(based on a flag that indicates something is happening and should not allow editing or any operations on the grid). Is there an API available with Nattable to do this?
Re: disable editing and context menu in nattable [message #1170589 is a reply to message #1170578] Mon, 04 November 2013 19:05 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2702
Registered: July 2012
Senior Member
NatTable cells become editable if the editable rule says so. So you need to implement an IEditableRule that respects your states.

Context menus become active via IMouseAction. You could implement and register a custom action that only opens the menu if your state allows it.
Previous Topic:clear data in colheader layer
Next Topic:Styling based on combination of labels
Goto Forum:
  


Current Time: Sat Aug 17 20:38:21 GMT 2019

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

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

Back to the top