Changeset 6920 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-03-21T17:31:18+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r6869 r6920 695 695 BigDecimal east = BigDecimal.ZERO; 696 696 697 // See http://en.wikipedia.org/w /index.php?title=Centroid&oldid=294224857#Centroid_of_polygon for the equation used here697 // See https://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon for the equation used here 698 698 for (int i = 0; i < nodes.size(); i++) { 699 699 EastNorth n0 = nodes.get(i).getEastNorth(); -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r6889 r6920 417 417 ImageType type = name.toLowerCase().endsWith(".svg") ? ImageType.SVG : ImageType.OTHER; 418 418 419 if (name.startsWith("http://")) { 419 if (name.startsWith("http://") || name.startsWith("https://")) { 420 420 String url = name; 421 421 ImageResource ir = cache.get(url); -
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r6897 r6920 85 85 * Openstreetmap.org changed it's URL scheme in August 2013, which breaks the URL parsing. 86 86 * The following function, called by the old parse function if necessary, provides parsing new URLs 87 * the new URLs follow the scheme http://www.openstreetmap.org/#map=18/51.71873/8.76164&layers=CN 87 * the new URLs follow the scheme https://www.openstreetmap.org/#map=18/51.71873/8.76164&layers=CN 88 88 * @param url string for parsing 89 89 * @return Bounds if hashurl, {@code null} otherwise -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r6850 r6920 72 72 Shortcut.registerSystemShortcut("system:resetX", tr("reserved"), KeyEvent.VK_BACK_SPACE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK).setAutomatic(); 73 73 } 74 74 75 75 /** 76 76 * This should work for all platforms. Yeah, should. … … 122 122 } 123 123 } 124 124 125 125 /** 126 126 * Get the package name including detailed version. … … 137 137 } 138 138 } 139 139 140 140 /** 141 141 * Get the Java package name including detailed version. … … 166 166 return null; 167 167 } 168 168 169 169 /** 170 170 * Get the Web Start package name including detailed version. 171 171 * 172 * Debian and Ubuntu OpenJDK packages are shipped with icedtea-web package, 172 * Debian and Ubuntu OpenJDK packages are shipped with icedtea-web package, 173 173 * but its version does not match main java package version. 174 * 174 * 175 175 * Only Debian based distributions are covered at the moment. 176 176 * This can be extended to other distributions if needed. 177 * 177 * 178 178 * Simply return {@code null} if there's no separate package for Java WebStart. 179 179 * … … 323 323 } 324 324 } 325 325 326 326 protected void askUpdateJava(String version) { 327 327 try { … … 339 339 "<b>"+tr("JOSM will soon stop working with this version; we highly recommend you to update to Java {0}.", "7")+"</b><br><br>"+ 340 340 tr("Would you like to update now ?")); 341 341 342 342 if (ed.showDialog().getValue() == 1) { 343 openUrl("http://www.java.com/download"); 343 openUrl("https://www.java.com/download"); 344 344 } 345 345 }
Note:
See TracChangeset
for help on using the changeset viewer.