Search in sources :

Example 1 with SelectRowAction

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

the class RowOnlySelectionBindings method configureBodyMouseClickBindings.

@Override
protected void configureBodyMouseClickBindings(UiBindingRegistry uiBindingRegistry) {
    IMouseAction action = new SelectRowAction();
    uiBindingRegistry.registerFirstMouseDownBinding(MouseEventMatcher.bodyLeftClick(SWT.NONE), action);
    uiBindingRegistry.registerFirstMouseDownBinding(MouseEventMatcher.bodyLeftClick(SWT.MOD2), action);
    uiBindingRegistry.registerFirstMouseDownBinding(MouseEventMatcher.bodyLeftClick(SWT.MOD1), action);
    uiBindingRegistry.registerFirstMouseDownBinding(MouseEventMatcher.bodyLeftClick(SWT.MOD2 | SWT.MOD1), action);
}
Also used : IMouseAction(org.eclipse.nebula.widgets.nattable.ui.action.IMouseAction) SelectRowAction(org.eclipse.nebula.widgets.nattable.selection.action.SelectRowAction)

Aggregations

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