for (int i = 0; i < items.length; i++) {
IContributionItem item = items[i];
item.setVisible(visible || !forceVisibility);
coolItemToolBarMgr.markDirty();
if (!coolBarManager.isDirty()) {
coolBarManager.markDirty();
}
}
// Update the manager
coolItemToolBarMgr.update(false);
if (toolBarContributionItem != null) {