Closedown

This commit is contained in:
boccioli_m
2015-06-09 11:30:55 +02:00
parent 0c5197e1b0
commit ee2acc55f4

View File

@@ -359,9 +359,9 @@ public class TestingList extends Panel {
public void loadTests() throws FileNotFoundException, IOException{
Properties prop = new Properties();
String fileName = new java.io.File( "." ).getCanonicalPath()+ "\\home\\script\\tests\\devices\\LS\\.config";
this.jTextField1.setText(fileName + "\n");
/* File folder = new File(fileName);
String fileName = new java.io.File( "." ).getCanonicalPath()+ "\\home\\script\\tests\\devices";
this.jTextField1.setText(fileName + "\n");
File folder = new File(fileName);
File[] listOfFiles = folder.listFiles();
for (File listOfFile : listOfFiles) {
@@ -370,13 +370,13 @@ public class TestingList extends Panel {
} else if (listOfFile.isDirectory()) {
this.jTextField1.append("Directory " + listOfFile.getName());
}
}*/
InputStream is = new FileInputStream(fileName);
}
//InputStream is = new FileInputStream(fileName);
prop.load(is);
//prop.load(is);
addToTable(prop.getProperty("name"), prop.getProperty("description"));
this.jTextField1.append(prop.getProperty("name"));
//addToTable(prop.getProperty("name"), prop.getProperty("description"));
//this.jTextField1.append(prop.getProperty("name"));
}
public void selectFile(){