From f2e752f82e9b08e5bb41317c41e81d749c4ecc44 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 9 Jun 2015 10:26:19 +0200 Subject: [PATCH] Closedown --- plugins/TestingList.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/TestingList.java b/plugins/TestingList.java index e43534a..5675115 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -336,7 +336,7 @@ public class TestingList extends Panel { return dateFormat.format(date); } - public void loadTests() throws FileNotFoundException, IOException{ + public void loadTestsfail() throws FileNotFoundException, IOException{ Properties prop = new Properties(); FileInputStream fc = null; try{ @@ -345,7 +345,7 @@ public class TestingList extends Panel { ClassLoader classLoader = getClass().getClassLoader(); //File file = new File(classLoader.getResource("../script/tests/devices/LS/.config").getFile()); - fc = new FileInputStream(classLoader.getResource("../script/tests/devices/LS/.config").getFile()) {}; + fc = new FileInputStream(classLoader.getResource("../script/tests/devices/LS/.config").getFile()) ; //fc = new FileInputStream(file); // this.jTextField1.setText(file.toPath().toString()); //prop.load(fc); @@ -370,6 +370,16 @@ public class TestingList extends Panel { } } + public void loadTests() throws FileNotFoundException, IOException{ + Properties prop = new Properties(); + ClassLoader classLoader = getClass().getClassLoader(); + String fileName = classLoader.getResource("../script/tests/devices/LS/.config").getPath(); + InputStream is = new FileInputStream(fileName); + + prop.load(is); + + addToTable(prop.getProperty("name"), prop.getProperty("description")); + } public void selectFile(){ final JFileChooser fc = new JFileChooser();