Migrate to Pshell 2.0
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user