@OpenApiAll
public static class Application.Environment
extends java.lang.Object
Constructor and Description |
---|
Environment() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConfigDir()
Returns directory where configuration files for each user are stored.
|
java.lang.String |
getDataDirectory()
Returns install root directory + data folder.
|
java.io.File |
getDefaultsDataDirectory()
Directory in installation root where defaults are saved (custom diagrams, user modes etc).
|
java.lang.String |
getExamplesDirectory()
Gets directory of examples.
|
java.lang.String |
getInstallRoot()
Gets application installation root.
|
java.lang.String |
getProfilesDirectory()
Gets directory of profiles.
|
java.lang.String |
getResourceDirectory()
Returns directory of resources.
|
java.io.File |
getTempDir(java.lang.String path)
Gets a temp directory which is unique for this application instance.
|
java.lang.String |
getTemplatesDirectory()
Returns install root directory + templates folder.
|
java.io.File |
getUserDataDirectory()
Directory in user home where config files are saved (custom diagrams, user modes etc).
|
java.lang.String |
getUserHomeDirectory()
Returns user home directory.
|
public java.lang.String getDataDirectory()
public java.lang.String getInstallRoot()
public java.lang.String getConfigDir()
public java.lang.String getTemplatesDirectory()
public java.lang.String getUserHomeDirectory()
public java.lang.String getExamplesDirectory()
public java.lang.String getProfilesDirectory()
public java.lang.String getResourceDirectory()
public java.io.File getDefaultsDataDirectory()
public java.io.File getUserDataDirectory()
public java.io.File getTempDir(@CheckForNull java.lang.String path)
path
- path in the temp folder. Returns temp folder root if path is empty.