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
} catch (IllegalAccessException e) {
			
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			
			e.printStackTrace();
		}
		if (menuModel.getChildren().size() == 1
				&& menuModel.getChildren().get(0) instanceof MPopupMenu) {
			showPopup(event, menu, (MPopupMenu) menuModel.getChildren().get(0));
		} else {
			showMenu(event, menu, menuModel);
		}
		event.type = SWT.None;
		event.doit = false;
	}
	public void cleanUp(final Menu menu) {
		if (DEBUG) {
			trace("cleanUp", menu, null);
		}
		if (pendingCleanup.isEmpty()) {
			return;
		}
		Runnable cleanUp = pendingCleanup.remove(menu);
		if (cleanUp != null) {
			if (DEBUG) {
				trace("cleanUp.run()", menu, null);
			}
			cleanUp.run();
		}