| 1357 | } |
| 1358 | |
| 1359 | bool PluginManager::IsPluginAvailable(const PluginDescriptor& plug) |
| 1360 | { |
| 1361 | const auto& providerID = plug.GetProviderID(); |
| 1362 | auto provider = ModuleManager::Get().CreateProviderInstance(providerID, wxEmptyString); |
| 1363 | |
| 1364 | if (provider == nullptr) |
| 1365 | { |
| 1366 | wxLogWarning("Unable to find a provider for '%s'", providerID); |
| 1367 | return false; |
| 1368 | } |
| 1369 | |
| 1370 | if (provider->CheckPluginExist(plug.GetPath()) == false) |
| 1371 | { |
| 1372 | wxLogWarning("Plugin '%s' does not exist", plug.GetID()); |
| 1373 | return false; |
| 1374 | } |
| 1375 | |
| 1376 | return true; |
| 1377 | } |
| 1378 | |
| 1379 | PluginDescriptor & PluginManager::CreatePlugin(const PluginID & id, |
| 1380 | ComponentInterface *ident, |
nothing calls this directly
no test coverage detected