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/OsmServerLocationReader.java

    r1523 r1670  
    2222     * Method to download OSM files from somewhere 
    2323     */ 
    24     public DataSet parseOsm() throws SAXException, IOException { 
     24    @Override 
     25    public DataSet parseOsm() throws OsmTransferException { 
    2526        try { 
    2627            Main.pleaseWaitDlg.progress.setValue(0); 
     
    3233            Main.pleaseWaitDlg.currentAction.setText(tr("Downloading OSM data...")); 
    3334            final DataSet data = OsmReader.parseDataSet(in, null, Main.pleaseWaitDlg); 
    34 //          Bounds bounds = new Bounds(new LatLon(lat1, lon1), new LatLon(lat2, lon2)); 
    35 //          DataSource src = new DataSource(bounds, origin); 
    36 //          data.dataSources.add(src); 
    3735            in.close(); 
    3836            activeConnection = null; 
     
    4139            if (cancel) 
    4240                return null; 
    43             throw e; 
     41            throw new OsmTransferException(e); 
    4442        } catch (SAXException e) { 
     43            throw new OsmTransferException(e); 
     44        } catch(OsmTransferException e) { 
    4545            throw e; 
    4646        } catch (Exception e) { 
    4747            if (cancel) 
    4848                return null; 
    49             if (e instanceof RuntimeException) 
    50                 throw (RuntimeException)e; 
    51             throw new RuntimeException(e); 
     49            throw new OsmTransferException(e); 
    5250        } 
    5351    } 
Note: See TracChangeset for help on using the changeset viewer.