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

Method getPath

ij/src/main/java/ij/io/SaveDialog.java:281–288  ·  view source on GitHub ↗
(ImagePlus imp, String extension)

Source from the content-addressed store, hash-verified

279 }
280
281 public static String getPath(ImagePlus imp, String extension) {
282 String title = imp!=null?imp.getTitle():"Untitled";
283 SaveDialog sd = new SaveDialog("Save As", title, extension);
284 if (sd.getFileName()==null)
285 return null;
286 else
287 return sd.getDirectory()+sd.getFileName();
288 }
289
290}

Callers 15

saveMethod · 0.95
saveMethod · 0.95
openFilesMethod · 0.45
checkSubdirectoryMethod · 0.45
checkPathMethod · 0.45
copyFileMethod · 0.45
newPanelMethod · 0.45
hasPanelForNodeMethod · 0.45
getPanelForNodeMethod · 0.45
TreePanelMethod · 0.45
restoreExpandedNodesMethod · 0.45

Calls 3

getFileNameMethod · 0.95
getDirectoryMethod · 0.95
getTitleMethod · 0.65

Tested by

no test coverage detected