Ignore:
Timestamp:
23.06.2009 22:03:37 (3 years ago)
Author:
Gubaer
Message:

new: MultiFetchServerObjectReader using APIs Multi Fetch method
update: now uses Multi Fetch to check for deleted primitives on the server
update: now uses Multi Fetch to update the selected primitives with the state from the server
fixed: cleaned up merging in MergeVisitor
new: conflict resolution dialog; now resolves conflicts due to different visibilities
new: replacement for realEqual() on OsmPrimitive and derived classes; realEqual now @deprecated
fixed: cleaning up OsmReader
fixed: progress indication in OsmApi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r1677 r1690  
    245245    public void mergeFrom(final DataSet from) { 
    246246        final MergeVisitor visitor = new MergeVisitor(data,from); 
    247         for (final OsmPrimitive osm : from.allPrimitives()) { 
    248             osm.visit(visitor); 
    249         } 
    250         visitor.fixReferences(); 
     247        visitor.merge(); 
    251248 
    252249        Area a = data.getDataSourceArea(); 
     
    274271        Main.map.mapView.repaint(); 
    275272 
    276         if (visitor.conflicts.isEmpty()) 
     273        if (visitor.getConflicts().isEmpty()) 
    277274            return; 
    278275        final ConflictDialog dlg = Main.map.conflictDialog; 
    279         dlg.add(visitor.conflicts); 
    280         JOptionPane.showMessageDialog(Main.parent,tr("There were {0} conflicts during import.", visitor.conflicts.size())); 
     276        dlg.add(visitor.getConflicts()); 
     277        JOptionPane.showMessageDialog(Main.parent,tr("There were {0} conflicts during import.", visitor.getConflicts().size())); 
    281278        if (!dlg.isVisible()) { 
    282279            dlg.action.actionPerformed(new ActionEvent(this, 0, "")); 
Note: See TracChangeset for help on using the changeset viewer.