private void updateManagers() {
Object[] managers = managersAwaitingUpdates.toArray();
managersAwaitingUpdates.clear();
for (int i = 0; i < managers.length; i++) {
IContributionManager mgr = (IContributionManager) managers[i];
mgr.update(true);
if (mgr instanceof ToolBarManager) {
if (!updateCoolBar((ToolBarManager) mgr)) {
updateTrim((ToolBarManager) mgr);
}
} else if (mgr instanceof MenuManager) {