- Timestamp:
- 2008-09-03T17:13:16+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r910 r916 361 361 ImageIcon icon = ImageProvider.getIfAvailable(null, iconName); 362 362 if (icon == null) 363 { 364 System.out.println("Could not get presets icon " + iconName); 363 365 icon = new ImageIcon(iconName); 366 } 364 367 if (Math.max(icon.getIconHeight(), icon.getIconWidth()) != 16) 365 368 icon = new ImageIcon(icon.getImage().getScaledInstance(16, 16, Image.SCALE_SMOOTH)); -
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r655 r916 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.io; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.io.IOException; … … 33 35 String version = Main.pref.get("osm-server.version", "0.5"); 34 36 urlStr = Main.pref.get("osm-server.url")+"/"+version+"/" + urlStr; 35 System.out.println("download: "+urlStr);37 // System.out.println("download: "+urlStr); 36 38 initAuthentication(); 37 39 URL url = new URL(urlStr); … … 45 47 activeConnection.setRequestProperty("Accept-Encoding", "gzip, deflate"); 46 48 47 System.out.println("got return: "+activeConnection.getResponseCode());48 49 activeConnection.setConnectTimeout(15000); 49 50 if (isAuthCancelled() && activeConnection.getResponseCode() == 401) 50 51 return null; 52 if( activeConnection.getResponseCode() == 500 ) 53 { 54 throw new IOException(tr("Server returned internal error. Try a reduced area or retry after waiting some time.")); 55 } 56 // System.out.println("got return: "+activeConnection.getResponseCode()); 51 57 52 58 String encoding = activeConnection.getContentEncoding();
Note:
See TracChangeset
for help on using the changeset viewer.