public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
				boolean b = jmolContainer.jmol.viewer.getNavigationMode();
				ModelerUtilities.setWithoutNotifyingListeners(miNav, b);
				if (b) {
					switch (jmolContainer.jmol.viewer.getZDepthMagnification()) {
					case 1:
						ModelerUtilities.setWithoutNotifyingListeners(miOne, true);
						break;
					case 5:
						ModelerUtilities.setWithoutNotifyingListeners(miFive, true);
						break;
					case 10:
						ModelerUtilities.setWithoutNotifyingListeners(miTen, true);
						break;
					}
				}
				zDepthMenu.setEnabled(b);
				miPerspectiveDepth.setEnabled(!b);
				miDetach.setEnabled(jmolContainer.getCameraAtom() != -1);
				miClearAnnotations.setEnabled(!jmolContainer.atomAnnotations.isEmpty()
						|| !jmolContainer.bondAnnotations.isEmpty());
				miClearInteractions.setEnabled(!jmolContainer.atomInteractions.isEmpty()
						|| !jmolContainer.bondInteractions.isEmpty());
				ModelerUtilities
						.setWithoutNotifyingListeners(miDepthCueing, jmolContainer.jmol.viewer.getDepthCueing());
			}