Changeset 6310 in josm
- Timestamp:
- 2013-10-07T00:04:48+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java
r6084 r6310 105 105 }); 106 106 } catch (InterruptedException ex) { 107 Main.warn(ex); 107 108 } catch (InvocationTargetException ex) { 109 Main.warn(ex); 108 110 } 109 111 } -
trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java
r6296 r6310 12 12 import javax.swing.filechooser.FileFilter; 13 13 14 import org.openstreetmap.josm.Main; 14 15 import org.openstreetmap.josm.gui.MapView; 15 16 import org.openstreetmap.josm.io.AllFormatsImporter; … … 62 63 importers.add(importer); 63 64 MapView.addLayerChangeListener(importer); 64 } catch (Throwable t) { } 65 } catch (Throwable t) { 66 Main.debug(t.getMessage()); 67 } 65 68 } 66 69 … … 81 84 exporters.add(exporter); 82 85 MapView.addLayerChangeListener(exporter); 83 } catch (Throwable t) { } 86 } catch (Throwable t) { 87 Main.debug(t.getMessage()); 88 } 84 89 } 85 90 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r6296 r6310 243 243 Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.KEY_EVENT_MASK); 244 244 } catch (SecurityException ex) { 245 Main.warn(ex); 245 246 } 246 247 // would like to but haven't got mouse position yet: -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r6252 r6310 206 206 Toolkit.getDefaultToolkit().addAWTEventListener(altKeyListener, AWTEvent.KEY_EVENT_MASK); 207 207 } catch (SecurityException ex) { 208 Main.warn(ex); 208 209 } 209 210 initialMoveDelay = Main.pref.getInteger("edit.initial-move-delay",200); … … 228 229 Toolkit.getDefaultToolkit().removeAWTEventListener(altKeyListener); 229 230 } catch (SecurityException ex) { 231 Main.warn(ex); 230 232 } 231 233 super.exitMode(); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r6296 r6310 150 150 AWTEvent.KEY_EVENT_MASK); 151 151 } catch (SecurityException ex) { 152 Main.warn(ex); 152 153 } 153 154 } … … 165 166 Toolkit.getDefaultToolkit().removeAWTEventListener(this); 166 167 } catch (SecurityException ex) { 168 Main.warn(ex); 167 169 } 168 170 -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r6265 r6310 163 163 Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.KEY_EVENT_MASK); 164 164 } catch (SecurityException ex) { 165 Main.warn(ex); 165 166 } 166 167 sourceWays = new LinkedHashSet<Way>(getCurrentDataSet().getSelectedWays()); … … 182 183 Toolkit.getDefaultToolkit().removeAWTEventListener(this); 183 184 } catch (SecurityException ex) { 185 Main.warn(ex); 184 186 } 185 187 removeWayHighlighting(sourceWays); -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r6296 r6310 191 191 try { 192 192 Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.KEY_EVENT_MASK); 193 } catch (SecurityException ex) {} 193 } catch (SecurityException ex) { 194 Main.warn(ex); 195 } 194 196 } 195 197 … … 203 205 try { 204 206 Toolkit.getDefaultToolkit().removeAWTEventListener(this); 205 } catch (SecurityException ex) {} 207 } catch (SecurityException ex) { 208 Main.warn(ex); 209 } 206 210 removeHighlighting(); 207 211 } -
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r6296 r6310 335 335 try { // proceed only after all other tasks were finished 336 336 while (busy) CustomConfigurator.class.wait(); 337 } catch (InterruptedException ex) { } 337 } catch (InterruptedException ex) { 338 Main.warn(ex); 339 } 338 340 339 341 SwingUtilities.invokeLater(new Runnable() { … … 1078 1080 } 1079 1081 1080 while (stringMap.values().remove(null)) { }1081 while (listMap.values().remove(null)) { }1082 while (listlistMap.values().remove(null)) { }1083 while (listmapMap.values().remove(null)) { }1082 while (stringMap.values().remove(null)); 1083 while (listMap.values().remove(null)); 1084 while (listlistMap.values().remove(null)); 1085 while (listmapMap.values().remove(null)); 1084 1086 1085 1087 stringMap.putAll(tmpPref.properties); -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r6248 r6310 738 738 /* only for preferences */ 739 739 synchronized public String getColorName(String o) { 740 try 741 { 740 try { 742 741 Matcher m = Pattern.compile("mappaint\\.(.+?)\\.(.+)").matcher(o); 743 742 m.matches(); 744 743 return tr("Paint style {0}: {1}", tr(m.group(1)), tr(m.group(2))); 745 } 746 catch (Exception e) {}747 try748 { 744 } catch (Exception e) { 745 Main.warn(e); 746 } 747 try { 749 748 Matcher m = Pattern.compile("layer (.+)").matcher(o); 750 749 m.matches(); 751 750 return tr("Layer: {0}", tr(m.group(1))); 752 } 753 catch (Exception e) {} 751 } catch (Exception e) { 752 Main.warn(e); 753 } 754 754 return tr(colornames.containsKey(o) ? colornames.get(o) : o); 755 755 } -
trunk/src/org/openstreetmap/josm/data/ServerSidePreferences.java
r6268 r6310 160 160 download(); 161 161 } catch (MissingPassword e) { 162 Main.warn(e); 162 163 } 163 164 } -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r6289 r6310 440 440 for (ImageryType type : ImageryType.values()) { 441 441 Matcher m = Pattern.compile(type.getUrlString()+"(?:\\[(?:(\\d+),)?(\\d+)\\])?:(.*)").matcher(url); 442 if(m.matches()) { 442 if (m.matches()) { 443 443 this.url = m.group(3); 444 444 this.imageryType = type; 445 if(m.group(2) != null) { 445 if (m.group(2) != null) { 446 446 defaultMaxZoom = Integer.valueOf(m.group(2)); 447 447 } 448 if(m.group(1) != null) { 448 if (m.group(1) != null) { 449 449 defaultMinZoom = Integer.valueOf(m.group(1)); 450 450 } … … 453 453 } 454 454 455 if(serverProjections == null || serverProjections.isEmpty()) { 455 if (serverProjections == null || serverProjections.isEmpty()) { 456 456 try { 457 457 serverProjections = new ArrayList<String>(); … … 461 461 serverProjections.add(p); 462 462 } 463 } catch(Exception e) { 463 } catch (Exception e) { 464 Main.warn(e); 464 465 } 465 466 } -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r6248 r6310 89 89 } 90 90 } 91 while (defaultLayers.remove(null)) {}91 while (defaultLayers.remove(null)); 92 92 93 93 Collection<String> defaults = Main.pref.getCollection("imagery.layers.default"); -
trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
r6203 r6310 11 11 import java.util.regex.Pattern; 12 12 13 import org.openstreetmap.josm.Main; 13 14 import org.openstreetmap.josm.data.Bounds; 14 15 import org.openstreetmap.josm.data.coor.LatLon; … … 451 452 try { 452 453 return Integer.parseInt(code.substring(5)); 453 } catch (NumberFormatException e) {} 454 } catch (NumberFormatException e) { 455 Main.warn(e); 456 } 454 457 } 455 458 return null; -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java
r6222 r6310 24 24 import java.io.Serializable; 25 25 26 import org.openstreetmap.josm.Main; 26 27 import org.openstreetmap.josm.tools.Utils; 27 28 … … 336 337 } 337 338 } catch (CloneNotSupportedException cnse) { 339 Main.warn(cnse); 338 340 } 339 341 return clone; -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2Util.java
r5073 r6310 19 19 */ 20 20 package org.openstreetmap.josm.data.projection.datum; 21 22 import org.openstreetmap.josm.Main; 21 23 22 24 /** … … 112 114 Class.forName("java.nio.channels.FileChannel"); 113 115 nioAvailable = true; 114 } catch (ClassNotFoundException cnfe) {} 116 } catch (ClassNotFoundException cnfe) { 117 Main.info(cnfe.getMessage()); 118 } 115 119 return nioAvailable; 116 120 } -
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r6221 r6310 438 438 x = JOptionPane.getFrameForComponent(parent).getSize(); 439 439 } 440 } catch(NullPointerException e) { } 440 } catch(NullPointerException e) { 441 Main.warn(e); 442 } 441 443 return x; 442 444 } -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r6296 r6310 218 218 synchronized (this) { 219 219 // TODO Would be better if the timeout wasn't necessary 220 try {wait(1000);} catch (InterruptedException e) {} 220 try { 221 wait(1000); 222 } catch (InterruptedException e) { 223 Main.warn(e); 224 } 221 225 ms.modifiers = mouseState.modifiers; 222 226 ms.mousePos = mouseState.mousePos; … … 337 341 }); 338 342 } catch (Exception e) { 339 343 Main.warn(e); 340 344 } 341 345 } -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r6258 r6310 478 478 */ 479 479 public void smoothScrollTo(EastNorth newCenter) { 480 // fixmemake these configurable.480 // FIXME make these configurable. 481 481 final int fps = 20; // animation frames per second 482 482 final int speed = 1500; // milliseconds for full-screen-width pan … … 491 491 @Override 492 492 public void run() { 493 for (int i=0; i<frames; i++) 494 { 495 // fixme - not use zoom history here 493 for (int i=0; i<frames; i++) { 494 // FIXME - not use zoom history here 496 495 zoomTo(oldCenter.interpolate(finalNewCenter, (i+1) / frames)); 497 try { Thread.sleep(1000 / fps); } catch (InterruptedException ex) { } 496 try { 497 Thread.sleep(1000 / fps); 498 } catch (InterruptedException ex) { 499 Main.warn(ex); 500 } 498 501 } 499 502 } -
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r6248 r6310 408 408 Point min = new Point(valMinX.getTileIndex(), valMinY.getTileIndex()); 409 409 Point max = new Point(valMaxX.getTileIndex(), valMaxY.getTileIndex()); 410 if (min.x > max.x) {411 412 }413 410 int zoomlevel = (Integer)spZoomLevel.getValue(); 414 411 TileBounds tb = new TileBounds(min, max, zoomlevel); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r6246 r6310 620 620 return; 621 621 } 622 } catch (NumberFormatException ex) { } 622 } catch (NumberFormatException ex) { 623 Main.warn(ex); 624 } 623 625 JOptionPane.showMessageDialog(this, tr("Please enter integer number between 0 and {0}", MAX_LRU_TAGS_NUMBER)); 624 626 -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r6235 r6310 259 259 @Override 260 260 public void endElement(String namespaceURI, String localName, String qName) throws SAXException { 261 if (qName.equals("searchresults")) { 262 } else if (qName.equals("description") && description != null) { 261 if (qName.equals("description") && description != null) { 263 262 currentResult.description = description.toString(); 264 263 description = null; 265 264 } 266 265 depth--; 267 268 266 } 269 267 -
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r6248 r6310 243 243 return colorModes.values()[i]; 244 244 } catch (Exception e) { 245 Main.warn(e); 245 246 } 246 247 return colorModes.none; -
trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java
r6248 r6310 115 115 defPath = OsmFileCacheTileLoader.getDefaultCacheDir().getAbsolutePath(); 116 116 } catch (SecurityException e) { 117 Main.warn(e); 117 118 } 118 119 PROP_TILECACHE_DIR = new StringProperty(PREFERENCE_PREFIX + ".tilecache_path", defPath); … … 139 140 return loader; 140 141 } catch (IOException e) { 142 Main.warn(e); 141 143 } 142 144 } … … 146 148 147 149 /** 148 * Plugins that wish to set custom tile loader should call this method 149 */ 150 * Plugins that wish to set custom tile loader should call this method 151 */ 150 152 public static void setCustomTileLoaderFactory(TileLoaderFactory loaderFactory) { 151 153 TMSLayer.loaderFactory = loaderFactory; -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r6296 r6310 348 348 orientation = ExifReader.readOrientation(yLayer.data.get(index).getFile()); 349 349 } catch (Exception e) { 350 Main.warn(e); 350 351 } 351 352 imgDisp.setImage(yLayer.data.get(index).getFile(), orientation); … … 381 382 orientation = ExifReader.readOrientation(sel); 382 383 } catch (Exception e) { 384 Main.warn(e); 383 385 } 384 386 imgDisp.setImage(sel, orientation); … … 388 390 date = ExifReader.readTime(sel); 389 391 } catch (Exception e) { 392 Main.warn(e); 390 393 } 391 394 if (date != null) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r6296 r6310 80 80 Thread.sleep(5); 81 81 } catch (InterruptedException e) { 82 Main.warn(e); 82 83 } 83 84 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r6281 r6310 82 82 BufferedImage scaledBI = new BufferedImage(targetSize.width, targetSize.height, BufferedImage.TYPE_INT_RGB); 83 83 Graphics2D g = scaledBI.createGraphics(); 84 while (!g.drawImage(img, 0, 0, targetSize.width, targetSize.height, null)) 85 { 84 while (!g.drawImage(img, 0, 0, targetSize.width, targetSize.height, null)) { 86 85 try { 87 86 Thread.sleep(10); 88 } catch(InterruptedException ie) {} 87 } catch(InterruptedException ie) { 88 Main.warn(ie); 89 } 89 90 } 90 91 g.dispose(); -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r6299 r6310 233 233 double syncOffset = Double.parseDouble(exts.get("sync-offset")); 234 234 audioMarker.syncOffset = syncOffset; 235 } catch (NumberFormatException nfe) {} 235 } catch (NumberFormatException nfe) { 236 Main.warn(nfe); 237 } 236 238 } 237 239 return audioMarker; -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r6248 r6310 115 115 try { 116 116 offset = Double.parseDouble(exts.get("offset")); 117 } catch (NumberFormatException nfe) {} 117 } catch (NumberFormatException nfe) { 118 Main.warn(nfe); 119 } 118 120 } 119 121 if (offset == null) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/Cascade.java
r6285 r6310 126 126 return f; 127 127 } catch (NumberFormatException e) { 128 Main.warn(e); 128 129 } 129 130 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java
r5801 r6310 8 8 import java.util.Arrays; 9 9 10 import org.openstreetmap.josm.Main; 10 11 import org.openstreetmap.josm.data.osm.Node; 11 12 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 137 138 /* if we have a "width" tag, try use it */ 138 139 String widthTag = env.osm.get("width"); 139 if(widthTag == null) { 140 if (widthTag == null) { 140 141 widthTag = env.osm.get("est_width"); 141 142 } 142 if(widthTag != null) { 143 if (widthTag != null) { 143 144 try { 144 145 realWidth = Float.valueOf(widthTag); 145 } 146 catch(NumberFormatException nfe) {146 } catch(NumberFormatException nfe) { 147 Main.warn(nfe); 147 148 } 148 149 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java
r6289 r6310 75 75 Main.JOSM_WEBSITE+"/mappaint-style-1.0", 76 76 "resource://data/mappaint-style.xsd"); 77 while (parser.hasNext()) { 78 } 77 while (parser.hasNext()); 79 78 } finally { 80 79 closeSourceInputStream(in); … … 328 327 int numOver = 0, numUnder = 0; 329 328 330 while (mc.hasLayer(String.format("over_%d", ++numOver))) {}331 while (mc.hasLayer(String.format("under_%d", ++numUnder))) {}329 while (mc.hasLayer(String.format("over_%d", ++numOver))); 330 while (mc.hasLayer(String.format("under_%d", ++numUnder))); 332 331 333 332 for (LinemodPrototype mod : p.linemods) { -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r6223 r6310 419 419 setSelectedComponent(sel); 420 420 } 421 } catch (IllegalArgumentException e) {} 421 } catch (IllegalArgumentException e) { 422 Main.warn(e); 423 } 422 424 } 423 425 -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/GaussKruegerProjectionChoice.java
r6295 r6310 6 6 import java.util.Collection; 7 7 import java.util.Collections; 8 9 import org.openstreetmap.josm.Main; 8 10 9 11 public class GaussKruegerProjectionChoice extends ListProjectionChoice { … … 32 34 try { 33 35 return Integer.parseInt(zone) - 2; 34 } catch(NumberFormatException e) {} 36 } catch(NumberFormatException e) { 37 Main.warn(e); 38 } 35 39 return defaultIndex; 36 40 } … … 46 50 47 51 @Override 48 public Collection<String> getPreferencesFromCode(String code) 49 { 52 public Collection<String> getPreferencesFromCode(String code) { 50 53 //zone 2 = EPSG:31466 up to zone 5 = EPSG:31469 51 54 for (int zone = 2; zone <= 5; zone++) { -
trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java
r6248 r6310 158 158 } 159 159 160 public File getFile() 161 { 160 public File getFile() { 162 161 return file; 163 162 } 164 163 165 static public void cleanup(String name) 166 { 164 public static void cleanup(String name) { 167 165 cleanup(name, null); 168 166 } 169 static public void cleanup(String name, String destDir)170 { 167 168 public static void cleanup(String name, String destDir) { 171 169 URL url; 172 170 try { 173 171 url = new URL(name); 174 if (!url.getProtocol().equals("file")) 175 { 172 if (!url.getProtocol().equals("file")) { 176 173 String prefKey = getPrefKey(url, destDir); 177 174 List<String> localPath = new ArrayList<String>(Main.pref.getCollection(prefKey)); … … 184 181 Main.pref.putCollection(prefKey, null); 185 182 } 186 } catch (java.net.MalformedURLException e) {} 183 } catch (MalformedURLException e) { 184 Main.warn(e); 185 } 187 186 } 188 187 -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r6268 r6310 537 537 538 538 private void sleepAndListen(int retry, ProgressMonitor monitor) throws OsmTransferCanceledException { 539 System.out.print(tr("Waiting 10 seconds ... "));540 for(int i=0; i < 10; i++) { 539 Main.info(tr("Waiting 10 seconds ... ")); 540 for (int i=0; i < 10; i++) { 541 541 if (monitor != null) { 542 542 monitor.setCustomText(tr("Starting retry {0} of {1} in {2} seconds ...", getMaxRetries() - retry,getMaxRetries(), 10-i)); … … 546 546 try { 547 547 Thread.sleep(1000); 548 } catch (InterruptedException ex) {} 548 } catch (InterruptedException ex) { 549 Main.warn(ex); 550 } 549 551 } 550 552 Main.info(tr("OK - trying again.")); -
trunk/src/org/openstreetmap/josm/io/imagery/Grabber.java
r4745 r6310 66 66 try { // sleep some time and then ask the server again 67 67 Thread.sleep(random(1000, 2000)); 68 } catch (InterruptedException e1) {} 69 68 } catch (InterruptedException e1) { 69 Main.debug(e1.getMessage()); 70 } 70 71 if(i == maxTries) { 71 72 e.printStackTrace(); -
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r4874 r6310 258 258 } else if (qName.equals("icon")) { 259 259 entry.setIcon(accumulator.toString()); 260 } else {261 260 } 262 261 break; -
trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
r6271 r6310 378 378 try { 379 379 d = Integer.parseInt(sd); 380 } catch (NumberFormatException ex) {} 380 } catch (NumberFormatException ex) { 381 Main.warn(ex); 382 } 381 383 if (d != null) { 382 384 deps.put(idx, d); … … 492 494 double opacity = Double.parseDouble(el.getAttribute("opacity")); 493 495 layer.setOpacity(opacity); 494 } catch (NumberFormatException ex) {} 496 } catch (NumberFormatException ex) { 497 Main.warn(ex); 498 } 495 499 } 496 500 } -
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r6248 r6310 210 210 stage = stageStr == null ? 50 : Integer.parseInt(stageStr); 211 211 version = attr.getValue("Plugin-Version"); 212 try { mainversion = Integer.parseInt(attr.getValue("Plugin-Mainversion")); } 213 catch(NumberFormatException e) {} 212 try { 213 mainversion = Integer.parseInt(attr.getValue("Plugin-Mainversion")); 214 } catch(NumberFormatException e) { 215 Main.warn(e); 216 } 214 217 author = attr.getValue("Author"); 215 218 iconPath = attr.getValue("Plugin-Icon"); -
trunk/src/org/openstreetmap/josm/plugins/PluginProxy.java
r2830 r6310 4 4 import java.util.List; 5 5 6 import org.openstreetmap.josm.Main; 6 7 import org.openstreetmap.josm.gui.MapFrame; 7 8 import org.openstreetmap.josm.gui.download.DownloadSelection; … … 29 30 plugin.getClass().getMethod("mapFrameInitialized", MapFrame.class, MapFrame.class).invoke(plugin, oldFrame, newFrame); 30 31 } catch (NoSuchMethodException e) { 32 Main.debug("Plugin "+plugin+" does not define mapFrameInitialized"); 31 33 } catch (Exception e) { 32 34 BugReportExceptionHandler.handleException(new PluginException(this, getPluginInformation().name, e)); … … 38 40 return (PreferenceSetting)plugin.getClass().getMethod("getPreferenceSetting").invoke(plugin); 39 41 } catch (NoSuchMethodException e) { 42 Main.debug("Plugin "+plugin+" does not define getPreferenceSetting"); 40 43 return null; 41 44 } catch (Exception e) { … … 49 52 plugin.getClass().getMethod("addDownloadSelection", List.class).invoke(plugin, list); 50 53 } catch (NoSuchMethodException e) { 51 // ignore54 Main.debug("Plugin "+plugin+" does not define addDownloadSelection"); 52 55 } catch (Exception e) { 53 56 BugReportExceptionHandler.handleException(new PluginException(this, getPluginInformation().name, e)); -
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r6246 r6310 198 198 */ 199 199 public static void reset() { 200 if(audioPlayer != null) 201 { 200 if(audioPlayer != null) { 202 201 try { 203 202 pause(); 204 } catch(Exception e) {} 203 } catch(Exception e) { 204 Main.warn(e); 205 } 205 206 audioPlayer.playingUrl = null; 206 207 } -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r6283 r6310 603 603 try { 604 604 img = ImageIO.read(new ByteArrayInputStream(buf)); 605 } catch (IOException e) {} 605 } catch (IOException e) { 606 Main.warn(e); 607 } 606 608 return img == null ? null : new ImageResource(img); 607 609 default: … … 657 659 return f.toURI().toURL(); 658 660 } catch (MalformedURLException e) { 661 Main.warn(e); 659 662 } 660 663 } -
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r6203 r6310 23 23 } 24 24 } catch (UnsupportedEncodingException x) { 25 Main.error(x); 25 26 } catch (IllegalArgumentException x) { 27 Main.error(x); 26 28 } 27 29 Bounds b = parseShortLink(url); -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r6103 r6310 14 14 import java.util.List; 15 15 16 import org.openstreetmap.josm.Main; 17 16 18 /** 17 19 * see PlatformHook.java … … 42 44 return; 43 45 } catch (IOException e) { 46 Main.warn(e); 44 47 } 45 48 } … … 123 126 } 124 127 } catch (IOException e) { 128 Main.warn(e); 125 129 } 126 130 return null; -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r6268 r6310 394 394 Thread.sleep(1); 395 395 } catch (InterruptedException ex) { 396 Main.warn(ex); 396 397 } 397 398 }
Note:
See TracChangeset
for help on using the changeset viewer.