/[svn]/jsampler/trunk/src/org/jsampler/MidiInstrumentMap.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/MidiInstrumentMap.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2287 by iliev, Tue Aug 12 16:31:35 2008 UTC revision 2288 by iliev, Wed Nov 23 21:19:44 2011 UTC
# Line 25  package org.jsampler; Line 25  package org.jsampler;
25  import java.util.TreeMap;  import java.util.TreeMap;
26  import java.util.Vector;  import java.util.Vector;
27    
28  import javax.swing.SwingUtilities;  import net.sf.juife.PDUtils;
29    
30  import org.jsampler.event.MidiInstrumentMapEvent;  import org.jsampler.event.MidiInstrumentMapEvent;
31  import org.jsampler.event.MidiInstrumentMapListener;  import org.jsampler.event.MidiInstrumentMapListener;
# Line 290  public class MidiInstrumentMap { Line 290  public class MidiInstrumentMap {
290          fireNameChanged() {          fireNameChanged() {
291                  final MidiInstrumentMapEvent e = new MidiInstrumentMapEvent(this);                  final MidiInstrumentMapEvent e = new MidiInstrumentMapEvent(this);
292                                    
293                  SwingUtilities.invokeLater(new Runnable() {                  PDUtils.runOnUiThread(new Runnable() {
294                          public void                          public void
295                          run() { fireNameChanged(e); }                          run() { fireNameChanged(e); }
296                  });                  });
# Line 312  public class MidiInstrumentMap { Line 312  public class MidiInstrumentMap {
312                  final MidiInstrumentMapEvent e =                  final MidiInstrumentMapEvent e =
313                          new MidiInstrumentMapEvent(this, entry, instrument);                          new MidiInstrumentMapEvent(this, entry, instrument);
314                                    
315                  SwingUtilities.invokeLater(new Runnable() {                  PDUtils.runOnUiThread(new Runnable() {
316                          public void                          public void
317                          run() { fireInstrumentAdded(e); }                          run() { fireInstrumentAdded(e); }
318                  });                  });
# Line 336  public class MidiInstrumentMap { Line 336  public class MidiInstrumentMap {
336                  final MidiInstrumentMapEvent e =                  final MidiInstrumentMapEvent e =
337                          new MidiInstrumentMapEvent(this, entry, instrument);                          new MidiInstrumentMapEvent(this, entry, instrument);
338                                    
339                  SwingUtilities.invokeLater(new Runnable() {                  PDUtils.runOnUiThread(new Runnable() {
340                          public void                          public void
341                          run() { fireInstrumentRemoved(e); }                          run() { fireInstrumentRemoved(e); }
342                  });                  });

Legend:
Removed from v.2287  
changed lines
  Added in v.2288

  ViewVC Help
Powered by ViewVC