createPluginAction(dataServiceProxy);
}
}
private void createPluginAction(ButtonActionIf plugin) {
ActionMenu actionMenu = plugin.getButtonAction();
if (actionMenu != null) {
if (!actionMenu.hasSubItems()) {
Action action = actionMenu.getAction();
action.putValue(ToolBar.ACTION_ID_KEY, plugin.getId());
mAvailableActions.put(plugin.getId(), action);
String tooltip = (String) action.getValue(Action.SHORT_DESCRIPTION);
if (tooltip == null) {
action.putValue(Action.SHORT_DESCRIPTION, plugin.getButtonActionDescription());
}
} else {
createPluginAction(plugin, actionMenu.getSubItems());
}
}
}