Package com.nomagic.magicdraw.core
Class EnvironmentSpecificFileLocations
- java.lang.Object
-
- com.nomagic.magicdraw.core.EnvironmentSpecificFileLocations
-
- All Implemented Interfaces:
FileLocationRegister
@OpenApi public final class EnvironmentSpecificFileLocations extends java.lang.Object implements FileLocationRegister
This class is for saving environment specific file locations.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvironmentSpecificFileLocations
getInstance()
Get instance.void
setFileLocation(java.lang.String locationNameID, java.io.File file)
Before saving file locations file is checked if it still exist.
-
-
-
Method Detail
-
getInstance
@OpenApi public static EnvironmentSpecificFileLocations getInstance()
Get instance.- Returns:
- EnvironmentSpecificFileLocations type object.
-
setFileLocation
@OpenApi public void setFileLocation(java.lang.String locationNameID, java.io.File file)
Before saving file locations file is checked if it still exist. It is done because user may delete directory, rename it, move it... If file location does not exist anymore default(User document directory) location is used.- Specified by:
setFileLocation
in interfaceFileLocationRegister
- Parameters:
locationNameID
- a unique id for storing/getting file locations.file
- type object
-
-