Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r11707 r12620 24 24 import org.openstreetmap.josm.io.OnlineResource; 25 25 import org.openstreetmap.josm.io.imagery.ImageryReader; 26 import org.openstreetmap.josm.tools.Logging; 26 27 import org.openstreetmap.josm.tools.Utils; 27 28 import org.xml.sax.SAXException; … … 82 83 add(i); 83 84 } catch (IllegalArgumentException e) { 84 Main.warn("Unable to load imagery preference entry:"+e);85 Logging.warn("Unable to load imagery preference entry:"+e); 85 86 } 86 87 } … … 150 151 OnlineResource.JOSM_WEBSITE.checkOfflineAccess(source, Main.getJOSMWebsite()); 151 152 } catch (OfflineAccessException e) { 152 Main.warn(e, false);153 Logging.log(Logging.LEVEL_WARN, e); 153 154 online = false; 154 155 } … … 163 164 } catch (IOException ex) { 164 165 loadError = true; 165 Main.error(ex, false);166 Logging.log(Logging.LEVEL_ERROR, ex); 166 167 } catch (SAXException ex) { 167 168 loadError = true; 168 Main.error(ex);169 Logging.error(ex); 169 170 } 170 171 } … … 205 206 if (idMap.containsKey(i.getId())) { 206 207 notUnique.add(i.getId()); 207 Main.error("Id ''{0}'' is not unique - used by ''{1}'' and ''{2}''!",208 Logging.error("Id ''{0}'' is not unique - used by ''{1}'' and ''{2}''!", 208 209 i.getId(), i.getName(), idMap.get(i.getId()).getName()); 209 210 continue; … … 256 257 } 257 258 } else { 258 Main.error("Default imagery ''{0}'' has no id. Skipping.", def.getName());259 Logging.error("Default imagery ''{0}'' has no id. Skipping.", def.getName()); 259 260 } 260 261 } … … 279 280 if (matchingDefault != null && !matchingDefault.equalsPref(info)) { 280 281 layers.set(i, matchingDefault); 281 Main.info(tr("Update imagery ''{0}''", info.getName()));282 Logging.info(tr("Update imagery ''{0}''", info.getName())); 282 283 changed = true; 283 284 } … … 300 301 remove(info.getValue()); 301 302 drop.add(info.getKey()); 302 Main.info(tr("Drop old imagery ''{0}''", info.getValue().getName()));303 Logging.info(tr("Drop old imagery ''{0}''", info.getValue().getName())); 303 304 } 304 305 }
Note:
See TracChangeset
for help on using the changeset viewer.