@Override public void actionPerformed(ActionEvent e) { try { String clipboardContent = GuiUtils.getPastedText(); if(clipboardContent == null) { return; } String[] clipboardLines = clipboardContent.split("\n"); // $NON-NLS-1$ for (String clipboardLine : clipboardLines) { String[] columns = clipboardLine.split("\t"); // $NON-NLS-1$ model.addRow(clazz.newInstance()); for (int i=0; i < columns.length; i++) { model.setValueAt(columns[i], model.getRowCount() - 1, i); } } if(model.getRowCount()>1) { upButton.setEnabled(true); downButton.setEnabled(true); } else { upButton.setEnabled(false); downButton.setEnabled(false); } } catch (Exception err) { log.error("The class type given to TableEditor was not instantiable.", err); } } }
int rowCount = headerTable.getRowCount(); try { String clipboardContent = GuiUtils.getPastedText(); if(clipboardContent == null) { return;
int rowCount = table.getRowCount(); try { String clipboardContent = GuiUtils.getPastedText(); if(clipboardContent == null) { return;
int rowCount = table.getRowCount(); try { String clipboardContent = GuiUtils.getPastedText(); if (clipboardContent != null) { PowerTableModel model = null;
int rowCount = stringTable.getRowCount(); try { String clipboardContent = GuiUtils.getPastedText(); if(clipboardContent == null) { return;