Changeset 31509 in osm for applications/editors/josm/plugins
- Timestamp:
- 2015-08-18T20:33:19+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/RasterFiltersPlugin.java
r31504 r31509 43 43 44 44 // opening file with last user's settings 45 file = new File(file.getAbsoluteFile() + "\\urls.map");45 file = new File(file.getAbsoluteFile(), "urls.map"); 46 46 if (!file.exists()) { 47 47 try { -
applications/editors/josm/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/preferences/FiltersDownloader.java
r31504 r31509 220 220 221 221 public static void initFilters() { 222 File file = new File(pluginDir + "\\urls.map");222 File file = new File(pluginDir, "urls.map"); 223 223 Main.debug("EXIST FILE? " + file.exists()); 224 224 … … 286 286 public static void loadBinariesFromMeta(Set<JsonObject> metaList) { 287 287 288 File file = new File(pluginDir + "\\urls.map");288 File file = new File(pluginDir, "urls.map"); 289 289 290 290 FileWriter fileWriter = null; … … 338 338 339 339 String localFile = null; 340 File plugin = new File(pluginDir); 340 341 341 342 if (m.find()) { 342 343 343 File plugin = new File(pluginDir);344 344 if (plugin.exists()) { 345 345 346 String plugDir = plugin.getAbsolutePath(); 347 localFile = plugDir + "\\" + fromUrl.substring(m.end()); 346 localFile = fromUrl.substring(m.end()); 348 347 349 348 } … … 353 352 url = new URL(fromUrl); 354 353 con = url.openConnection(); 355 File file = new File(localFile); 354 String plugDir = plugin.getAbsolutePath(); 355 File file = new File(plugDir, localFile); 356 356 357 357 if (file.exists()) {
Note:
See TracChangeset
for help on using the changeset viewer.