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

Method windowActivated

ij/src/main/java/ij/ImageJ.java:766–776  ·  view source on GitHub ↗
(WindowEvent e)

Source from the content-addressed store, hash-verified

764 }
765
766 public void windowActivated(WindowEvent e) {
767 if (IJ.isMacintosh() && !quitting) {
768 IJ.wait(10); // may be needed for Java 1.4 on OS X
769 MenuBar mb = Menus.getMenuBar();
770 if (mb!=null && mb!=getMenuBar() && !IJ.isMacro()) {
771 setMenuBar(mb);
772 Menus.setMenuBarCount++;
773 //if (IJ.debugMode) IJ.log("setMenuBar: "+Menus.setMenuBarCount);
774 }
775 }
776 }
777
778 public void windowClosed(WindowEvent e) {}
779 public void windowDeactivated(WindowEvent e) {}

Callers

nothing calls this directly

Calls 4

isMacintoshMethod · 0.95
waitMethod · 0.95
getMenuBarMethod · 0.95
isMacroMethod · 0.95

Tested by

no test coverage detected