diff --git a/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/RasterFiltersPlugin.java b/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/RasterFiltersPlugin.java
index 247fc6c..32e76c1 100644
|
a
|
b
|
public class RasterFiltersPlugin extends Plugin implements LayerChangeListener {
|
| 42 | 42 | if (file.mkdir()) { |
| 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 { |
| 48 | 48 | file.createNewFile(); |
diff --git a/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/preferences/FiltersDownloader.java b/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/preferences/FiltersDownloader.java
index 039a721..91b354e 100644
|
a
|
b
|
public class FiltersDownloader implements ActionListener {
|
| 219 | 219 | } |
| 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 | |
| 225 | 225 | try { |
| … |
… |
public class FiltersDownloader implements ActionListener {
|
| 285 | 285 | |
| 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; |
| 291 | 291 | BufferedWriter writer = null; |
| … |
… |
public class FiltersDownloader implements ActionListener {
|
| 344 | 344 | if (plugin.exists()) { |
| 345 | 345 | |
| 346 | 346 | String plugDir = plugin.getAbsolutePath(); |
| 347 | | localFile = plugDir + "\\" + fromUrl.substring(m.end()); |
| | 347 | localFile = fromUrl.substring(m.end()); |
| 348 | 348 | |
| 349 | 349 | } |
| 350 | 350 | } |
| … |
… |
public class FiltersDownloader implements ActionListener {
|
| 352 | 352 | try { |
| 353 | 353 | url = new URL(fromUrl); |
| 354 | 354 | con = url.openConnection(); |
| 355 | | File file = new File(localFile); |
| | 355 | File file = new File(plugDir, localFile); |
| 356 | 356 | |
| 357 | 357 | if (file.exists()) { |
| 358 | 358 | Main.debug("File " + localFile + " already exists"); |
| … |
… |
public class FiltersDownloader implements ActionListener {
|
| 385 | 385 | return null; |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | | } |
| 389 | | No newline at end of file |
| | 388 | } |