addButton(category, action, key, position);
return;
}
final JMenuItem item;
if (action.getClass().getAnnotation(SelectableAction.class) != null) {
item = new JAutoCheckBoxMenuItem(decorateAction(category, action));
}
else {
item = new JFreeplaneMenuItem(decorateAction(category, action));
}
addMenuItem(category, item, key, position);