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

Method saveAs

ij/src/main/java/ij/macro/Functions.java:3741–3755  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3739 }
3740
3741 void saveAs() {
3742 String format = getFirstString();
3743 String path = null;
3744 boolean oneArg = false;
3745 if (interp.nextToken()==',')
3746 path = getLastString();
3747 else {
3748 interp.getRightParen();
3749 oneArg = true;
3750 }
3751 if (oneArg && (format.contains(File.separator)||format.contains("/")))
3752 IJ.save(format); // assume argument is a path
3753 else
3754 IJ.saveAs(format, path);
3755 }
3756
3757 double getZoom() {
3758 interp.getParens();

Callers 1

doFunctionMethod · 0.95

Calls 7

getFirstStringMethod · 0.95
getLastStringMethod · 0.95
saveMethod · 0.95
saveAsMethod · 0.95
getRightParenMethod · 0.80
nextTokenMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected