Changeset 30102 in osm for applications/editors/josm/plugins/DirectDownload
- Timestamp:
- 2013-11-28T23:34:57+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/DirectDownload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectDownload/build.xml
r29854 r30102 4 4 <property name="commit.message" value="Commit message"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="6 162"/>6 <property name="plugin.main.version" value="6421"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DirectDownload.java
r29776 r30102 18 18 import org.openstreetmap.josm.plugins.Plugin; 19 19 import org.openstreetmap.josm.plugins.PluginInformation; 20 import org.openstreetmap.josm.tools.Utils; 20 21 import org.xml.sax.SAXException; 21 22 … … 52 53 try { 53 54 URL trackDataUrl = new URL(urlString); 54 InputStream is = trackDataUrl .openStream();55 InputStream is = Utils.openURLAndDecompress(trackDataUrl, true); 55 56 56 57 GpxReader r = new GpxReader(is); … … 77 78 tr("Invalid URL {0}", urlString)); 78 79 } catch (java.io.IOException e) { 80 e.printStackTrace(); 79 81 JOptionPane.showMessageDialog(Main.parent, 80 82 tr("Error fetching URL {0}", urlString)); 81 83 } catch (SAXException e) { 84 e.printStackTrace(); 82 85 JOptionPane.showMessageDialog(Main.parent, 83 86 tr("Error parsing data from URL {0}", urlString));
Note:
See TracChangeset
for help on using the changeset viewer.