public void AddMenuItems(IEditorComponent plugin, MenuCommands commands)
{
if (commands.Commands.Count > 0)
{
foreach (MenuCommand command in commands.Commands)
{
if (command.ID != null)
{
RegisterMenuCommand(command.ID, plugin);
}
command.IDPrefix = plugin.ComponentID + CONTROL_ID_SPLIT;
}
_menuManager.AddMenuCommandGroup(commands);
}
}