222 |
int result = fc.showOpenDialog(this); |
int result = fc.showOpenDialog(this); |
223 |
if(result != JFileChooser.APPROVE_OPTION) return; |
if(result != JFileChooser.APPROVE_OPTION) return; |
224 |
|
|
225 |
String s = toEscapedString(fc.getSelectedFile().getPath()); |
path = fc.getSelectedFile().getAbsolutePath(); |
226 |
cbSource.setSelectedItem(s); |
if(java.io.File.separatorChar == '\\') { |
227 |
|
path.replace('\\', '/'); |
228 |
|
} |
229 |
|
path = toEscapedString(path); |
230 |
|
cbSource.setSelectedItem(path); |
231 |
path = fc.getCurrentDirectory().getAbsolutePath(); |
path = fc.getCurrentDirectory().getAbsolutePath(); |
232 |
preferences().setStringProperty("lastInstrumentLocation", path); |
preferences().setStringProperty("lastInstrumentLocation", path); |
233 |
} |
} |