Used to invoke Repeat Last Analyzer Process for built-in, non-nyquist plug-ins.
| 889 | |
| 890 | // Used to invoke Repeat Last Analyzer Process for built-in, non-nyquist plug-ins. |
| 891 | void CommandManager::DoRepeatProcess(const CommandContext& context, int id) |
| 892 | { |
| 893 | mLastProcessId = 0; //Don't Process this as repeat |
| 894 | if (auto iter = mCommandNumericIDHash.find(id); |
| 895 | iter != mCommandNumericIDHash.end() |
| 896 | ) { |
| 897 | const auto entry = iter->second; |
| 898 | // Discriminate the union entry->callback by entry->finder |
| 899 | if (auto &finder = entry->finder) { |
| 900 | auto &handler = finder(context.project); |
| 901 | (handler.*(entry->callback.memberFn))(context); |
| 902 | } |
| 903 | else |
| 904 | (entry->callback.nonMemberFn)(context); |
| 905 | } |
| 906 | } |
| 907 | |
| 908 | |
| 909 | ///Call this when a menu event is received. |
no test coverage detected