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/gui/PleaseWaitRunnable.java

    r1647 r1670  
    1717 
    1818import org.openstreetmap.josm.Main; 
     19import org.openstreetmap.josm.io.OsmTransferException; 
    1920import org.xml.sax.SAXException; 
    2021 
     
    109110                x.printStackTrace(); 
    110111                errorMessage = x.getMessage(); 
     112            } catch(OsmTransferException x) { 
     113                x.printStackTrace(); 
     114                if (x.getCause() != null) { 
     115                    errorMessage = x.getCause().getMessage(); 
     116                } else { 
     117                    errorMessage = x.getMessage(); 
     118                } 
    111119            } finally { 
    112120                closeDialog(); 
     
    134142     * is called. finish() is called in any case. 
    135143     */ 
    136     protected abstract void realRun() throws SAXException, IOException; 
     144    protected abstract void realRun() throws SAXException, IOException, OsmTransferException; 
    137145 
    138146    /** 
     
    158166                        Main.pleaseWaitDlg.dispose(); 
    159167                    } 
    160                     if (errorMessage != null && !silent) 
     168                    if (errorMessage != null && !silent) { 
    161169                        JOptionPane.showMessageDialog(Main.parent, errorMessage); 
     170                    } 
    162171                } 
    163172            }; 
    164173 
    165174            // make sure, this is called in the dispatcher thread ASAP 
    166             if (EventQueue.isDispatchThread()) 
     175            if (EventQueue.isDispatchThread()) { 
    167176                runnable.run(); 
    168             else 
     177            } else { 
    169178                EventQueue.invokeAndWait(runnable); 
     179            } 
    170180 
    171181        } catch (InterruptedException e) { 
Note: See TracChangeset for help on using the changeset viewer.