From 9df064035fa5bdda8cebc86ee9106e0608007d6c Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 9 Jun 2015 10:33:23 +0200 Subject: [PATCH] Closedown --- plugins/TestingList.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/TestingList.java b/plugins/TestingList.java index af7b2fe..5dabd86 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -372,15 +372,13 @@ public class TestingList extends Panel { public void loadTests() throws FileNotFoundException, IOException{ Properties prop = new Properties(); - ClassLoader classLoader = getClass().getClassLoader(); - String fileName = classLoader.getResource(".config").getPath(); - fileName = new java.io.File( "." ).getCanonicalPath(); + String fileName = new java.io.File( "." ).getCanonicalPath() + "/script/tests/devices/LS/.config"; this.jTextField1.setText(fileName); - //InputStream is = new FileInputStream(fileName); + InputStream is = new FileInputStream(fileName); - //prop.load(is); + prop.load(is); - //addToTable(prop.getProperty("name"), prop.getProperty("description")); + addToTable(prop.getProperty("name"), prop.getProperty("description")); } public void selectFile(){