Migrate to Pshell 2.0
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import ch.psi.mxsc.Controller;
|
||||
import ch.psi.pshell.core.Context;
|
||||
import ch.psi.pshell.framework.Context;
|
||||
import ch.psi.pshell.swing.DevicePanel;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import javax.swing.border.TitledBorder;
|
||||
@@ -38,7 +38,7 @@ public class WagoPanel extends DevicePanel {
|
||||
|
||||
void execute(String statement){
|
||||
try {
|
||||
Context.getInstance().evalLineBackgroundAsync(statement).handle((ret, ex) -> {
|
||||
Context.getInterpreter().evalLineBackgroundAsync(statement).handle((ret, ex) -> {
|
||||
if (WagoPanel.this.isShowing()){
|
||||
if (ex != null){
|
||||
showException((Exception)ex);
|
||||
|
||||
Reference in New Issue
Block a user