Bug 7235 [Contributions] Need dispose() for action delegates
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);
	}
}
}