Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » How to make row header cells editable?
How to make row header cells editable? [message #1771724] Tue, 29 August 2017 22:05 Go to next message
Louis Detweiler is currently offline Louis DetweilerFriend
Messages: 57
Registered: August 2017
Member
Hey all,

This may be a very simple question, but I have looked all over the forum and the tutorials and can't quite figure it out. I would like to make the row header cells editable upon double click.

Thanks
Re: How to make row header cells editable? [message #1771726 is a reply to message #1771724] Tue, 29 August 2017 23:06 Go to previous message
Louis Detweiler is currently offline Louis DetweilerFriend
Messages: 57
Registered: August 2017
Member
Spoke too soon. It was simple. I actually decided to implement it with a right click. I simply created this class:

  public static class RowHeaderEditBindings extends AbstractUiBindingConfiguration {
    @Override
    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
      uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(SWT.NONE,
          GridRegion.ROW_HEADER, MouseEventMatcher.RIGHT_BUTTON), new MouseEditAction());
    }
  }


And then called

natTable.addConfiguration(new RowHeaderEditBindings());


Before natTable.configure();
Previous Topic:Deselecting the cell after selection does not edit the cell
Next Topic:Help with validation error handlers
Goto Forum:
  


Current Time: Fri Nov 16 22:08:26 GMT 2018

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

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

Back to the top