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
/**
 * Creates a menu manager with the given text. The id of the menu
 * is <code>null</code>.
 * Typically used for creating a sub-menu, where it doesn't need to be referred to by id.
 *
 * @param text the text for the menu, or <code>null</code> if none
 */
public MenuManager(String text) {
	this(text, null);
}
/**
 * Creates a menu manager with the given text and id.
 * Typically used for creating a sub-menu, where it needs to be referred to by id.
 *
 * @param text the text for the menu, or <code>null</code> if none
 * @param id the menu id, or <code>null</code> if it is to have no id
 */
public MenuManager(String text, String id) {
	this.menuText = text;
	this.id = id;
}
/* (non-Javadoc)
 * Method declared on IMenuManager.
 */
public void addMenuListener(IMenuListener listener) {
	listeners.add(listener);
}
/**
 * Creates and returns an SWT context menu control for this menu,
 * and installs all registered contributions.