IContributionItem[] subItems = cbItem.getToolBarManager()
.getItems();
for (int j = 0; j < subItems.length; j++) {
IContributionItem subItem = subItems[j];
if (subItem instanceof PluginActionCoolBarContributionItem) {
PluginActionCoolBarContributionItem actionItem = (PluginActionCoolBarContributionItem) subItem;
if (actionItem.getActionSetId().equals(actionSetId)) {
String toolbarId = cbItem.getId();
ActionSetDisplayItem toolbar = find(toolbarId);
if (toolbar == null) {
String toolbarText = window
.getToolbarLabel(toolbarId);
toolbar = new ActionSetDisplayItem(this,
toolbarId, toolbarText, TOOLITEM);
}
IAction action = actionItem.getAction();
String toolItemText = action.getToolTipText();
if (toolItemText == null) {
toolItemText = action.getText();
}
ActionSetDisplayItem toolItem = new ActionSetDisplayItem(