Changeset 4153 in josm for trunk/src/org
- Timestamp:
- 2011-06-20T16:37:21+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java
r4145 r4153 234 234 fos = null; 235 235 file = new File(destDir, localPath); 236 if( destDirFile.renameTo(file)) {236 if(Main.platform.rename(destDirFile, file)) { 237 237 Main.pref.putCollection(prefKey, Arrays.asList(new String[] 238 238 {Long.toString(System.currentTimeMillis()), file.toString()})); -
trunk/src/org/openstreetmap/josm/tools/PlatformHook.java
r3083 r4153 2 2 package org.openstreetmap.josm.tools; 3 3 4 import java.io.File; 4 5 import java.io.IOException; 5 6 … … 102 103 103 104 public String getDefaultStyle(); 105 106 public boolean rename(File from, File to); 104 107 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
r3378 r4153 3 3 4 4 import java.awt.event.KeyEvent; 5 import java.io.File; 5 6 import java.io.IOException; 6 7 import java.lang.reflect.InvocationHandler; … … 269 270 return "javax.swing.plaf.metal.MetalLookAndFeel"; 270 271 } 272 273 @Override 274 public boolean rename(File from, File to) 275 { 276 return from.renameTo(to); 277 } 271 278 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r3083 r4153 3 3 4 4 import java.awt.event.KeyEvent; 5 import java.io.File; 5 6 import java.io.IOException; 6 7 … … 78 79 return "javax.swing.plaf.metal.MetalLookAndFeel"; 79 80 } 81 82 @Override 83 public boolean rename(File from, File to) 84 { 85 return from.renameTo(to); 86 } 80 87 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r3083 r4153 5 5 6 6 import java.awt.event.KeyEvent; 7 import java.io.File; 7 8 import java.io.IOException; 8 9 … … 60 61 return "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; 61 62 } 63 64 @Override 65 public boolean rename(File from, File to) 66 { 67 if(to.exists()) 68 to.delete(); 69 return from.renameTo(to); 70 } 62 71 }
Note:
See TracChangeset
for help on using the changeset viewer.