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

Diff of /jsampler/trunk/src/org/jsampler/view/classic/OrchestrasPage.java

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

revision 1539 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 1540 by iliev, Mon Dec 3 23:22:02 2007 UTC
# Line 49  import net.sf.juife.NavigationPage; Line 49  import net.sf.juife.NavigationPage;
49  import org.jsampler.CC;  import org.jsampler.CC;
50  import org.jsampler.DefaultOrchestraModel;  import org.jsampler.DefaultOrchestraModel;
51  import org.jsampler.HF;  import org.jsampler.HF;
52  import org.jsampler.Instrument;  import org.jsampler.OrchestraInstrument;
53  import org.jsampler.OrchestraModel;  import org.jsampler.OrchestraModel;
54    
55  import org.jsampler.event.OrchestraAdapter;  import org.jsampler.event.OrchestraAdapter;
# Line 135  public class OrchestrasPage extends Navi Line 135  public class OrchestrasPage extends Navi
135                          mouseClicked(MouseEvent e) {                          mouseClicked(MouseEvent e) {
136                                  if(e.getClickCount() < 2) return;                                  if(e.getClickCount() < 2) return;
137                                                                    
138                                  Instrument instr = instrumentTable.getSelectedInstrument();                                  OrchestraInstrument instr = instrumentTable.getSelectedInstrument();
139                                  if(instr == null) return;                                  if(instr == null) return;
140                                  loadInstrument(instr);                                  loadInstrument(instr);
141                          }                          }
# Line 143  public class OrchestrasPage extends Navi Line 143  public class OrchestrasPage extends Navi
143          }          }
144                    
145          private void          private void
146          loadInstrument(Instrument instr) {          loadInstrument(OrchestraInstrument instr) {
147                  JSChannelsPane cp = CC.getMainFrame().getSelectedChannelsPane();                  JSChannelsPane cp = CC.getMainFrame().getSelectedChannelsPane();
148                  JSChannel chn = null;                  JSChannel chn = null;
149                                    
# Line 164  public class OrchestrasPage extends Navi Line 164  public class OrchestrasPage extends Navi
164                          return;                          return;
165                  }                  }
166                                    
167                  chn.getModel().loadBackendInstrument(instr.getPath(), instr.getInstrumentIndex());                  chn.getModel().loadBackendInstrument(instr.getFilePath(), instr.getInstrumentIndex());
168          }          }
169                    
170          /**          /**

Legend:
Removed from v.1539  
changed lines
  Added in v.1540

  ViewVC Help
Powered by ViewVC