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

Method closeImage

ij/src/main/java/ij/plugin/Commands.java:143–156  ·  view source on GitHub ↗
(ImagePlus imp)

Source from the content-addressed store, hash-verified

141 }
142
143 void closeImage(ImagePlus imp) {
144 if (imp==null) {
145 IJ.noImage();
146 return;
147 }
148 imp.close();
149 if (IJ.recording() && !IJ.isMacro()) {
150 if (Recorder.scriptMode())
151 Recorder.recordCall("imp.close();");
152 else
153 Recorder.record("close");
154 Recorder.setCommand(null); // don't record run("Close")
155 }
156 }
157
158 // Plugins>Macros>Open Startup Macros command
159 void openStartupMacros() {

Callers 1

closeMethod · 0.95

Calls 8

noImageMethod · 0.95
recordingMethod · 0.95
isMacroMethod · 0.95
scriptModeMethod · 0.95
recordCallMethod · 0.95
recordMethod · 0.95
setCommandMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected