Changeset 2053 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2009-09-04T17:33:27+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
-
BookmarkList.java (modified) (2 diffs)
-
MainApplet.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/BookmarkList.java
r2017 r2053 14 14 import org.openstreetmap.josm.Main; 15 15 import org.openstreetmap.josm.data.Preferences; 16 17 import sun.security.action.GetBooleanAction; 16 18 17 19 /** … … 44 46 JOptionPane.showMessageDialog( 45 47 Main.parent, 46 tr("<html>Could not read bookmarks.<br>{0}</html>", e.getMessage()), 48 tr("<html>Could not read bookmarks from<br>''{0}''<br>Error was: {1}</html>", 49 Main.pref.getBookmarksFile(), 50 e.getMessage() 51 ), 47 52 tr("Error"), 48 53 JOptionPane.ERROR_MESSAGE -
trunk/src/org/openstreetmap/josm/gui/MainApplet.java
r2017 r2053 10 10 import java.awt.event.KeyEvent; 11 11 import java.io.File; 12 import java.io.IOException; 12 13 import java.net.URL; 13 14 import java.util.Arrays; … … 36 37 public UploadPreferencesAction() { 37 38 super(tr("Upload Preferences"), "upload-preferences", tr("Upload the current preferences to the server"), 38 Shortcut.registerShortcut("applet:uploadprefs", tr("Upload Preferences"), KeyEvent.VK_U, Shortcut.GROUP_HOTKEY), true); 39 Shortcut.registerShortcut("applet:uploadprefs", tr("Upload Preferences"), KeyEvent.VK_U, Shortcut.GROUP_HOTKEY), true); 39 40 } 40 41 public void actionPerformed(ActionEvent e) { … … 70 71 for (String[] s : paramInfo) { 71 72 Collection<String> p = readParameter(s[0], args.get(s[0])); 72 if (p != null) 73 if (p != null) { 73 74 args.put(s[0], p); 75 } 74 76 } 75 77 if (!args.containsKey("geometry") && getParameter("width") != null && getParameter("height") != null) { … … 98 100 Main.pref = new ServerSidePreferences(getCodeBase()); 99 101 ((ServerSidePreferences)Main.pref).download(username, password); 100 101 102 Main.preConstructorInit(args); 102 103 Main.parent = this; … … 124 125 String param = getParameter(s); 125 126 if (param != null) { 126 if (v == null) 127 if (v == null) { 127 128 v = new LinkedList<String>(); 129 } 128 130 v.addAll(Arrays.asList(param.split(";"))); 129 131 }
Note:
See TracChangeset
for help on using the changeset viewer.
