Closedown

This commit is contained in:
boccioli_m
2015-06-15 09:18:38 +02:00
parent 236ddf48b4
commit de8b8872a9
2 changed files with 147 additions and 46 deletions

View File

@@ -37,6 +37,8 @@ import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;
import org.apache.commons.io.FilenameUtils;
public class TestingList extends Panel {
NetbeansPluginPanel testingList;
@@ -111,6 +113,62 @@ public class TestingList extends Panel {
}
}
public enum COL {
CHECK (0),
TIME (1),
DEVICENAME (2),
DEVICEDESCR (3),
TESTSUITE (4),
TESTNAME (5),
RESULT (6),
STATUS (7),
ICON (8);
private int value;
private COL(int value) {
this.value = value;
}
public int index(){
return (int) value;
}
};
/*
public enum Column{
PENNY(1) {
@Override
public String color() {
return "copper";
}
}, NICKLE(5) {
@Override
public String color() {
return "bronze";
}
}, DIME(10) {
@Override
public String color() {
return "silver";
}
}, QUARTER(25) {
@Override
public String color() {
return "silver";
}
};
private int value;
public abstract String color();
private Currency(int value) {
this.value = value;
}
}
*/
public class NetbeansPluginPanel extends MonitoredPanel {
Logger logger = Logger.getLogger("TestsLog");
@@ -131,7 +189,7 @@ public class TestingList extends Panel {
private final int COL_RESULT = 6;
private final int COL_STATUS = 7;
private final int COL_ICON = 8;
private void initLogger() {
try {
FileHandler fh;
@@ -459,7 +517,7 @@ public class TestingList extends Panel {
sStatus = "Disabled";
icon = null;
}
jTable1.setValueAt(bSelected, row, COL_CHECK);
jTable1.setValueAt(bSelected, row, COL.CHECK.index());
jTable1.setValueAt(icon, row, COL_ICON);
jTable1.setValueAt(sStatus, row, COL_STATUS);
}