Bug 26221 [Perspectives] Noticeable menubar "flash" when switching perspectives
Build 20021113 Note this is Windows XP. Open a Java Perspective. Open a Java Browsing Perspective. Switch back and forth between the two. On my XP machine I can visibly see the menu bar "shrink" as menu items are removed, then "expand" as menu items are added. It actually looks like it's animated. Anyway, very noticeable and somewhat strange since I'm switching between two perspectives that have the same base menus (i.e., the menu bar for each perspective is the same).
bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java
}
	}
	updateMenuItem();
}
/* (non-Javadoc)
 * Method declared on IMenuManager.
 */
public void updateAll(boolean force) {
	update(force, true);
}
/**
 * Updates the menu item for this sub menu.
 * The menu item is disabled if this sub menu is empty.
 * Does nothing if this menu is not a submenu.
 */
private void updateMenuItem() {
	if (menuItem != null && !menuItem.isDisposed() && menuExist()) {
		IContributionItem items[] = getItems();
		boolean enabled = false;
		for (int i = 0; i < items.length; i++) {
			IContributionItem item = items[i];
			enabled = item.isEnabled();
			if(enabled) break;
		}
		
		if (menuItem.getEnabled() != enabled)
			menuItem.setEnabled(enabled);
	}
}
}