SelectionCut extends BaseKeyboardOperation { @Override public boolean isExecutable(final GridWidget gridWidget) { final GridData gridModel = gridWidget.getModel(); final GridData.SelectedCell origin = gridModel.getSelectedCellsOrigin(); if (origin == null) { return false; } if (!(gridWidget instanceof GuidedDecisionTableView)) { return false; } return super.isExecutable(gridWidget); } SelectionCut(final GridLayer gridLayer); @Override int getKeyCode(); @Override TriStateBoolean isControlKeyDown(); @Override boolean isExecutable(final GridWidget gridWidget); @Override boolean perform(final GridWidget gridWidget,
                           final boolean isShiftKeyDown,
                           final boolean isControlKeyDown);  }
@Test public void checkIsExecutableWithoutSelectedCell() { assertThat(handler.isExecutable(gridWidget)) .as("Cell have to be selected") .isFalse(); }