Search in sources :

Example 1 with RowSelectionDragMode

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);
}
Also used : IDragMode(org.eclipse.nebula.widgets.nattable.ui.action.IDragMode) RowSelectionDragMode(org.eclipse.nebula.widgets.nattable.selection.action.RowSelectionDragMode)

Aggregations

RowSelectionDragMode (org.eclipse.nebula.widgets.nattable.selection.action.RowSelectionDragMode)1 IDragMode (org.eclipse.nebula.widgets.nattable.ui.action.IDragMode)1