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
private MApplication application;
	@Inject
	private IPresentationEngine renderer;
	@Inject
	EModelService modelService;
	private HashMap<Menu, Runnable> pendingCleanup = new HashMap<Menu, Runnable>();
	public void handleEvent(Event event) {
		if (!(event.widget instanceof Menu)) {
			return;
		}
		final Menu menu = (Menu) event.widget;
		Object obj = menu.getData(AbstractPartRenderer.OWNING_ME);
		if (obj == null && menu.getParentItem() != null) {
			obj = menu.getParentItem().getData(AbstractPartRenderer.OWNING_ME);
		}
		if (obj instanceof MRenderedMenu) {
			handlerRenderedMenu(event, menu, (MRenderedMenu) obj);
		} else if (obj instanceof MPopupMenu) {
			handleContextMenu(event, menu, (MPopupMenu) obj);
		} else if (obj instanceof MMenu) {
			handleMenu(event, menu, (MMenu) obj);
		}
	}
	private void handleMenu(final Event event, final Menu menu,
			final MMenu menuModel) {
		if ((menu.getStyle() & SWT.BAR) != 0) {
			
			return;
		}
		switch (event.type) {