This commit is contained in:
gac-x11ma
2025-09-18 13:55:56 +02:00
parent 0f8956cafe
commit d26d91d508
12 changed files with 96 additions and 76 deletions

View File

@@ -2,7 +2,7 @@
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.sequencer.Sequencer;
import ch.psi.pshell.utils.State;
import ch.psi.pshell.swing.SwingUtils;
import java.awt.Component;
@@ -267,7 +267,7 @@ public class XPEEM_Settings extends Panel {
private void buttonRunSelectedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonRunSelectedActionPerformed
try {
Context.getInterpreter().startExecution(CommandSource.plugin, null, null,null, false);
Context.getSequencer().startExecution(CommandSource.plugin, null, null,null, false);
new Thread(()->{
try{
if (checkSetting1.isSelected()==true){
@@ -287,8 +287,8 @@ public class XPEEM_Settings extends Panel {
getLogger().log(Level.WARNING, null, ex);
} finally{
try {
Context.getInterpreter().endExecution();
} catch (Interpreter.InterpreterStateException ex) {
Context.getSequencer().endExecution();
} catch (Sequencer.StateException ex) {
getLogger().log(Level.SEVERE, null, ex);
}
}