public class PasteOrMoveSelectionAction extends MoveSelectionAction
PasteDataCommand if there are
values in the InternalCellClipboard, otherwise it performs a
selection movement.| Constructor and Description |
|---|
PasteOrMoveSelectionAction(InternalCellClipboard clipboard)
Creates the action with
SelectionLayer.MoveDirectionEnum.DOWN |
PasteOrMoveSelectionAction(InternalCellClipboard clipboard,
SelectionLayer.MoveDirectionEnum direction)
Creates the action with the given
SelectionLayer.MoveDirectionEnum. |
| Modifier and Type | Method and Description |
|---|---|
void |
run(NatTable natTable,
org.eclipse.swt.events.KeyEvent event) |
getDirection, isControlMask, isShiftMask, setControlMask, setShiftMaskpublic PasteOrMoveSelectionAction(InternalCellClipboard clipboard)
SelectionLayer.MoveDirectionEnum.DOWNclipboard - The clipboard that is used to check if a paste operation
should be performed.public PasteOrMoveSelectionAction(InternalCellClipboard clipboard, SelectionLayer.MoveDirectionEnum direction)
SelectionLayer.MoveDirectionEnum.clipboard - The clipboard that is used to check if a paste operation
should be performed.direction - The direction to move if no paste operation is performed.public void run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
run in interface IKeyActionrun in class MoveSelectionActionCopyright © 2016. All rights reserved.