if (IJ.isMacintosh() && !quitting) {
IJ.wait(10); // may be needed for Java 1.4 on OS X
MenuBar mb = Menus.getMenuBar();
if (mb!=null && mb!=getMenuBar()) {
setMenuBar(mb);
<BUG>Menus.setMenuBarCount++;
}</BUG>
}
}
public void windowClosed(WindowEvent e) {}

if (IJ.isMacintosh() && !quitting) {
IJ.wait(10); // may be needed for Java 1.4 on OS X
MenuBar mb = Menus.getMenuBar();
if (mb!=null && mb!=getMenuBar()) {
setMenuBar(mb);
Menus.setMenuBarCount++;
if (IJ.debugMode) IJ.log("setMenuBar: "+Menus.setMenuBarCount);
}
}
}
public void windowClosed(WindowEvent e) {}
