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

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

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

revision 1203 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 1204 by iliev, Thu May 24 21:43:45 2007 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-2006 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 694  public class A4n { Line 694  public class A4n {
694                          frm.removeChannelsPane(chnPane);                          frm.removeChannelsPane(chnPane);
695                  }                  }
696          }          }
697            
698    // WINDOW
699            public final static WindowInstrumentsDb windowInstrumentsDb  = new WindowInstrumentsDb();
700            
701            private static class WindowInstrumentsDb extends AbstractAction {
702                    InstrumentsDbFrame instrumentsDbFrame = null;
703                    
704                    WindowInstrumentsDb() {
705                            super(i18n.getMenuLabel("window.instrumentsDb"));
706                            putValue(SHORT_DESCRIPTION, i18n.getMenuLabel("window.instrumentsDb.tt"));
707                            putValue(Action.SMALL_ICON, Res.iconDb32);
708                    }
709                    
710                    public void
711                    actionPerformed(ActionEvent e) {
712                            if(CC.getInstrumentsDbTreeModel() == null) {
713                                    String s = i18n.getMessage("A4n.noInstrumentsDbSupport!");
714                                    HF.showErrorMessage(s, CC.getMainFrame());
715                                    return;
716                            }
717                            
718                            if(instrumentsDbFrame != null && instrumentsDbFrame.isVisible()) {
719                                    instrumentsDbFrame.toFront();
720                                    return;
721                            }
722                            
723                            instrumentsDbFrame = new InstrumentsDbFrame();
724                            instrumentsDbFrame.setVisible(true);
725                    }
726            }
727            
728  // HELP  // HELP
729          public final static HelpAbout helpAbout = new HelpAbout();          public final static HelpAbout helpAbout = new HelpAbout();
730                    

Legend:
Removed from v.1203  
changed lines
  Added in v.1204

  ViewVC Help
Powered by ViewVC