public void doPaste() {
    JTable table = editor.getSeriesDataMatrix().myTable;

    int col = table.getSelectedColumn();
    int row = table.getSelectedRow();

    ArrayList<Integer> values = getValuesFromClipboard();

    if (values == null || values.size() == 0) {

      Alert.message(
          App.mainWindow,
          "Paste failed",
          "Paste failed.  Check the data you are pasting is a column list of integers");
      return;
    }

    for (Integer value : values) {
      if (table.isCellEditable(row, col)) {
        table.setValueAt(value, row, col);
      } else {
        log.error("Failed");
        Alert.message(
            App.mainWindow,
            "Paste failed",
            "Paste failed.  Check the data you are pasting is a column list of integers");
        return;
      }

      TableCoords nextCell = ((DecadalModel) table.getModel()).getCoordsOfNextCell(row, col);
      row = nextCell.getRow();
      col = nextCell.getCol();
    }
  }
 @Override
 public void actionPerformed(ActionEvent arg0) {
   Reverse.reverse(editor.getSample());
 }