diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 1bdcbaa..b39ab31 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -31,6 +31,7 @@ import javax.swing.JPanel; import javax.swing.table.DefaultTableModel; public class TestingList extends Panel { + NetbeansPluginPanel testingList; Task task = new Task() { @Override @@ -42,11 +43,12 @@ public class TestingList extends Panel { @Override protected JPanel create() { - return new NetbeansPluginPanel(); + testingList = new NetbeansPluginPanel(); + return testingList; } //listen to script end of execution and get return value - /* @Override + @Override protected void onExecutedFile(String fileName) { try { switch(fileName){ @@ -55,7 +57,7 @@ public class TestingList extends Panel { if (ret != null) { SwingUtils.showMessage(getComponent(), "", ret.toString() + " - " + ret.getClass().getName()); - //showResult(ret.toString()); + testingList.showResult(ret.toString()); } break; } @@ -63,7 +65,7 @@ public class TestingList extends Panel { catch (Exception ex) { SwingUtils.showException(getComponent(), ex); } - }*/ + } public class NetbeansPluginPanel extends MonitoredPanel { @@ -175,11 +177,10 @@ public class TestingList extends Panel { try { switch(fileName){ case "power-supply": - Object ret = eval("ret"); - if (ret != null) { - - showResult(ret.toString()); - } + Object ret = eval("ret"); + if (ret != null) { + showResult(ret.toString()); + } break; } }