public class PathManager
extends java.lang.Object
Constructor and Description |
---|
PathManager(@NotNull ProjectSettings projectSettings)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull MapFile |
getMapFile(@NotNull AbsoluteMapPath mapPath)
Returns a
MapFile instance from an AbsoluteMapPath . |
@NotNull MapFile |
getMapFile(@NotNull java.io.File file)
Returns a
MapFile instance for a File . |
@NotNull java.lang.String |
getMapPath(@NotNull java.io.File file)
Returns a map path for a
File . |
public PathManager(@NotNull @NotNull ProjectSettings projectSettings)
projectSettings
- the project settings instance for obtaining folder
information@NotNull public @NotNull java.lang.String getMapPath(@NotNull @NotNull java.io.File file)
File
.file
- the file@NotNull public @NotNull MapFile getMapFile(@NotNull @NotNull AbsoluteMapPath mapPath)
MapFile
instance from an AbsoluteMapPath
.mapPath
- the map path@NotNull public @NotNull MapFile getMapFile(@NotNull @NotNull java.io.File file)
MapFile
instance for a File
. If the file points
into the maps directory, a properly based map file is returned. Otherwise
a map file based on the root directory is returned.file
- the file