20 package net.sf.gridarta.model.io;
28 import org.jetbrains.annotations.NotNull;
89 if (canonicalFile.startsWith(canonicalMapsDir)) {
91 mapPath = canonicalFile.substring(canonicalMapsDir.length());
92 baseDir = mapsDirectory;
95 mapPath = canonicalFile;
96 baseDir =
new File(
"/");
final ProjectSettings projectSettings
The ProjectSettings instance for obtaining folder information.
MapFile getMapFile(@NotNull final File file)
Returns a MapFile instance for a File.
static MapPath newMapPath(@NotNull final String string)
Creates a MapPath instance from string representation.
This class contains methods for converting relative map paths to absolute map paths and vice versa...
Settings that apply to a project.
Utility class for converting relative map paths to absolute map paths and vice versa.
A MapPath that is absolute, that is, it starts with a "/".
MapFile getMapFile(@NotNull final AbsoluteMapPath mapPath)
Returns a MapFile instance from an AbsoluteMapPath.
Base package of all Gridarta classes.
static String getCanonicalPath(@NotNull final File file)
Calls File#getCanonicalPath().
PathManager(@NotNull final ProjectSettings projectSettings)
Creates a new instance.
Utility-class for Gridarta's I/O.
Utility class for MapPath related functions.
static String getMapPath(@NotNull final File file, @NotNull final File baseDir)
Returns a relative path path for a File.
File getMapsDirectory()
Returns the default maps directory.
String getMapPath(@NotNull final File file)
Returns a map path for a File.
The location of a map file with a map directory.