Search in sources :

Example 1 with MoveToLastRowAction

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

the class RowSelectionUIBindings method configureMoveDownBindings.

@Override
protected void configureMoveDownBindings(UiBindingRegistry uiBindingRegistry, IKeyAction action) {
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE, SWT.ARROW_DOWN), action);
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT, SWT.ARROW_DOWN), action);
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1, SWT.ARROW_DOWN), new MoveToLastRowAction());
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT | SWT.MOD1, SWT.ARROW_DOWN), new MoveToLastRowAction());
}
Also used : KeyEventMatcher(org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher) MoveToLastRowAction(org.eclipse.nebula.widgets.nattable.selection.action.MoveToLastRowAction)

Example 2 with MoveToLastRowAction

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

the class DefaultSelectionBindings method configureMoveDownBindings.

protected void configureMoveDownBindings(UiBindingRegistry uiBindingRegistry, IKeyAction action) {
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE, SWT.ARROW_DOWN), action);
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD2, SWT.ARROW_DOWN), action);
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1, SWT.ARROW_DOWN), new MoveToLastRowAction());
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD2 | SWT.MOD1, SWT.ARROW_DOWN), new MoveToLastRowAction());
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE, SWT.CR), action);
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1, SWT.CR), action);
}
Also used : KeyEventMatcher(org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher) MoveToLastRowAction(org.eclipse.nebula.widgets.nattable.selection.action.MoveToLastRowAction)

Aggregations

MoveToLastRowAction (org.eclipse.nebula.widgets.nattable.selection.action.MoveToLastRowAction)2 KeyEventMatcher (org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher)2