use of org.eclipse.nebula.widgets.nattable.selection.action.RowSelectionDragMode in project nebula.widgets.nattable by eclipse.
the class RowOnlySelectionBindings method configureBodyMouseDragMode.
@Override
protected void configureBodyMouseDragMode(UiBindingRegistry uiBindingRegistry) {
IDragMode dragMode = new RowSelectionDragMode();
uiBindingRegistry.registerFirstMouseDragMode(MouseEventMatcher.bodyLeftClick(SWT.NONE), dragMode);
uiBindingRegistry.registerFirstMouseDragMode(MouseEventMatcher.bodyLeftClick(SWT.MOD2), dragMode);
uiBindingRegistry.registerFirstMouseDragMode(MouseEventMatcher.bodyLeftClick(SWT.MOD1), dragMode);
uiBindingRegistry.registerFirstMouseDragMode(MouseEventMatcher.bodyLeftClick(SWT.MOD2 | SWT.MOD1), dragMode);
}
Aggregations