private void buildMenusAndToolbarsFor(CustomizeActionBars customizeActionBars, ActionSetDescriptor actionSetDesc) {
String id = actionSetDesc.getId();
ActionSetActionBars bars = new ActionSetActionBars(
customizeActionBars, window, customizeActionBars, id);
PluginActionSetBuilder builder = new PluginActionSetBuilder();
PluginActionSet actionSet = null;
try {
actionSet = (PluginActionSet) actionSetDesc.createActionSet();
actionSet.init(null, bars);
} catch (CoreException ex) {
WorkbenchPlugin
.log("Unable to create action set " + actionSetDesc.getId(), ex); //$NON-NLS-1$
return;
}
builder.buildMenuAndToolBarStructure(actionSet, window);
}