Changeset 4810 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2012-01-17T14:09:10+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r4770 r4810 268 268 public File getPluginsDirectory() { 269 269 return new File(getPreferencesDirFile(), "plugins"); 270 } 271 272 public File getCacheDirectory() { 273 File cache = new File(getPreferencesDirFile(), "cache"); 274 if (!cache.exists() && !cache.mkdirs()) { 275 System.err.println(tr("Warning: Failed to create missing cache directory: {0}", cache.getAbsoluteFile())); 276 JOptionPane.showMessageDialog( 277 Main.parent, 278 tr("<html>Failed to create missing cache directory: {0}</html>",cache.getAbsoluteFile()), 279 tr("Error"), 280 JOptionPane.ERROR_MESSAGE 281 ); 282 } 283 return cache; 270 284 } 271 285
Note:
See TracChangeset
for help on using the changeset viewer.