49 |
import org.jsampler.JSPrefs; |
import org.jsampler.JSPrefs; |
50 |
|
|
51 |
import static org.jsampler.view.std.StdI18n.i18n; |
import static org.jsampler.view.std.StdI18n.i18n; |
52 |
|
import static org.linuxsampler.lscp.Parser.*; |
53 |
|
|
54 |
|
|
55 |
/** |
/** |
252 |
JFileChooser fc = new JFileChooser(path); |
JFileChooser fc = new JFileChooser(path); |
253 |
int result = fc.showOpenDialog(JSAddOrEditInstrumentDlg.this); |
int result = fc.showOpenDialog(JSAddOrEditInstrumentDlg.this); |
254 |
if(result != JFileChooser.APPROVE_OPTION) return; |
if(result != JFileChooser.APPROVE_OPTION) return; |
255 |
|
|
256 |
cbPath.setSelectedItem(fc.getSelectedFile().getAbsolutePath()); |
String s = toEscapedString(fc.getSelectedFile().getAbsolutePath()); |
257 |
|
cbPath.setSelectedItem(s); |
258 |
path = fc.getCurrentDirectory().getAbsolutePath(); |
path = fc.getCurrentDirectory().getAbsolutePath(); |
259 |
preferences().setStringProperty("lastInstrumentLocation", path); |
preferences().setStringProperty("lastInstrumentLocation", path); |
260 |
} |
} |