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 void unrender(final MMenu menuModel) {
		if (DEBUG) {
			trace("unrender", (Widget) menuModel.getWidget(), menuModel);
		}
		for (MMenuElement element : menuModel.getChildren()) {
			renderer.removeGui(element);
		}
	}
	private void gatherMenuContributions(final MMenu menuModel,
			final String id, final ArrayList<MMenuContribution> toContribute,
			final ExpressionContext eContext, boolean includePopups) {
		for (MMenuContribution menuContribution : application
				.getMenuContributions()) {
			String parentID = menuContribution.getParentID();
			boolean popup = parentID.equals("popup")
					&& (menuModel instanceof MPopupMenu) && includePopups;
			boolean filtered = isFiltered(menuModel, menuContribution);
			if (filtered || (!popup && !parentID.equals(id))
					|| !menuContribution.isToBeRendered()) {
				continue;
			}
			if (isVisible(menuContribution, eContext)) {
				toContribute.add(menuContribution);
			}
		}
	}
	private boolean isFiltered(MMenu menuModel,
			MMenuContribution menuContribution) {