Changeset 30462 in osm for applications/editors/josm
- Timestamp:
- 2014-05-20T08:27:47+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java
r30457 r30462 11 11 import java.io.File; 12 12 import java.io.IOException; 13 import java.nio.file.Files; 14 import java.nio.file.Path; 15 import java.nio.file.Paths; 13 16 import java.text.DecimalFormat; 14 17 import java.util.ArrayList; … … 289 292 System.err.println("TMP: "+fileTmp.getAbsolutePath()); 290 293 } 291 if (! file.renameTo(fileTmp)) 292 throw new IOException(tr("Could not rename file {0} to {1}!", file, fileTmp)); 293 294 try { 295 Files.move(file.toPath(), fileTmp.toPath()); 296 } catch (IOException e) { 297 Main.error(tr("Could not rename file {0} to {1}!", file, fileTmp)); 298 throw e; 299 } 294 300 fileFrom = fileTmp; 295 301 fileTo = file;
Note:
See TracChangeset
for help on using the changeset viewer.