Changeset 6248 in josm for trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
- Timestamp:
- 2013-09-23T16:47:50+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r6246 r6248 308 308 } else { 309 309 if (!suppressWarnings) { 310 System.err.println(tr("Failed to locate image ''{0}''", name));310 Main.error(tr("Failed to locate image ''{0}''", name)); 311 311 } 312 312 return null; … … 613 613 } 614 614 } catch (Exception e) { 615 System.err.println(tr("Warning: failed to handle zip file ''{0}''. Exception was: {1}", archive.getName(), e.toString()));615 Main.warn(tr("Failed to handle zip file ''{0}''. Exception was: {1}", archive.getName(), e.toString())); 616 616 } finally { 617 617 Utils.close(zipFile); … … 671 671 return u; 672 672 } catch (SecurityException e) { 673 System.out.println(tr(674 " Warning: failed to access directory ''{0}'' for security reasons. Exception was: {1}",673 Main.warn(tr( 674 "Failed to access directory ''{0}'' for security reasons. Exception was: {1}", 675 675 name, e.toString())); 676 676 } … … 685 685 return u; 686 686 } catch (SecurityException e) { 687 System.out.println(tr(688 " Warning: failed to access directory ''{0}'' for security reasons. Exception was: {1}", dir, e687 Main.warn(tr( 688 "Failed to access directory ''{0}'' for security reasons. Exception was: {1}", dir, e 689 689 .toString())); 690 690 } … … 736 736 @Override 737 737 public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { 738 System.out.println();739 738 if (localName.equalsIgnoreCase("img")) { 740 739 String val = atts.getValue("src"); … … 759 758 return r.getResult(); 760 759 } catch (Exception e) { 761 System.out.println("INFO: parsing " + base + fn + " failed:\n" + e);760 Main.warn("Parsing " + base + fn + " failed:\n" + e); 762 761 return null; 763 762 } 764 System.out.println("INFO: parsing " + base + fn + " failed: Unexpected content.");763 Main.warn("Parsing " + base + fn + " failed: Unexpected content."); 765 764 return null; 766 765 }
Note:
See TracChangeset
for help on using the changeset viewer.