MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getRelativePath

Method getRelativePath

src/org/opensourcephysics/controls/XML.java:396–398  ·  view source on GitHub ↗

Gets a path relative to the default user directory. @param absolutePath the absolute path @return the relative path, with forward slashes

(String absolutePath)

Source from the content-addressed store, hash-verified

394 * @return the relative path, with forward slashes
395 */
396 public static String getRelativePath(String absolutePath) {
397 return getPathRelativeTo(absolutePath, getUserDirectory());
398 }
399
400 /**
401 * Gets the default user directory.

Callers 13

actionPerformedMethod · 0.95
saveTableDataToFileMethod · 0.95
saveAsMethod · 0.95
openMethod · 0.95
saveAsMethod · 0.95
MovieVideoMethod · 0.95
loadMethod · 0.95
saveXMLMethod · 0.95
saveXMLMethod · 0.95
saveLogAsMethod · 0.95
saveXMLAsMethod · 0.95
runMethod · 0.95

Calls 2

getPathRelativeToMethod · 0.95
getUserDirectoryMethod · 0.95

Tested by

no test coverage detected