MCPcopy Create free account
hub / github.com/benkuper/Chataigne / getCommandDefinitionFor

Method getCommandDefinitionFor

Source/Module/Module.cpp:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120CommandDefinition* Module::getCommandDefinitionFor(StringRef menu, StringRef name)
121{
122 if (menu == templateManager->menuName) return templateManager->defManager->getCommandDefinitionFor(menu, name);
123 if (name == String("Script callback")) return scriptCommanDef.get();
124 return defManager->getCommandDefinitionFor(menu, name);
125}
126
127PopupMenu Module::getCommandMenu(int offset, CommandContext context)
128{

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected