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

    r1523 r1670  
    2222 
    2323import org.openstreetmap.josm.Main; 
    24 import org.openstreetmap.josm.gui.ExtendedDialog;  
     24import org.openstreetmap.josm.gui.ExtendedDialog; 
    2525import org.openstreetmap.josm.tools.Base64; 
    2626import org.openstreetmap.josm.tools.GBC; 
     
    3333 */ 
    3434public class OsmConnection { 
    35  
    36     public static class OsmParseException extends Exception { 
    37         public OsmParseException() {super();} 
    38         public OsmParseException(String message, Throwable cause) {super(message, cause);} 
    39         public OsmParseException(String message) {super(message);} 
    40         public OsmParseException(Throwable cause) {super(cause);} 
    41     } 
    4235 
    4336    protected boolean cancel = false; 
     
    7770            if (passwordtried || username.equals("") || password.equals("")) { 
    7871                JPanel p = new JPanel(new GridBagLayout()); 
    79                 if (!username.equals("") && !password.equals("")) 
     72                if (!username.equals("") && !password.equals("")) { 
    8073                    p.add(new JLabel(tr("Incorrect password or username.")), GBC.eop()); 
     74                } 
    8175                p.add(new JLabel(tr("Username")), GBC.std().insets(0,0,10,0)); 
    8276                JTextField usernameField = new JTextField(username, 20); 
     
    9286                p.add(savePassword, GBC.eop()); 
    9387 
    94                 int choice = new ExtendedDialog(Main.parent,  
    95                         tr("Enter Password"),  
     88                int choice = new ExtendedDialog(Main.parent, 
     89                        tr("Enter Password"), 
    9690                        p, 
    97                         new String[] {tr("Login"), tr("Cancel")},  
    98                         new String[] {"ok.png", "cancel.png"}).getValue();   
    99                  
     91                        new String[] {tr("Login"), tr("Cancel")}, 
     92                        new String[] {"ok.png", "cancel.png"}).getValue(); 
     93 
    10094                if (choice != 1) { 
    10195                    authCancelled = true; 
Note: See TracChangeset for help on using the changeset viewer.