Ignore:
Timestamp:
2009-11-22T12:06:30+01:00 (15 years ago)
Author:
jttt
Message:

Added Dataset.beginUpdate and Dataset.endUpdate that can be used to temporarily stop dataset events in case of big changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r2470 r2497  
    563563
    564564            progressMonitor.subTask(tr("Preparing data set..."));
    565             reader.processNodesAfterParsing();
    566             reader.processWaysAfterParsing();
    567             reader.processRelationsAfterParsing();
     565            reader.ds.beginUpdate();
     566            try {
     567                reader.processNodesAfterParsing();
     568                reader.processWaysAfterParsing();
     569                reader.processRelationsAfterParsing();
     570            } finally {
     571                reader.ds.endUpdate();
     572            }
    568573            progressMonitor.worked(1);
    569574            return reader.getDataSet();
Note: See TracChangeset for help on using the changeset viewer.