Changeset 33243 in osm for applications/editors/josm/plugins/o5m/src/org
- Timestamp:
- 2017-04-15T16:52:41+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/o5m/src/org/openstreetmap/josm/plugins/o5m/io/O5mReader.java
r33164 r33243 25 25 import org.openstreetmap.josm.data.osm.User; 26 26 import org.openstreetmap.josm.data.osm.Way; 27 import org.openstreetmap.josm.data.osm.DataSet.UploadPolicy; 27 28 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 28 29 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 30 31 import org.openstreetmap.josm.io.IllegalDataException; 31 32 import org.openstreetmap.josm.tools.CheckParameterUtil; 32 33 34 33 35 34 /** … … 132 131 readFile(); 133 132 if (discourageUpload) 134 ds.setUpload Discouraged(true);133 ds.setUploadPolicy(UploadPolicy.DISCOURAGED); 135 134 } catch (IOException e) { 136 135 e.printStackTrace(); … … 716 715 } 717 716 CheckParameterUtil.ensureParameterNotNull(source, "source"); 718 719 O5mReader reader = new O5mReader(source); 720 717 return new O5mReader(source).doParseDataSet(source, progressMonitor); 718 } 719 720 @Override 721 protected DataSet doParseDataSet(InputStream source, ProgressMonitor progressMonitor) 722 throws IllegalDataException { 721 723 try { 722 724 progressMonitor.beginTask(tr("Prepare OSM data...", 2)); 723 725 progressMonitor.indeterminateSubTask(tr("Reading OSM data...")); 724 726 725 reader.parse();727 parse(); 726 728 progressMonitor.worked(1); 727 729 728 730 progressMonitor.indeterminateSubTask(tr("Preparing data set...")); 729 reader.prepareDataSet();731 prepareDataSet(); 730 732 progressMonitor.worked(1); 731 return reader.getDataSet();733 return getDataSet(); 732 734 } catch (IllegalDataException e) { 733 735 throw e; … … 738 740 } 739 741 } 740 741 742 }
Note:
See TracChangeset
for help on using the changeset viewer.