Migrate to Pshell 2.0
This commit is contained in:
@@ -2,9 +2,9 @@ import ch.psi.mxsc.Puck;
|
||||
import ch.psi.mxsc.PuckDetection;
|
||||
import ch.psi.mxsc.PuckState;
|
||||
import ch.psi.mxsc.PuckState.SwitchState;
|
||||
import ch.psi.pshell.core.Context;
|
||||
import ch.psi.pshell.framework.Context;
|
||||
import ch.psi.pshell.swing.DevicePanel;
|
||||
import ch.psi.utils.swing.SwingUtils;
|
||||
import ch.psi.pshell.swing.SwingUtils;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -54,7 +54,7 @@ public class PuckDetectionPanel extends DevicePanel {
|
||||
|
||||
void execute(String statement, boolean showReturn){
|
||||
try {
|
||||
Context.getInstance().evalLineBackgroundAsync(statement).handle((ret, ex) -> {
|
||||
Context.getInterpreter().evalLineBackgroundAsync(statement).handle((ret, ex) -> {
|
||||
if (ex != null){
|
||||
showException((Exception)ex);
|
||||
} else if (showReturn){
|
||||
|
||||
Reference in New Issue
Block a user