Class GlobalDiskManagerImpl
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.app.services.GlobalDiskManagerImpl
-
- All Implemented Interfaces:
ApplicationComponent
,GlobalDiskManager
public class GlobalDiskManagerImpl extends java.lang.Object implements GlobalDiskManager, ApplicationComponent
Manages the root disk resource directory for the current user.- Author:
- Clément Fournier
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
APPSTATE_NAME
-
Constructor Summary
Constructors Constructor Description GlobalDiskManagerImpl(DesignerRoot root, java.nio.file.Path settingsDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.Path
defaultAppStateFile()
DesignerRoot
getDesignerRoot()
java.nio.file.Path
getSettingsDirectory()
Gets the main settings directory of the app.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.app.ApplicationComponent
getDebugName, getGlobalLanguageVersion, getLogCategory, getLogger, getMainStage, getService, globalLanguageProperty, isDeveloperMode, languageBindingsProperty, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
-
-
-
Field Detail
-
APPSTATE_NAME
public static final java.lang.String APPSTATE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GlobalDiskManagerImpl
public GlobalDiskManagerImpl(DesignerRoot root, java.nio.file.Path settingsDirectory)
-
-
Method Detail
-
defaultAppStateFile
public java.nio.file.Path defaultAppStateFile()
-
getSettingsDirectory
public java.nio.file.Path getSettingsDirectory()
Description copied from interface:GlobalDiskManager
Gets the main settings directory of the app. This directory contains all resource directories, the files containing the user-specific settings, etc. By default it's somewhere in${user.home}/.pmd
.- Specified by:
getSettingsDirectory
in interfaceGlobalDiskManager
-
getDesignerRoot
public DesignerRoot getDesignerRoot()
- Specified by:
getDesignerRoot
in interfaceApplicationComponent
-
-