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 |
* |
* |
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 |
|
|