Changeset 5122 in josm for trunk/src/org


Ignore:
Timestamp:
2012-03-26T01:38:24+02:00 (13 years ago)
Author:
Don-vip
Message:

Add ProgressMonitor to DataSet.mergeFrom()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r5062 r5122  
    3737import org.openstreetmap.josm.data.projection.Projection;
    3838import org.openstreetmap.josm.data.projection.ProjectionChangeListener;
     39import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    3940import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
    4041import org.openstreetmap.josm.tools.FilteredCollection;
     
    11661167     */
    11671168    public void mergeFrom(DataSet from) {
     1169        mergeFrom(from, null);
     1170    }
     1171   
     1172    /**
     1173     * Moves all primitives and datasources from DataSet "from" to this DataSet
     1174     * @param from The source DataSet
     1175     */
     1176    public void mergeFrom(DataSet from, ProgressMonitor progressMonitor) {
    11681177        if (from != null) {
    1169             new DataSetMerger(this, from).merge();
     1178            new DataSetMerger(this, from).merge(progressMonitor);
    11701179            dataSources.addAll(from.dataSources);
    11711180            from.dataSources.clear();
Note: See TracChangeset for help on using the changeset viewer.