projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos]
/
altosui
/
AltosUIPreferencesBackend.java
diff --git
a/altosui/AltosUIPreferencesBackend.java
b/altosui/AltosUIPreferencesBackend.java
index 69485ba48725e9c1902f6d75187f70b0f1a03a74..0dac9fc74f3dc3dad4c222824eeb10b0fd1be77f 100644
(file)
--- a/
altosui/AltosUIPreferencesBackend.java
+++ b/
altosui/AltosUIPreferencesBackend.java
@@
-17,9
+17,10
@@
package altosui;
package altosui;
-import java.
text.*
;
+import java.
io.File
;
import java.util.prefs.*;
import java.util.prefs.*;
-import org.altusmetrum.AltosLib.*;
+import org.altusmetrum.altoslib_1.*;
+import javax.swing.filechooser.FileSystemView;
public class AltosUIPreferencesBackend implements AltosPreferencesBackend {
public class AltosUIPreferencesBackend implements AltosPreferencesBackend {
@@
-74,7
+75,11
@@
public class AltosUIPreferencesBackend implements AltosPreferencesBackend {
}
public String[] keys() {
}
public String[] keys() {
- return _preferences.keys();
+ try {
+ return _preferences.keys();
+ } catch (BackingStoreException be) {
+ return null;
+ }
}
public void remove(String key) {
}
public void remove(String key) {
@@
-89,4
+94,8
@@
public class AltosUIPreferencesBackend implements AltosPreferencesBackend {
}
}
}
}
+ public File homeDirectory() {
+ /* Use the file system view default directory */
+ return FileSystemView.getFileSystemView().getDefaultDirectory();
+ }
}
}