Closedown
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user