diff --git a/plugins/TestingList.form b/plugins/TestingList.form index 091b617..a6f29be 100644 --- a/plugins/TestingList.form +++ b/plugins/TestingList.form @@ -63,7 +63,7 @@ - + diff --git a/plugins/TestingList.java b/plugins/TestingList.java index c09fc3a..801bd72 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -106,7 +106,7 @@ public class TestingList extends Panel { jTable1 = new javax.swing.JTable(); deviceStatePanel1 = new ch.psi.pshell.swing.DeviceStatePanel(); - jButton1.setText("jButton1"); + jButton1.setText("Test PS"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); @@ -168,7 +168,22 @@ public class TestingList extends Panel { }// //GEN-END:initComponents private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed - // TODO add your handling code here: + try { + boolean var1 = true; + int var2 = 2;// (Integer)spinner.getValue(); + int result; + + HashMap args = new HashMap(); + args.put("relative", var1); + args.put("steps", var2); + run("power-supply", args); + + + //evalAsync("run('args', locals = {'relative':" + (var1 ? "True" :"False") + ", 'steps':" + var2 + "})"); + + } catch (Exception ex) { + SwingUtils.showException(this, ex); + } }//GEN-LAST:event_jButton1ActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables