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

Method recordPath

ij/src/main/java/ij/plugin/frame/Recorder.java:531–546  ·  view source on GitHub ↗
(String key, String path)

Source from the content-addressed store, hash-verified

529 }
530
531 public static void recordPath(String key, String path) {
532 if (key==null || !recordPath) {
533 recordPath = true;
534 return;
535 }
536 key = trimKey(key);
537 path = fixPath(path);
538 path = addQuotes(path);
539 if (commandOptions!=null && commandOptions.contains(key+"="+path))
540 return; // don't record duplicate
541 checkForDuplicate(key+"=", path);
542 if (commandOptions==null || commandOptions.equals(" "))
543 commandOptions = key+"="+path;
544 else
545 commandOptions += " "+key+"="+path;
546 }
547
548 public static void recordOption(String key) {
549 if (key==null) return;

Callers 4

getFileNameMethod · 0.95
getDirectoryMethod · 0.95
openMultipleMethod · 0.95
getFileNameMethod · 0.95

Calls 6

trimKeyMethod · 0.95
fixPathMethod · 0.95
addQuotesMethod · 0.95
checkForDuplicateMethod · 0.95
containsMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected