Closedown

This commit is contained in:
boccioli_m
2015-06-03 15:03:24 +02:00
parent 7e763a592b
commit 289402f96d

View File

@@ -59,21 +59,21 @@ public class TestingPanel extends Panel {
motorPanel.setDevice(motor);
}
protected void onStateChange(State state, State former) {
if ((state == State.Ready) && (former == State.Busy)) {
if ("test".equals(getController().getRunningScriptName())) {
try{
Object ret = eval("ret");
if (ret != null) {
SwingUtils.showMessage(getComponent(), "", ret.toString() + " - " + ret.getClass().getName());
}
} catch (Exception ex) {
SwingUtils.showException(getComponent(), ex);
}
}
protected void onExecutedFile(String fileName) {
try {
switch(fileName){
case "test":
Object ret = eval("ret");
if (ret != null) {
SwingUtils.showMessage(getComponent(), "", ret.toString() + " - " + ret.getClass().getName());
}
break;
}
}
catch (Exception ex) {
SwingUtils.showException(getComponent(), ex);
}
}
}
public class NetbeansPluginPanel extends MonitoredPanel {