AFreeplaneAction action = context.getBuilder().getMode().getAction(key);
if(action != null) {
String title = ActionUtils.getActionTitle(action);
ResizableIcon icon = ActionUtils.getActionIcon(action);
ActionListener listener = new RibbonActionContributorFactory.RibbonActionListener(action);
final RibbonApplicationMenuEntryFooter entry = new RibbonApplicationMenuEntryFooter(icon, title, listener);
KeyStroke ks = context.getBuilder().getAcceleratorManager().getAccelerator(key);
if(ks != null) {
RichTooltip tip = RibbonActionContributorFactory.getRichTooltip(action, ks);
if(tip != null) {
entry.setActionRichTooltip(tip);
}
}
parent.addChild(entry, new ChildProperties(parseOrderSettings(attributes.getProperty("orderPriority", ""))));
}
}