Class GlobalDiskManagerImpl
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.app.services.GlobalDiskManagerImpl
-
- All Implemented Interfaces:
ApplicationComponent
,GlobalDiskManager
public class GlobalDiskManagerImpl extends 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 String
APPSTATE_NAME
-
Constructor Summary
Constructors Constructor Description GlobalDiskManagerImpl(DesignerRoot root, Path settingsDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
defaultAppStateFile()
DesignerRoot
getDesignerRoot()
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, getLogCategory, getLogger, getMainStage, getService, globalLanguageProperty, isDeveloperMode, languageBindingsProperty, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
-
-
-
Field Detail
-
APPSTATE_NAME
public static final String APPSTATE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GlobalDiskManagerImpl
public GlobalDiskManagerImpl(DesignerRoot root, Path settingsDirectory)
-
-
Method Detail
-
defaultAppStateFile
public Path defaultAppStateFile()
-
getSettingsDirectory
public Path getSettingsDirectory()
Description copied from interface:GlobalDiskManager
Gets the main settings directory of the app. This directory contains allresource 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
-
-