Search in sources :

Example 1 with SelectCellAction

use of net.sourceforge.nattable.selection.action.SelectCellAction in project translationstudio8 by heartsome.

the class DefaultSelectionBindings method configureBodyMouseClickBindings.

// *** Mouse bindings ***
protected void configureBodyMouseClickBindings(UiBindingRegistry uiBindingRegistry) {
    IMouseAction action = new SelectCellAction();
    uiBindingRegistry.registerFirstSingleClickBinding(MouseEventMatcher.bodyLeftClick(SWT.NONE), action);
    uiBindingRegistry.registerFirstSingleClickBinding(MouseEventMatcher.bodyLeftClick(SWT.SHIFT), action);
    uiBindingRegistry.registerFirstSingleClickBinding(MouseEventMatcher.bodyLeftClick(SWT.CTRL), action);
    uiBindingRegistry.registerFirstSingleClickBinding(MouseEventMatcher.bodyLeftClick(SWT.SHIFT | SWT.CONTROL), action);
}
Also used : IMouseAction(net.sourceforge.nattable.ui.action.IMouseAction) SelectCellAction(net.sourceforge.nattable.selection.action.SelectCellAction)

Aggregations

SelectCellAction (net.sourceforge.nattable.selection.action.SelectCellAction)1 IMouseAction (net.sourceforge.nattable.ui.action.IMouseAction)1