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

Diff of /jsampler/trunk/src/org/jsampler/view/SessionViewConfig.java

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

revision 1866 by iliev, Wed Dec 24 17:29:47 2008 UTC revision 1867 by iliev, Mon Mar 16 22:12:32 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-2008 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 79  public class SessionViewConfig { Line 79  public class SessionViewConfig {
79                  ChannelConfig channelConfig = new ChannelConfig();                  ChannelConfig channelConfig = new ChannelConfig();
80                  for(int i = index; i < conf.length; i++) {                  for(int i = index; i < conf.length; i++) {
81                          if(conf[i].startsWith("[")) return channelConfig;                          if(conf[i].startsWith("[")) return channelConfig;
82                          if(conf[i].startsWith("channelsPanel = ")) {                          if(conf[i].startsWith("channelLane = ")) {
83                                  String s = conf[i].substring("channelsPanel = ".length());                                  String s = conf[i].substring("channelLane = ".length());
84                                  if(s.isEmpty()) continue;                                  if(s.isEmpty()) continue;
85                                                                    
86                                  try {                                  try {
87                                          channelConfig.channelsPanel = Integer.parseInt(s) - 1;                                          channelConfig.channelsPanel = Integer.parseInt(s) - 1;
88                                  } catch(Exception x) {                                  } catch(Exception x) {
89                                          CC.getLogger().info("Uknown channels panel: " + s);                                          CC.getLogger().info("Uknown channel lane: " + s);
90                                    }
91                            } else if(conf[i].startsWith("channelsPanel = ")) {
92                                    String s = conf[i].substring("channelsPanel = ".length());
93                                    if(s.isEmpty()) continue;
94    
95                                    try {
96                                            channelConfig.channelsPanel = Integer.parseInt(s) - 1;
97                                    } catch(Exception x) {
98                                            CC.getLogger().info("Uknown channel lane: " + s);
99                                  }                                  }
100                          } else if(conf[i].startsWith("viewType = ")) {                          } else if(conf[i].startsWith("viewType = ")) {
101                                  String s = conf[i].substring("viewType = ".length());                                  String s = conf[i].substring("viewType = ".length());

Legend:
Removed from v.1866  
changed lines
  Added in v.1867

  ViewVC Help
Powered by ViewVC