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

Method getPath

ij/src/main/java/ij/io/FileSaver.java:73–83  ·  view source on GitHub ↗
(String type, String extension)

Source from the content-addressed store, hash-verified

71 }
72
73 String getPath(String type, String extension) {
74 name = imp.getTitle();
75 SaveDialog sd = new SaveDialog("Save as "+type, name, extension);
76 name = sd.getFileName();
77 if (name==null)
78 return null;
79 directory = sd.getDirectory();
80 imp.startTiming();
81 String path = directory+name;
82 return path;
83 }
84
85 /** Saves the image or stack in TIFF format using a save file
86 dialog. Returns false if the user selects cancel. Equivalent to

Callers 11

saveAsTiffMethod · 0.95
saveAsZipMethod · 0.95
saveAsGifMethod · 0.95
saveAsJpegMethod · 0.95
saveAsBmpMethod · 0.95
saveAsPgmMethod · 0.95
saveAsPngMethod · 0.95
saveAsFitsMethod · 0.95
saveAsRawMethod · 0.95
saveAsTextMethod · 0.95
saveAsLutMethod · 0.95

Calls 4

getFileNameMethod · 0.95
getDirectoryMethod · 0.95
startTimingMethod · 0.80
getTitleMethod · 0.65

Tested by

no test coverage detected