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/io/OsmApi.java

    r1688 r1690  
    44import static org.openstreetmap.josm.tools.I18n.tr; 
    55 
     6import java.awt.EventQueue; 
    67import java.io.BufferedReader; 
    78import java.io.BufferedWriter; 
     
    323324        } 
    324325        notifyStatusMessage(tr("Uploading...")); 
     326        setAutoProgressIndication(true); 
    325327 
    326328        String diff = duv.getDocument(); 
     
    330332        } catch(Exception e) { 
    331333            throw new OsmTransferException(e); 
     334        } finally { 
     335            setAutoProgressIndication(false); 
    332336        } 
    333337 
     
    481485        Main.pleaseWaitDlg.progress.setValue(current + delta); 
    482486    } 
     487 
     488 
     489    protected void setAutoProgressIndication(final boolean enabled) { 
     490        EventQueue.invokeLater( 
     491                new Runnable() { 
     492                    public void run() { 
     493                        Main.pleaseWaitDlg.setIndeterminate(enabled); 
     494                    } 
     495                } 
     496        ); 
     497    } 
    483498} 
Note: See TracChangeset for help on using the changeset viewer.