57 |
return FantasiaPrefs.preferences(); |
return FantasiaPrefs.preferences(); |
58 |
} |
} |
59 |
|
|
|
private static boolean |
|
|
verifyConnection() { |
|
|
if(!CC.getClient().isConnected()) { |
|
|
HF.showErrorMessage(i18n.getError("A4n.notConnected")); |
|
|
return false; |
|
|
} |
|
|
|
|
|
return true; |
|
|
} |
|
|
|
|
60 |
public final Action samplerInfo = new SamplerInfo(); |
public final Action samplerInfo = new SamplerInfo(); |
61 |
|
|
62 |
private static class SamplerInfo extends AbstractAction { |
private static class SamplerInfo extends AbstractAction { |
85 |
|
|
86 |
public void |
public void |
87 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
88 |
((MainFrame)CC.getMainFrame()).runScript(); |
if(!((MainFrame)CC.getMainFrame()).runScript()) return; |
89 |
|
|
90 |
if(preferences().getBoolProperty(SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT)) { |
if(preferences().getBoolProperty(SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT)) { |
91 |
windowLSConsole.actionPerformed(null); |
windowLSConsole.actionPerformed(null); |
106 |
|
|
107 |
public void |
public void |
108 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
109 |
if(!verifyConnection()) return; |
if(!CC.verifyConnection()) return; |
110 |
new JSNewMidiDeviceDlg(CC.getMainFrame()).setVisible(true); |
new JSNewMidiDeviceDlg(CC.getMainFrame()).setVisible(true); |
111 |
} |
} |
112 |
} |
} |
124 |
|
|
125 |
public void |
public void |
126 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
127 |
if(!verifyConnection()) return; |
if(!CC.verifyConnection()) return; |
128 |
new JSNewAudioDeviceDlg(CC.getMainFrame()).setVisible(true); |
new JSNewAudioDeviceDlg(CC.getMainFrame()).setVisible(true); |
129 |
} |
} |
130 |
} |
} |
178 |
|
|
179 |
public void |
public void |
180 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
181 |
|
if(!CC.verifyConnection()) return; |
182 |
|
|
183 |
if(CC.getInstrumentsDbTreeModel() == null) { |
if(CC.getInstrumentsDbTreeModel() == null) { |
184 |
String s = i18n.getMessage("A4n.noInstrumentsDbSupport!"); |
String s = i18n.getMessage("A4n.noInstrumentsDbSupport!"); |
185 |
HF.showErrorMessage(s, CC.getMainFrame()); |
HF.showErrorMessage(s, CC.getMainFrame()); |