Closedown
This commit is contained in:
@@ -11,6 +11,7 @@ import ch.psi.pshell.swing.MotorPanel;
|
||||
import ch.psi.pshell.ui.App;
|
||||
import ch.psi.utils.swing.MonitoredPanel;
|
||||
import ch.psi.pshell.ui.Panel;
|
||||
import ch.psi.utils.State;
|
||||
import ch.psi.utils.swing.SwingUtils;
|
||||
import ch.psi.wsaf.ApplicationStateException;
|
||||
import ch.psi.wsaf.Task;
|
||||
@@ -57,6 +58,22 @@ public class TestingPanel extends Panel {
|
||||
motor = (Motor) TestingPanel.this.getDevice("motor");
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class NetbeansPluginPanel extends MonitoredPanel {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user