Changeset 33113 in osm for applications/editors/josm
- Timestamp:
- 2017-01-09T03:20:27+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/preferences/FiltersDownloader.java
r32877 r33113 100 100 JsonObject meta = loadMeta(link); 101 101 102 String paramName = "rasterfilters." 103 + meta.getString("name"); 104 105 boolean needToLoad = Main.pref.getBoolean(paramName); 106 107 if (needToLoad) { 108 JsonArray binaries = meta.getJsonArray("binaries"); 109 filterTitles.add(meta.getString("title")); 110 for (int i = 0; i < binaries.size(); i++) { 111 filtersMetaToLoad.add(meta); 112 loadBinaryToFile(binaries.getString(i)); 102 if (meta != null) { 103 String paramName = "rasterfilters." 104 + meta.getString("name"); 105 106 boolean needToLoad = Main.pref.getBoolean(paramName); 107 108 if (needToLoad) { 109 JsonArray binaries = meta.getJsonArray("binaries"); 110 filterTitles.add(meta.getString("title")); 111 for (int i = 0; i < binaries.size(); i++) { 112 filtersMetaToLoad.add(meta); 113 loadBinaryToFile(binaries.getString(i)); 114 } 113 115 } 114 }115 FilterInfo newFilterInfo = new FilterInfo(name,116 description, meta, needToLoad);117 newFilterInfo.setOwner(owner);118 119 if (!filtersInfoList.contains(newFilterInfo)) {120 filtersInfoList.add(newFilterInfo);116 FilterInfo newFilterInfo = new FilterInfo(name, 117 description, meta, needToLoad); 118 newFilterInfo.setOwner(owner); 119 120 if (!filtersInfoList.contains(newFilterInfo)) { 121 filtersInfoList.add(newFilterInfo); 122 } 121 123 } 122 124 }
Note:
See TracChangeset
for help on using the changeset viewer.