altos{lib,ui,droid}: move OS specific code out of altoslib
[fw/altos] / altosui / AltosUIPreferencesBackend.java
index 210dcb8bb14cdebb536ce18fb29637ade64f038c..3131fd3286ce917de9f3cf5c7eee1e23d5cc716f 100644 (file)
 
 package altosui;
 
+import java.io.File;
 import java.util.prefs.*;
 import org.altusmetrum.AltosLib.*;
+import javax.swing.filechooser.FileSystemView;
 
 public class AltosUIPreferencesBackend implements AltosPreferencesBackend {
 
@@ -92,4 +94,8 @@ public class AltosUIPreferencesBackend implements AltosPreferencesBackend {
                }
        }
 
+       public File homeDirectory() {
+               /* Use the file system view default directory */
+               return FileSystemView.getFileSystemView().getDefaultDirectory();
+       }
 }