Search in sources :

Example 1 with SelectCellAction

use of org.eclipse.nebula.widgets.nattable.selection.action.SelectCellAction in project nebula.widgets.nattable by eclipse.

the class DefaultSelectionBindings method configureBodyMouseClickBindings.

// *** Mouse bindings ***
protected void configureBodyMouseClickBindings(UiBindingRegistry uiBindingRegistry) {
    IMouseAction action = new SelectCellAction();
    uiBindingRegistry.registerMouseDownBinding(MouseEventMatcher.bodyLeftClick(SWT.NONE), action);
    uiBindingRegistry.registerMouseDownBinding(MouseEventMatcher.bodyLeftClick(SWT.MOD2), action);
    uiBindingRegistry.registerMouseDownBinding(MouseEventMatcher.bodyLeftClick(SWT.MOD1), action);
    uiBindingRegistry.registerMouseDownBinding(MouseEventMatcher.bodyLeftClick(SWT.MOD2 | SWT.MOD1), action);
}
Also used : IMouseAction(org.eclipse.nebula.widgets.nattable.ui.action.IMouseAction) SelectCellAction(org.eclipse.nebula.widgets.nattable.selection.action.SelectCellAction)

Aggregations

SelectCellAction (org.eclipse.nebula.widgets.nattable.selection.action.SelectCellAction)1 IMouseAction (org.eclipse.nebula.widgets.nattable.ui.action.IMouseAction)1