MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / addSeparator

Method addSeparator

ij/src/main/java/ij/IJ.java:2011–2021  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

2009 }
2010
2011 public static String addSeparator(String path) {
2012 if (path==null)
2013 return null;
2014 if (path.length()>0 && !(path.endsWith(File.separator)||path.endsWith("/"))) {
2015 if (IJ.isWindows()&&path.contains(File.separator))
2016 path += File.separator;
2017 else
2018 path += "/";
2019 }
2020 return path;
2021 }
2022
2023 /** Alias for getDirectory(). */
2024 public static String getDir(String title) {

Callers 15

getDirectoryMethod · 0.95
getStubPathMethod · 0.95
VirtualStackMethod · 0.95
getDirectoryMethod · 0.95
showDialogMethod · 0.95
openAllVirtualMethod · 0.95
initMethod · 0.95
addJarsMethod · 0.95
openDirectoryMethod · 0.95
showDialogMethod · 0.95
multiCropMethod · 0.95
setDefaultDirectoryMethod · 0.95

Calls 3

isWindowsMethod · 0.95
lengthMethod · 0.65
containsMethod · 0.45

Tested by

no test coverage detected