Changeset 1811 in josm for trunk/src/org/openstreetmap/josm/io/OsmHistoryReader.java
- Timestamp:
- 2009-07-19T17:38:55+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmHistoryReader.java
r1670 r1811 18 18 import org.openstreetmap.josm.data.osm.history.HistoryRelation; 19 19 import org.openstreetmap.josm.data.osm.history.HistoryWay; 20 import org.openstreetmap.josm.gui. PleaseWaitDialog;20 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 21 21 import org.openstreetmap.josm.tools.DateUtils; 22 22 import org.xml.sax.Attributes; … … 32 32 * {@see OsmPrimitive}s. We use objects derived from {@see HistoryOsmPrimitive} instead and we 33 33 * keep the data in a dedicated {@see HistoryDataSet}. 34 * 34 * 35 35 */ 36 36 public class OsmHistoryReader { … … 210 210 } 211 211 212 public HistoryDataSet parse(P leaseWaitDialog dialog) throws SAXException, IOException {212 public HistoryDataSet parse(ProgressMonitor progressMonitor) throws SAXException, IOException { 213 213 InputSource inputSource = new InputSource(new InputStreamReader(in, "UTF-8")); 214 dialog.currentAction.setText("Parsing OSM history data ...");214 progressMonitor.beginTask(tr("Parsing OSM history data ...")); 215 215 try { 216 216 SAXParserFactory.newInstance().newSAXParser().parse(inputSource, new Parser()); … … 218 218 e1.printStackTrace(); // broken SAXException chaining 219 219 throw new SAXException(e1); 220 } finally { 221 progressMonitor.finishTask(); 220 222 } 221 223 return data;
Note:
See TracChangeset
for help on using the changeset viewer.