242 |
int result = fc.showOpenDialog(this); |
int result = fc.showOpenDialog(this); |
243 |
if(result != JFileChooser.APPROVE_OPTION) return; |
if(result != JFileChooser.APPROVE_OPTION) return; |
244 |
|
|
245 |
String s = toEscapedString(fc.getSelectedFile().getPath()); |
path = fc.getSelectedFile().getAbsolutePath(); |
246 |
cbSource.setSelectedItem(s); |
if(java.io.File.separatorChar == '\\') { |
247 |
|
path.replace('\\', '/'); |
248 |
|
} |
249 |
|
path = toEscapedString(path); |
250 |
|
cbSource.setSelectedItem(path); |
251 |
path = fc.getCurrentDirectory().getAbsolutePath(); |
path = fc.getCurrentDirectory().getAbsolutePath(); |
252 |
preferences().setStringProperty("lastInstrumentLocation", path); |
preferences().setStringProperty("lastInstrumentLocation", path); |
253 |
} |
} |