Changeset 1670 in josm for trunk/src/org/openstreetmap/josm/io/OsmConnection.java
- Timestamp:
- 15.06.2009 20:22:46 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmConnection.java
r1523 r1670 22 22 23 23 import org.openstreetmap.josm.Main; 24 import org.openstreetmap.josm.gui.ExtendedDialog; 24 import org.openstreetmap.josm.gui.ExtendedDialog; 25 25 import org.openstreetmap.josm.tools.Base64; 26 26 import org.openstreetmap.josm.tools.GBC; … … 33 33 */ 34 34 public 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 }42 35 43 36 protected boolean cancel = false; … … 77 70 if (passwordtried || username.equals("") || password.equals("")) { 78 71 JPanel p = new JPanel(new GridBagLayout()); 79 if (!username.equals("") && !password.equals("")) 72 if (!username.equals("") && !password.equals("")) { 80 73 p.add(new JLabel(tr("Incorrect password or username.")), GBC.eop()); 74 } 81 75 p.add(new JLabel(tr("Username")), GBC.std().insets(0,0,10,0)); 82 76 JTextField usernameField = new JTextField(username, 20); … … 92 86 p.add(savePassword, GBC.eop()); 93 87 94 int choice = new ExtendedDialog(Main.parent, 95 tr("Enter Password"), 88 int choice = new ExtendedDialog(Main.parent, 89 tr("Enter Password"), 96 90 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 100 94 if (choice != 1) { 101 95 authCancelled = true;
Note: See TracChangeset
for help on using the changeset viewer.
