Changeset 5859 in josm for trunk/src/org/openstreetmap/josm/io/OsmChangeImporter.java
- Timestamp:
- 2013-04-14T19:10:11+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmChangeImporter.java
r5452 r5859 38 38 39 39 if (file.getName().endsWith(".osc")) { 40 importData(in, file );40 importData(in, file, progressMonitor); 41 41 } else if (file.getName().endsWith(".gz")) { 42 importData(getGZipInputStream(in), file );42 importData(getGZipInputStream(in), file, progressMonitor); 43 43 } else { 44 importData(getBZip2InputStream(in), file );44 importData(getBZip2InputStream(in), file, progressMonitor); 45 45 } 46 46 … … 52 52 53 53 protected void importData(InputStream in, final File associatedFile) throws IllegalDataException { 54 final DataSet dataSet = OsmChangeReader.parseDataSet(in, NullProgressMonitor.INSTANCE); 54 importData(in, associatedFile, NullProgressMonitor.INSTANCE); 55 } 56 57 protected void importData(InputStream in, final File associatedFile, ProgressMonitor progressMonitor) throws IllegalDataException { 58 final DataSet dataSet = OsmChangeReader.parseDataSet(in, progressMonitor); 55 59 final OsmDataLayer layer = new OsmDataLayer(dataSet, associatedFile.getName(), associatedFile); 56 60 addDataLayer(dataSet, layer, associatedFile.getPath());
Note:
See TracChangeset
for help on using the changeset viewer.