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

Diff of /jsampler/trunk/src/org/jsampler/task/RemoveChannel.java

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

revision 910 by iliev, Thu Mar 16 18:08:34 2006 UTC revision 911 by iliev, Mon Aug 7 18:25:58 2006 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 Grigor Kirilov Iliev   *   Copyright (C) 2005, 2006 Grigor Kirilov Iliev
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 31  import static org.jsampler.JSI18n.i18n; Line 31  import static org.jsampler.JSI18n.i18n;
31    
32    
33  /**  /**
34   *   * This task removes the specified sampler channel.
35   * @author Grigor Iliev   * @author Grigor Iliev
36   */   */
37  public class RemoveChannel extends EnhancedTask {  public class RemoveChannel extends EnhancedTask {
38          private int channel;          private int channel;
39                    
40            /**
41             * Creates new instance of <code>RemoveChannel</code>.
42             * @param channel The numerical ID of the channel to remove.
43             */
44          public          public
45          RemoveChannel(int channel) {          RemoveChannel(int channel) {
46                  setTitle("RemoveChannel_task");                  setTitle("RemoveChannel_task");
47                  setDescription(i18n.getMessage("RemoveChannel.description"));                  setDescription(i18n.getMessage("RemoveChannel.description", channel));
48                                    
49                  this.channel = channel;                  this.channel = channel;
50          }          }
51                    
52            /** The entry point of the task. */
53          public void          public void
54          run() {          run() {
55                  try { CC.getClient().removeSamplerChannel(channel); }                  try { CC.getClient().removeSamplerChannel(channel); }

Legend:
Removed from v.910  
changed lines
  Added in v.911

  ViewVC Help
Powered by ViewVC