use of org.eclipse.nebula.widgets.nattable.edit.action.DeleteSelectionAction in project nebula.widgets.nattable by eclipse.
the class DefaultFormulaConfiguration method configureUiBindings.
@Override
public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
// ui binding for deleting a cell value on pressing DEL
uiBindingRegistry.registerFirstKeyBinding(new KeyEventMatcher(SWT.DEL), new DeleteSelectionAction());
// ui binding to perform a paste action on pressing CTRL+V
uiBindingRegistry.registerFirstKeyBinding(new KeyEventMatcher(SWT.MOD1, 'v'), new PasteDataAction());
// ui binding to perform paste or selection movement on ENTER
uiBindingRegistry.registerFirstKeyBinding(new KeyEventMatcher(SWT.NONE, SWT.CR), new PasteOrMoveSelectionAction(this.clipboard));
// ui binding to clear the InternalCellClipboard
uiBindingRegistry.registerFirstKeyBinding(new KeyEventMatcher(SWT.NONE, SWT.ESC), new ClearClipboardAction(this.clipboard));
// Mouse drag
// trigger the handle drag operations
// Note: we ensure a FillHandleLayerPainter is set in configureLayer
uiBindingRegistry.registerFirstMouseDragMode(new FillHandleEventMatcher((FillHandleLayerPainter) this.selectionLayer.getLayerPainter()), new FormulaFillHandleDragMode(this.selectionLayer, this.clipboard, this.dataProvider));
}
Aggregations