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

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

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

revision 1879 by iliev, Wed Dec 24 17:29:47 2008 UTC revision 1880 by iliev, Sun Mar 29 19:10:49 2009 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 753  public class DefaultSamplerModel impleme Line 753  public class DefaultSamplerModel impleme
753          @Override          @Override
754          public void          public void
755          addChannel(SamplerChannel channel) {          addChannel(SamplerChannel channel) {
756                  DefaultSamplerChannelModel model = new DefaultSamplerChannelModel(channel);                  DefaultSamplerChannelModel model;
757                  channelModels.add(model);                  model = (channel == null) ? null : new DefaultSamplerChannelModel(channel);
758                    if(model != null) channelModels.add(model);
759                  fireSamplerChannelAdded(model);                  fireSamplerChannelAdded(model);
760          }          }
761                    
# Line 1369  public class DefaultSamplerModel impleme Line 1370  public class DefaultSamplerModel impleme
1370                    
1371          private class Handler implements ListListener<MidiInstrumentMap> {          private class Handler implements ListListener<MidiInstrumentMap> {
1372                  /** Invoked when a new map is added to a list. */                  /** Invoked when a new map is added to a list. */
1373                    @Override
1374                  public void                  public void
1375                  entryAdded(ListEvent<MidiInstrumentMap> e) { updateDefaultMap(); }                  entryAdded(ListEvent<MidiInstrumentMap> e) { updateDefaultMap(); }
1376                                    
1377                  /** Invoked when a map is removed from a list. */                  /** Invoked when a map is removed from a list. */
1378                    @Override
1379                  public void                  public void
1380                  entryRemoved(ListEvent<MidiInstrumentMap> e) { updateDefaultMap(); }                  entryRemoved(ListEvent<MidiInstrumentMap> e) { updateDefaultMap(); }
1381                                    

Legend:
Removed from v.1879  
changed lines
  Added in v.1880

  ViewVC Help
Powered by ViewVC