Bug 330467 [Compatibility] Workbench window menu bar submenus keeps growing
Submenus like 'Search > Text' keeps growing in size.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java
modelContributionToRecord.put(copy, record);
			if (copy instanceof MMenu
					&& existingMenuIds.contains(copy.getElementId())) {
				
				continue;
			} else if (copy instanceof MMenuSeparator
					&& existingSeparatorNames.contains(copy.getElementId())) {
				
				continue;
			}
			menuModel.getChildren().add(idx++, copy);
			if (copy instanceof MMenu && copy.getElementId() != null) {
				existingMenuIds.add(copy.getElementId());
			} else if (copy instanceof MMenuSeparator
					&& copy.getElementId() != null) {
				existingSeparatorNames.add(copy.getElementId());
			}
		}
		if (menuBar) {
			if (menuContribution.getVisibleWhen() != null) {
				final IEclipseContext parentContext = modelService
						.getContainingContext(menuModel);
				parentContext.runAndTrack(new RunAndTrack() {
					@Override
					public boolean changed(IEclipseContext context) {
						record.updateVisibility(parentContext.getActiveLeaf());
						manager.update(true);
						return true;
					}
				});