Class PasteOrMoveSelectionAction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.selection.action.AbstractKeySelectAction
-
- org.eclipse.nebula.widgets.nattable.selection.action.MoveSelectionAction
-
- org.eclipse.nebula.widgets.nattable.copy.action.PasteOrMoveSelectionAction
-
- All Implemented Interfaces:
IKeyAction
public class PasteOrMoveSelectionAction extends MoveSelectionAction
Action implementation that performs aPasteDataCommandif there are values in theInternalCellClipboard, otherwise it performs a selection movement.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description PasteOrMoveSelectionAction(InternalCellClipboard clipboard)Creates the action withSelectionLayer.MoveDirectionEnum.DOWNPasteOrMoveSelectionAction(InternalCellClipboard clipboard, SelectionLayer.MoveDirectionEnum direction)Creates the action with the givenSelectionLayer.MoveDirectionEnum.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(NatTable natTable, org.eclipse.swt.events.KeyEvent event)-
Methods inherited from class org.eclipse.nebula.widgets.nattable.selection.action.AbstractKeySelectAction
getDirection, isControlMask, isShiftMask, setControlMask, setShiftMask
-
-
-
-
Constructor Detail
-
PasteOrMoveSelectionAction
public PasteOrMoveSelectionAction(InternalCellClipboard clipboard)
Creates the action withSelectionLayer.MoveDirectionEnum.DOWN- Parameters:
clipboard- The clipboard that is used to check if a paste operation should be performed.
-
PasteOrMoveSelectionAction
public PasteOrMoveSelectionAction(InternalCellClipboard clipboard, SelectionLayer.MoveDirectionEnum direction)
Creates the action with the givenSelectionLayer.MoveDirectionEnum.- Parameters:
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.
-
-
Method Detail
-
run
public void run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
- Specified by:
runin interfaceIKeyAction- Overrides:
runin classMoveSelectionAction
-
-