diff --git a/plugins/EditTestingList.java b/plugins/EditTestingList.java index fea4093..f7c8bcd 100644 --- a/plugins/EditTestingList.java +++ b/plugins/EditTestingList.java @@ -1,4 +1,4 @@ -/* + /* * Copyright (c) 2015 Paul Scherrer Institute. All rights reserved. */ diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 395726f..1345539 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -52,6 +52,8 @@ import static org.python.bouncycastle.util.Arrays.append; */ public class TestingList extends Panel { + TableModel fullTable; //all tests are in this table model + TableModel partialTable; //only tests selected are in this table model Task task = new Task() { @Override protected Object execute() throws Exception { @@ -549,7 +551,16 @@ public class TestingList extends Panel { private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed try { - openListEditor(); + //openListEditor(); + if(jButton1.getText() == "+"){ + showDeselectedTests(true); + jButton1.setText("-"); + } + else{ + showDeselectedTests(false); + jButton1.setText("+"); + } + } catch (Exception ex) { SwingUtils.showException(null, ex); } @@ -573,6 +584,25 @@ public class TestingList extends Panel { // End of variables declaration//GEN-END:variables // + private void showDeselectedTests(boolean show){ + + + jTable1.removeAll(); + if(show){ + buildTable(); + } + else{ + DefaultTableModel modelAll = (DefaultTableModel) jTable1.getModel(); + DefaultTableModel modelOnlySelected = modelAll; + int rows = modelOnlySelected.getRowCount(); + for(int row=0 ; row