*/
if (toolBarContributionItem != null) {
// Create a placeholder and place it in the cool bar manager.
ICoolBarManager coolBarManager = getCoolBarManager();
if (coolBarManager instanceof SubContributionManager) {
SubContributionManager subManager = (SubContributionManager) coolBarManager;
IContributionManager manager = subManager.getParent();
if (manager instanceof ContributionManager) {
final IContributionItem replacementItem = new PlaceholderContributionItem(
toolBarContributionItem);
boolean succeeded = ((ContributionManager) manager)
.replaceItem(replacementItem.getId(),