MenuItem item = (MenuItem) def;
menuItems.put(item.getCamelCaseName(), item);
menuElements.put(item.getCamelCaseName(), item);
}
else if (def instanceof Separator){
Separator sep = (Separator) def;
separators.put(sep.getCamelCaseName(), sep);
menuElements.put(sep.getCamelCaseName(), sep);
}
else if (def instanceof ActionBinding){
ActionBinding action = (ActionBinding) def;
actions.put(action.getCamelCaseName(), action);
}