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

Method removeWindow

ij/src/main/java/ij/WindowManager.java:402–416  ·  view source on GitHub ↗

Removes the specified window from the Window menu.

(Window win)

Source from the content-addressed store, hash-verified

400
401 /** Removes the specified window from the Window menu. */
402 public static void removeWindow(Window win) {
403 if (win instanceof ImageWindow)
404 removeImageWindow((ImageWindow)win);
405 else {
406 int index = nonImageList.indexOf(win);
407 ImageJ ij = IJ.getInstance();
408 if (index>=0) {
409 Menus.removeWindowMenuItem(index);
410 nonImageList.removeElement(win);
411 }
412 if (win!=null && win==frontTable)
413 frontTable = null;
414 }
415 setWindow(null);
416 }
417
418 /** Removes the specified Frame from the Window menu. */
419 public static void removeWindow(Frame win) {

Callers 15

closeMethod · 0.95
disposeMethod · 0.95
closeMethod · 0.95
closeMethod · 0.95
closeMethod · 0.95
disposeMethod · 0.95
disposeMethod · 0.95
closeMethod · 0.95
windowClosingMethod · 0.95
renameMethod · 0.95
closeMethod · 0.95
saveAndCloseMethod · 0.95

Calls 5

removeImageWindowMethod · 0.95
getInstanceMethod · 0.95
removeWindowMenuItemMethod · 0.95
setWindowMethod · 0.95
indexOfMethod · 0.45

Tested by

no test coverage detected