From ee2acc55f443e18e6f52bae283baf97b462dd1d9 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 9 Jun 2015 11:30:55 +0200 Subject: [PATCH] Closedown --- plugins/TestingList.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 1e39b18..e694fd1 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -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(){