Ignore:
Timestamp:
15.06.2009 20:22:46 (3 years ago)
Author:
Gubaer
Message:

fixed: bug in OsmApi.getOsmApi()
cleanup: exception handling in interfacing with OSM API
new: new action for updating individual elements with the their current state on the server (including new menu item in the file menu)
new: improved user feedback in case of conflicts
new: handles 410 Gone conflicts when uploading a changeset
new: undoable command for "purging" a primitive from the current dataset (necessary if the primitive is already deleted on the server and the user wants to remove it from its local dataset)
new: undoable command for "undeleting" an already deleted primitive on the server (kind of "cloning")
new: after a full upload, checks whether there are primitives in the local dataset which might be deleted on the server.
new: data structures for history data
new: history download support in io package

File:
1 edited

Legend:

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

    r1465 r1670  
    5050                Main.pleaseWaitDlg.currentAction.setText(tr("Downloading points {0} to {1}...", i * 5000, ((i + 1) * 5000))); 
    5151                InputStream in = getInputStream(url+i, Main.pleaseWaitDlg); 
    52                 if (in == null) 
     52                if (in == null) { 
    5353                    break; 
     54                } 
    5455                GpxData currentGpx = new GpxReader(in, null).data; 
    5556                if (result == null) { 
     
    8990     * @return A data set containing all data retrieved from that url 
    9091     */ 
    91     public DataSet parseOsm() throws SAXException, IOException { 
     92    @Override 
     93    public DataSet parseOsm() throws OsmTransferException { 
    9294        try { 
    9395            Main.pleaseWaitDlg.progress.setValue(0); 
     
    106108            if (cancel) 
    107109                return null; 
    108             throw e; 
     110            throw new OsmTransferException(e); 
    109111        } catch (SAXException e) { 
     112            throw new OsmTransferException(e); 
     113        } catch(OsmTransferException e) { 
    110114            throw e; 
    111115        } catch (Exception e) { 
    112116            if (cancel) 
    113117                return null; 
    114             if (e instanceof RuntimeException) 
    115                 throw (RuntimeException)e; 
    116             throw new RuntimeException(e); 
     118            throw new OsmTransferException(e); 
    117119        } 
    118120    } 
Note: See TracChangeset for help on using the changeset viewer.