Changeset 10626 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-07-24T13:54:44+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r10571 r10626 235 235 } catch (NumberFormatException nfe) { 236 236 // we repaint offset numbers in any case 237 if (Main.isTraceEnabled()) { 238 Main.trace(nfe.getMessage()); 239 } 237 Main.trace(nfe); 240 238 } 241 239 } -
trunk/src/org/openstreetmap/josm/actions/SearchNotesDownloadAction.java
r10242 r10626 88 88 return; 89 89 } catch (NumberFormatException ignore) { 90 if (Main.isTraceEnabled()) { 91 Main.trace(ignore.getMessage()); 92 } 90 Main.trace(ignore); 93 91 } 94 92 -
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r10600 r10626 734 734 } 735 735 } catch (NumberFormatException ignore) { 736 if (Main.isTraceEnabled()) { 737 Main.trace(ignore.getMessage()); 738 } 736 Main.trace(ignore); 739 737 } 740 738 this.referenceNumber = v; -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r10608 r10626 793 793 } catch (NumberFormatException e) { 794 794 // fall out 795 if (Main.isTraceEnabled()) { 796 Main.trace(e.getMessage()); 797 } 795 Main.trace(e); 798 796 } 799 797 return def; … … 811 809 } catch (NumberFormatException e) { 812 810 // fall out 813 if (Main.isTraceEnabled()) { 814 Main.trace(e.getMessage()); 815 } 811 Main.trace(e); 816 812 } 817 813 return def; … … 827 823 } catch (NumberFormatException e) { 828 824 // fall out 829 if (Main.isTraceEnabled()) { 830 Main.trace(e.getMessage()); 831 } 825 Main.trace(e); 832 826 } 833 827 return def; … … 843 837 } catch (NumberFormatException e) { 844 838 // fall out 845 if (Main.isTraceEnabled()) { 846 Main.trace(e.getMessage()); 847 } 839 Main.trace(e); 848 840 } 849 841 return def; -
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r10558 r10626 441 441 } catch (NumberFormatException e) { 442 442 // ignore malformed Cache-Control headers 443 if (Main.isTraceEnabled()) { 444 Main.trace(e.getMessage()); 445 } 443 Main.trace(e); 446 444 } 447 445 } -
trunk/src/org/openstreetmap/josm/data/osm/TagCollection.java
r8510 r10626 770 770 result += Integer.parseInt(value); 771 771 } catch (NumberFormatException e) { 772 if (Main.isTraceEnabled()) { 773 Main.trace(e.getMessage()); 774 } 772 Main.trace(e); 775 773 } 776 774 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r10378 r10626 304 304 gv.setGlyphTransform(0, AffineTransform.getTranslateInstance(1000, 1000)); 305 305 Shape shape = gv.getGlyphOutline(0); 306 Main.trace("#10446: shape: "+shape.getBounds()); 306 if (Main.isTraceEnabled()) { 307 Main.trace("#10446: shape: "+shape.getBounds()); 308 } 307 309 // x is about 1000 on normal stystems and about 2000 when the bug occurs 308 310 int x = shape.getBounds().x; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java
r10378 r10626 1075 1075 } catch (ParseException e) { 1076 1076 // Try next format 1077 if (Main.isTraceEnabled()) { 1078 Main.trace(e.getMessage()); 1079 } 1077 Main.trace(e); 1080 1078 } 1081 1079 } -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
r10217 r10626 318 318 } catch (NumberFormatException e) { 319 319 // don't save invalid value to preferences 320 if (Main.isTraceEnabled()) { 321 Main.trace(e.getMessage()); 322 } 320 Main.trace(e); 323 321 } 324 322 } -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r10619 r10626 427 427 } catch (IOException e) { 428 428 // silence exceptions 429 if (Main.isTraceEnabled()) { 430 Main.trace(e.getMessage()); 431 } 429 Main.trace(e); 432 430 } 433 431 -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r10619 r10626 752 752 } 753 753 } catch (NumberFormatException e) { 754 if (Main.isTraceEnabled()) { 755 Main.trace(e.getMessage()); 756 } 754 Main.trace(e); 757 755 } 758 756 } … … 774 772 } 775 773 } catch (NumberFormatException e) { 776 if (Main.isTraceEnabled()) { 777 Main.trace(e.getMessage()); 778 } 774 Main.trace(e); 779 775 } 780 776 } -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r10619 r10626 1447 1447 } catch (NumberFormatException e) { 1448 1448 // ignore 1449 if (Main.isTraceEnabled()) { 1450 Main.trace(e.getMessage()); 1451 } 1449 Main.trace(e); 1452 1450 } 1453 1451 } else if ("style-type".equals(key)) { -
trunk/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java
r10378 r10626 72 72 } catch (SAXException e) { 73 73 // We will handle this in step with validation 74 if (Main.isTraceEnabled()) { 75 Main.trace(e.getMessage()); 76 } 74 Main.trace(e); 77 75 } 78 76 -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java
r10179 r10626 196 196 } catch (NumberFormatException e) { 197 197 // ignore - load from preference pluginmanager.time-based-update.interval 198 if (Main.isTraceEnabled()) { 199 Main.trace(e.getMessage()); 200 } 198 Main.trace(e); 201 199 } 202 200 if (days <= 0) { -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingTextField.java
r8840 r10626 91 91 } catch (NumberFormatException e) { 92 92 // either the new text or the current text isn't a number. We continue with autocompletion 93 if (Main.isTraceEnabled()) { 94 Main.trace(e.getMessage()); 95 } 93 Main.trace(e); 96 94 } 97 95 } -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetItem.java
r10413 r10626 119 119 return Integer.valueOf(str); 120 120 } catch (NumberFormatException e) { 121 if (Main.isTraceEnabled()) { 122 Main.trace(e.getMessage()); 123 } 121 Main.trace(e); 124 122 } 125 123 return null; -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java
r10590 r10626 84 84 } catch (NumberFormatException ex) { 85 85 // Ignore - cannot auto-increment if last was non-numeric 86 if (Main.isTraceEnabled()) { 87 Main.trace(ex.getMessage()); 88 } 86 Main.trace(ex); 89 87 } 90 88 } else if (!usage.hadKeys() || PROP_FILL_DEFAULT.get() || "force".equals(use_last_as_default)) { -
trunk/src/org/openstreetmap/josm/gui/widgets/ChangesetIdTextField.java
r8840 r10626 84 84 } catch (NumberFormatException e) { 85 85 // Ignored 86 if (Main.isTraceEnabled()) { 87 Main.trace(e.getMessage()); 88 } 86 Main.trace(e); 89 87 } 90 88 } -
trunk/src/org/openstreetmap/josm/gui/widgets/TextContextualPopupMenu.java
r10611 r10626 196 196 undo.undo(); 197 197 } catch (CannotUndoException ex) { 198 if (Main.isTraceEnabled()) { 199 Main.trace(ex.getMessage()); 200 } 198 Main.trace(ex); 201 199 } finally { 202 200 updateUndoState(); … … 231 229 undo.redo(); 232 230 } catch (CannotRedoException ex) { 233 if (Main.isTraceEnabled()) { 234 Main.trace(ex.getMessage()); 235 } 231 Main.trace(ex); 236 232 } finally { 237 233 updateRedoState(); -
trunk/src/org/openstreetmap/josm/io/OsmApiException.java
r10212 r10626 146 146 } catch (IllegalArgumentException e) { 147 147 // Ignored 148 if (Main.isTraceEnabled()) { 149 Main.trace(e.getMessage()); 150 } 148 Main.trace(e); 151 149 } 152 150 try { … … 159 157 } catch (IllegalArgumentException e) { 160 158 // Ignored 161 if (Main.isTraceEnabled()) { 162 Main.trace(e.getMessage()); 163 } 159 Main.trace(e); 164 160 } 165 161 return sb.toString(); -
trunk/src/org/openstreetmap/josm/io/session/GeoImageSessionImporter.java
r10216 r10626 117 117 // TODO: handle thumbnail loading 118 118 } catch (NumberFormatException e) { 119 if (Main.isTraceEnabled()) { 120 Main.trace(e.getMessage()); 121 } 119 Main.trace(e); 122 120 } 123 121 } -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r10619 r10626 467 467 OnlineResource.JOSM_WEBSITE.checkOfflineAccess(updateSite, Main.getJOSMWebsite()); 468 468 } catch (OfflineAccessException e) { 469 if (Main.isTraceEnabled()) { 470 Main.trace(e.getMessage()); 471 } 469 Main.trace(e); 472 470 return false; 473 471 } -
trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java
r10616 r10626 476 476 } catch (MalformedURLException ex) { 477 477 // shouldn't happen 478 if (Main.isTraceEnabled()) { 479 Main.trace(e.getMessage()); 480 } 478 Main.trace(ex); 481 479 } 482 480 … … 625 623 } catch (MalformedURLException ex) { 626 624 // shouldn't happen 627 if (Main.isTraceEnabled()) { 628 Main.trace(e.getMessage()); 629 } 625 Main.trace(e); 630 626 } 631 627 -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r10625 r10626 486 486 } catch (IOException e) { 487 487 // Ignore 488 if (Main.isTraceEnabled()) { 489 Main.trace(e.getMessage()); 490 } 488 Main.trace(e); 491 489 } 492 490 } … … 518 516 } catch (IOException e) { 519 517 // Ignore exception 520 if (Main.isTraceEnabled()) { 521 Main.trace(e.getMessage()); 522 } 518 Main.trace(e); 523 519 } 524 520 return false; -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r10616 r10626 403 403 } catch (IOException e) { 404 404 // Ignore 405 if (Main.isTraceEnabled()) { 406 Main.trace(e.getMessage()); 407 } 405 Main.trace(e); 408 406 } 409 407 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r10580 r10626 242 242 // If exception this is not a certificate related to JOSM, just trace it 243 243 Main.trace(alias + " --> " + e.getClass().getName()); 244 Main.trace(e); 244 245 } 245 246 }
Note:
See TracChangeset
for help on using the changeset viewer.