Bug 317071 Turn menu printouts into tracing
I left a boolean true and now we log to the console. unrender: MenuItem {&Run}: org.eclipse.e4.ui.model.application.ui.menu.impl.MenuImpl@1b441b44 (elementId: org.eclipse.ui.run, tags: [menuContribution:menu]) (widget: MenuItem {&Run}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.MenuRenderer@64216421, toBeRendered: true, onTop: false, visible: true, containerData: null) (label: &Run, iconURI: null, tooltip: null) (enabled: true) I've turned menu printing into true debug tracing, it can be activated from the Trace tab. PW
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/workbench/swt/modeling/MenuServiceFilter.java
if (DEBUG) {
				trace("handleContextMenu.Dispose", menu, menuModel);
			}
			cleanUp(menu);
			break;
		}
	}
	public void hidePopup(Event event, Menu menu, MPopupMenu menuModel) {
		final IEclipseContext popupContext = menuModel.getContext();
		final IEclipseContext parentContext = popupContext.getParent();
		final IEclipseContext originalChild = (IEclipseContext) popupContext
				.get(TMP_ORIGINAL_CONTEXT);
		popupContext.remove(TMP_ORIGINAL_CONTEXT);
		if (!menu.isDisposed()) {
			menu.getDisplay().asyncExec(new Runnable() {
				public void run() {
					parentContext.set(IContextConstants.ACTIVE_CHILD,
							originalChild);
				}
			});
		}
	}
	public void showPopup(final Event event, final Menu menu,
			final MPopupMenu menuModel) {
		final IEclipseContext popupContext = menuModel.getContext();
		final IEclipseContext parentContext = popupContext.getParent();
		final IEclipseContext originalChild = (IEclipseContext) parentContext
				.getLocal(IContextConstants.ACTIVE_CHILD);
		parentContext.set(IContextConstants.ACTIVE_CHILD, popupContext);
		popupContext.set(TMP_ORIGINAL_CONTEXT, originalChild);