public void actionPerformed(ActionEvent e) { int ix = table.getSelectedRow(); if (ix == -1) return; ix = table.convertRowIndexToModel(ix); LoadTestAssertion assertion = loadTest.getAssertionAt(ix); if (UISupport.confirm("Remove assertion [" + assertion.getName() + "]", "Remove Assertion")) { loadTest.removeAssertion(assertion); } }
public Object getValueAt(int rowIndex, int columnIndex) { LoadTestAssertion assertion = loadTest.getAssertionAt(rowIndex); switch (columnIndex) { case 0: return assertion.getIcon(); case 1: return assertion.getName(); case 2: return assertion.getTargetStep(); case 3: return assertion.getDescription(); } return null; }