Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r12410 r12620 35 35 import org.openstreetmap.josm.tools.ImageProvider; 36 36 import org.openstreetmap.josm.tools.ListenerList; 37 import org.openstreetmap.josm.tools.Logging; 37 38 import org.openstreetmap.josm.tools.Utils; 38 39 … … 157 158 String msg = "Mappaint style \""+namespace+"\" ("+ref.source.getDisplayString()+") icon \"" + ref.iconName + "\" not found."; 158 159 ref.source.logWarning(msg); 159 Main.warn(msg);160 Logging.warn(msg); 160 161 return null; 161 162 } … … 176 177 ImageIcon i = getIconProvider(ref, false).setSize(width, height).get(); 177 178 if (i == null) { 178 Main.warn("Mappaint style \""+namespace+"\" ("+ref.source.getDisplayString()+") icon \"" + ref.iconName + "\" not found.");179 Logging.warn("Mappaint style \""+namespace+"\" ("+ref.source.getDisplayString()+") icon \"" + ref.iconName + "\" not found."); 179 180 return null; 180 181 } … … 308 309 Main.fileWatcher.registerStyleSource(source); 309 310 } catch (IOException | IllegalStateException | IllegalArgumentException e) { 310 Main.error(e);311 } 312 } 313 if ( Main.isDebugEnabled() || !source.isValid()) {311 Logging.error(e); 312 } 313 } 314 if (Logging.isDebugEnabled() || !source.isValid()) { 314 315 final long elapsedTime = System.currentTimeMillis() - startTime; 315 316 String message = "Initializing map style " + source.url + " completed in " + Utils.getDurationString(elapsedTime); 316 317 if (!source.isValid()) { 317 Main.warn(message + " (" + source.getErrors().size() + " errors, " + source.getWarnings().size() + " warnings)");318 Logging.warn(message + " (" + source.getErrors().size() + " errors, " + source.getWarnings().size() + " warnings)"); 318 319 } else { 319 Main.debug(message);320 Logging.debug(message); 320 321 } 321 322 }
Note:
See TracChangeset
for help on using the changeset viewer.