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

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

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

revision 1340 by iliev, Sun Sep 9 17:43:30 2007 UTC revision 1341 by iliev, Mon Sep 10 22:29:09 2007 UTC
# Line 1058  public class Channel { Line 1058  public class Channel {
1058                  }                  }
1059          }          }
1060    
1061            /**
1062             * This task starts an instrument editor for editing the loaded instrument
1063             * on the specified sampler channel.
1064             */
1065            public static class EditInstrument extends EnhancedTask {
1066                    private int chn;
1067                    
1068                    /**
1069                     * Creates new instance of <code>EditInstrument</code>.
1070                     * @param channel The sampler channel number.
1071                     */
1072                    public
1073                    EditInstrument(int channel) {
1074                            setTitle("Channel.EditInstrument_task");
1075                            String s = i18n.getMessage("Channel.EditInstrument.desc");
1076                            setDescription(s);
1077                            
1078                            this.chn = channel;
1079                    }
1080            
1081                    /** The entry point of the task. */
1082                    public void
1083                    run() {
1084                            try { CC.getClient().editInstrument(chn); }
1085                            catch(Exception x) {
1086                                    setErrorMessage(getDescription() + ": " + HF.getErrorMessage(x));
1087                                    CC.getLogger().log(Level.FINE, getErrorMessage(), x);
1088                            }
1089                    }
1090            }
1091    
1092  }  }

Legend:
Removed from v.1340  
changed lines
  Added in v.1341

  ViewVC Help
Powered by ViewVC