setEnabledAllowed(false);
}
}
ICoolBarManager coolBarManager = getCastedParent().getCoolBarManager();
if ((coolItemToolBarMgr != null) && (coolBarManager != null)) {
<BUG>IContributionItem[] items = coolItemToolBarMgr.getItems();

for (int i = 0; i < items.length; i++) {
IContributionItem item = items[i];</BUG>
item.setVisible(visible || !forceVisibility);

setEnabledAllowed(false);
}
}
ICoolBarManager coolBarManager = getCastedParent().getCoolBarManager();
if ((coolItemToolBarMgr != null) && (coolBarManager != null)) {
for (IContributionItem item : coolItemToolBarMgr.getItems()) {
item.setVisible(visible || !forceVisibility);
