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