Ticket #6255: no-relative-paths.patch
| File no-relative-paths.patch, 1.6 KB (added by , 15 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/OpenFileAction.java
17 17 import java.util.LinkedHashSet; 18 18 import java.util.LinkedList; 19 19 import java.util.List; 20 21 20 import java.util.Set; 21 22 22 import javax.swing.JFileChooser; 23 23 import javax.swing.JOptionPane; 24 24 import javax.swing.SwingUtilities; … … 197 197 getProgressMonitor().setTicksCount(files.size()); 198 198 199 199 if (chosenImporter != null) { 200 // The importer was exp icitely chosen, so use it.200 // The importer was explicitly chosen, so use it. 201 201 List<File> filesNotMatchingWithImporter = new LinkedList<File>(); 202 202 List<File> filesMatchingWithImporter = new LinkedList<File>(); 203 203 for (final File f : files) { … … 261 261 // remove the files which didn't fail to load from the failed list 262 262 failedFiles.removeAll(successfullyOpenedFiles); 263 263 for (File f : successfullyOpenedFiles) { 264 fileHistory.add(f.get Path());264 fileHistory.add(f.getCanonicalPath()); 265 265 } 266 266 for (File f : failedFiles) { 267 failedAll.add(f.get Path());267 failedAll.add(f.getCanonicalPath()); 268 268 } 269 269 } 270 270 }
