Package com.nomagic.magicdraw.core
Class Application.Environment
java.lang.Object
com.nomagic.magicdraw.core.Application.Environment
- Enclosing class:
- Application
Contains application environment specific constants and utility methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns directory where configuration files for each user are stored.Returns install root directory + data folder.Directory in installation root where defaults are saved (custom diagrams, user modes etc.).Gets directory of examples.Gets application installation root.Gets directory of profiles.Returns directory of resources.getTempDir
(String path) Gets a temp directory which is unique for this application instance.Returns install root directory + templates folder.Directory in user home where config files are saved (custom diagrams, user modes etc.).Returns user home directory.
-
Constructor Details
-
Environment
public Environment()
-
-
Method Details
-
getDataDirectory
Returns install root directory + data folder.- Returns:
- the data folder.
-
getInstallRoot
Gets application installation root.- Returns:
- application installation root.
-
getConfigDir
Returns directory where configuration files for each user are stored. Creates config dirs if missing.- Returns:
- path to configuration directory.
-
getTemplatesDirectory
Returns install root directory + templates folder.- Returns:
- templates directory.
-
getUserHomeDirectory
Returns user home directory.- Returns:
- user home directory.
-
getExamplesDirectory
Gets directory of examples.- Returns:
- examples directory.
-
getProfilesDirectory
Gets directory of profiles.- Returns:
- profiles directory.
-
getResourceDirectory
Returns directory of resources.- Returns:
- resources directory.
-
getDefaultsDataDirectory
Directory in installation root where defaults are saved (custom diagrams, user modes etc.).- Returns:
- defaults data directory.
-
getUserDataDirectory
Directory in user home where config files are saved (custom diagrams, user modes etc.).- Returns:
- user data directory.
-
getTempDir
Gets a temp directory which is unique for this application instance.- Parameters:
path
- path in the temp folder. Returns temp folder root if path is empty.- Returns:
- application unique temporary folder.
-