Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » How to bind single and double clicks on one cell(single click to use standart TextCellEditor editor, double click to another one)
How to bind single and double clicks on one cell [message #994445] Thu, 27 December 2012 10:32 Go to next message
Mikhail Niedre is currently offline Mikhail Niedre
Messages: 2
Registered: December 2012
Junior Member
my idea was extending XXXConfiguration

public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {

    // doubleClick - open the Dialog Editor
    uiBindingRegistry.registerFirstDoubleClickBinding(
        new BodyCellEditorMouseEventMatcher(ReachTextCellEditor.class),
        new MouseEditAction());

    uiBindingRegistry.registerFirstSingleClickBinding(
        new BodyCellEditorMouseEventMatcher(TextCellEditor.class),
        new MouseEditAction());
}


but it is haven't works because working only single click.
Re: How to bind single and double clicks on one cell [message #996570 is a reply to message #994445] Wed, 02 January 2013 11:58 Go to previous message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1286
Registered: July 2012
Senior Member
Hi,

I'm not sure about this and I'm currently on vacation, so I won't be able to investigate on this deeper right now. Maybe it is really a bug because the single click gets always processed, and as an editor is opened, the double click doesn't get the possibility to react. There is already a bug for such event handling. I will check on this when I'm back.

Greez,
Dirk
Previous Topic:Complex Table Structure using NatTable
Next Topic:Is it possible to set the Cell value, independantly of the DataProvider?
Goto Forum:
  


Current Time: Wed Sep 17 17:41:30 GMT 2014

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

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