Migrate to Pshell 2.0

This commit is contained in:
alexgobbo
2025-08-08 10:51:04 +02:00
parent 578428d444
commit a8f0508daa
31 changed files with 493 additions and 486 deletions

View File

@@ -1,9 +1,9 @@
import ch.psi.pshell.device.Device;
import ch.psi.pshell.ui.App;
import ch.psi.pshell.app.App;
import ch.psi.pshell.swing.DevicePanel;
import ch.psi.pshell.core.Context;
import ch.psi.utils.State;
import ch.psi.pshell.framework.Context;
import ch.psi.pshell.utils.State;
import java.awt.Color;
import java.io.IOException;
import java.lang.reflect.Method;
@@ -275,7 +275,7 @@ public class SmartMagnetPanel extends DevicePanel {
private void buttonSupressOnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonSupressOnActionPerformed
try {
Context.getInstance().evalLineBackground("smart_magnet.set_supress(True)");
Context.getInterpreter().evalLineBackground("smart_magnet.set_supress(True)");
} catch (Exception ex) {
Logger.getLogger(SmartMagnetPanel.class.getName()).log(Level.SEVERE, null, ex);
}
@@ -283,7 +283,7 @@ public class SmartMagnetPanel extends DevicePanel {
private void buttonSupressOffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonSupressOffActionPerformed
try {
Context.getInstance().evalLineBackground("smart_magnet.set_supress(False)");
Context.getInterpreter().evalLineBackground("smart_magnet.set_supress(False)");
} catch (Exception ex) {
Logger.getLogger(SmartMagnetPanel.class.getName()).log(Level.SEVERE, null, ex);
}