Update scripts and plugins to 2.0

This commit is contained in:
2025-08-04 12:38:24 +02:00
parent b45d3b4202
commit b631d4c589
44 changed files with 347 additions and 350 deletions

View File

@@ -1,9 +1,10 @@
import ch.psi.pshell.core.CommandSource;
import ch.psi.pshell.core.Context;
import ch.psi.pshell.ui.Panel;
import ch.psi.utils.State;
import ch.psi.utils.swing.SwingUtils;
import ch.psi.pshell.framework.Context;
import ch.psi.pshell.framework.Panel;
import ch.psi.pshell.sequencer.CommandSource;
import ch.psi.pshell.sequencer.Interpreter;
import ch.psi.pshell.utils.State;
import ch.psi.pshell.swing.SwingUtils;
import java.awt.Component;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -266,7 +267,7 @@ public class XPEEM_Settings extends Panel {
private void buttonRunSelectedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonRunSelectedActionPerformed
try {
getContext().startExecution(CommandSource.plugin, null, null,null, false);
Context.getInterpreter().startExecution(CommandSource.plugin, null, null,null, false);
new Thread(()->{
try{
if (checkSetting1.isSelected()==true){
@@ -286,8 +287,8 @@ public class XPEEM_Settings extends Panel {
getLogger().log(Level.WARNING, null, ex);
} finally{
try {
getContext().endExecution();
} catch (Context.ContextStateException ex) {
Context.getInterpreter().endExecution();
} catch (Interpreter.InterpreterStateException ex) {
getLogger().log(Level.SEVERE, null, ex);
}
}