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 |
String s = toEscapedString(fc.getSelectedFile().getAbsolutePath()); |
path = fc.getSelectedFile().getAbsolutePath(); |
257 |
cbPath.setSelectedItem(s); |
if(java.io.File.separatorChar == '\\') { |
258 |
|
path.replace('\\', '/'); |
259 |
|
} |
260 |
|
path = toEscapedString(path); |
261 |
|
cbPath.setSelectedItem(path); |
262 |
path = fc.getCurrentDirectory().getAbsolutePath(); |
path = fc.getCurrentDirectory().getAbsolutePath(); |
263 |
preferences().setStringProperty("lastInstrumentLocation", path); |
preferences().setStringProperty("lastInstrumentLocation", path); |
264 |
} |
} |