Ignore:
Timestamp:
2009-09-04T17:33:27+02:00 (17 years ago)
Author:
Gubaer
Message:

fixed #2322: Regression in r2038 (patches "JOSM destroys its preferences, when disk is full")

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/BookmarkList.java

    r2017 r2053  
    1414import org.openstreetmap.josm.Main;
    1515import org.openstreetmap.josm.data.Preferences;
     16
     17import sun.security.action.GetBooleanAction;
    1618
    1719/**
     
    4446            JOptionPane.showMessageDialog(
    4547                    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                    ),
    4752                    tr("Error"),
    4853                    JOptionPane.ERROR_MESSAGE
  • trunk/src/org/openstreetmap/josm/gui/MainApplet.java

    r2017 r2053  
    1010import java.awt.event.KeyEvent;
    1111import java.io.File;
     12import java.io.IOException;
    1213import java.net.URL;
    1314import java.util.Arrays;
     
    3637        public UploadPreferencesAction() {
    3738            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);
    3940        }
    4041        public void actionPerformed(ActionEvent e) {
     
    7071        for (String[] s : paramInfo) {
    7172            Collection<String> p = readParameter(s[0], args.get(s[0]));
    72             if (p != null)
     73            if (p != null) {
    7374                args.put(s[0], p);
     75            }
    7476        }
    7577        if (!args.containsKey("geometry") && getParameter("width") != null && getParameter("height") != null) {
     
    98100        Main.pref = new ServerSidePreferences(getCodeBase());
    99101        ((ServerSidePreferences)Main.pref).download(username, password);
    100 
    101102        Main.preConstructorInit(args);
    102103        Main.parent = this;
     
    124125        String param = getParameter(s);
    125126        if (param != null) {
    126             if (v == null)
     127            if (v == null) {
    127128                v = new LinkedList<String>();
     129            }
    128130            v.addAll(Arrays.asList(param.split(";")));
    129131        }
Note: See TracChangeset for help on using the changeset viewer.