|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.appframework.PropertiesAndDirectories
public class PropertiesAndDirectories
Collects paths and methods for accessing properties that store's on the participant's machine and then accesses again.
| Field Summary | |
|---|---|
protected static java.io.File |
_DIR
|
protected static java.io.File |
APPLICATION_DATA_DIR
|
protected static java.io.File |
DESKTOP_DIR
|
static boolean |
isMac
|
protected static java.io.File |
LAUNCH_DIR
|
static int |
LINUX
|
protected static java.io.File |
LOG_DIR
|
static int |
MAC
|
static int |
MAC_OLD
|
protected static int |
os
|
static java.lang.String[] |
OS_NAMES
|
static int |
OTHER_UNIX
|
protected static java.io.File |
TEMP_DIR
|
protected static java.io.File |
THIS_APPLICATION_DIR
|
static int |
UNKNOWN
|
protected static java.io.File |
USER_DIR
|
static int |
WINDOWS
|
| Constructor Summary | |
|---|---|
PropertiesAndDirectories()
|
|
| Method Summary | |
|---|---|
static java.io.File |
applicationDataDir()
On Windows, this is typically c:\Documents and Settings\User Name\Application Data |
static java.lang.String |
applicationName()
|
static java.io.File |
createDirsAsNeeded(java.io.File path)
Create directories associated with this path, if possible. |
static java.io.File |
desktopDir()
A default place for storing the user's files. |
static java.io.File |
getLaunchDir()
For an application, the directory launched from. |
static java.lang.String |
getOsName()
|
static java.io.File |
javaDeploymentProfile()
Path to the Java deployment properties file. |
static java.io.File |
logDir()
|
static void |
main(java.lang.String[] args)
|
static int |
os()
|
static void |
printProperties()
|
static boolean |
runningAsApplication()
|
static void |
setApplicationName(java.lang.String apName)
|
static void |
setOSSpecificProperties()
|
static java.lang.String |
sysProperty(java.lang.String propName)
|
static java.io.File |
sysTempDir()
|
static java.io.File |
tempDir()
|
static java.io.File |
thisApplicationDir()
This function now uses the Assets class that manages caching and retrieval of assets. |
static java.io.File |
userDir()
A default place for storing the user's files. |
static java.lang.String |
userDirName()
Root directory of the current user's workspace. |
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static java.io.File USER_DIR
protected static java.io.File DESKTOP_DIR
protected static java.io.File LOG_DIR
protected static java.io.File APPLICATION_DATA_DIR
protected static java.io.File THIS_APPLICATION_DIR
protected static java.io.File LAUNCH_DIR
protected static java.io.File TEMP_DIR
protected static java.io.File _DIR
public static final int UNKNOWN
public static final int WINDOWS
public static final int LINUX
public static final int MAC_OLD
public static final int MAC
public static final int OTHER_UNIX
public static final java.lang.String[] OS_NAMES
protected static int os
public static final boolean isMac
| Constructor Detail |
|---|
public PropertiesAndDirectories()
| Method Detail |
|---|
public static int os()
public static java.lang.String getOsName()
public static void setApplicationName(java.lang.String apName)
public static java.lang.String applicationName()
public static java.io.File thisApplicationDir()
public static java.io.File logDir()
public static java.io.File createDirsAsNeeded(java.io.File path)
path -
public static java.io.File tempDir()
public static java.io.File sysTempDir()
public static java.lang.String sysProperty(java.lang.String propName)
public static java.io.File applicationDataDir()
public static java.io.File userDir()
public static java.io.File desktopDir()
public static java.io.File getLaunchDir()
public static void printProperties()
public static void main(java.lang.String[] args)
public static java.lang.String userDirName()
public static java.io.File javaDeploymentProfile()
public static boolean runningAsApplication()
public static void setOSSpecificProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||