@Test public void checkIsExecutableWithoutSelectedCell() { assertThat(handler.isExecutable(gridWidget)) .as("Cell have to be selected") .isFalse(); }
@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); }
SelectionCopy 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); } }
SelectionCopy 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); } SelectionCopy(final GridLayer gridLayer); }
SelectionCopy 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); } SelectionCopy(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); }
SelectionCopy 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); } SelectionCopy(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);  }