org.simbrain.world.dataworld
Class DataWorldPreferences

java.lang.Object
  extended by org.simbrain.world.dataworld.DataWorldPreferences

public final class DataWorldPreferences
extends Object

Preferences for the data world package.


Field Summary
static String FS
          System file separator property.
 
Method Summary
static String getCurrentDirectory()
          Return the current directory preference setting.
static String getDefaultCurrentDirectory()
          Return the default current directory.
static void restoreDefaults()
          Restore the default properties.
static void saveAll()
          Save all user preferences.
static void setCurrentDirectory(String dir)
          Set the current directory preference setting to dir.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FS

public static final String FS
System file separator property.

Method Detail

saveAll

public static void saveAll()
Save all user preferences.


restoreDefaults

public static void restoreDefaults()
Restore the default properties.


setCurrentDirectory

public static void setCurrentDirectory(String dir)
Set the current directory preference setting to dir.

Parameters:
dir - current directory preference setting

getCurrentDirectory

public static String getCurrentDirectory()
Return the current directory preference setting. Defaults to the value returned by getDefaultCurrentDirectory().

Returns:
the current directory preference setting

getDefaultCurrentDirectory

public static String getDefaultCurrentDirectory()
Return the default current directory.

Returns:
the default current directory