Search in sources :

Example 6 with PluginInfo

use of org.sonarsource.sonarlint.core.plugin.PluginInfo in project sonarlint-core by SonarSource.

the class StandaloneGlobalContainer method installPlugins.

protected void installPlugins() {
    PluginRepository pluginRepository = getComponentByType(PluginRepository.class);
    for (PluginInfo pluginInfo : pluginRepository.getPluginInfos()) {
        Plugin instance = pluginRepository.getPluginInstance(pluginInfo.getKey());
        addExtension(pluginInfo, instance);
    }
}
Also used : PluginRepository(org.sonarsource.sonarlint.core.plugin.PluginRepository) PluginInfo(org.sonarsource.sonarlint.core.plugin.PluginInfo) Plugin(org.sonar.api.Plugin)

Aggregations

PluginInfo (org.sonarsource.sonarlint.core.plugin.PluginInfo)6 Test (org.junit.Test)3 Plugin (org.sonar.api.Plugin)3 PropertyDefinitions (org.sonar.api.config.PropertyDefinitions)2 PluginRepository (org.sonarsource.sonarlint.core.plugin.PluginRepository)2 ExtensionProvider (org.sonar.api.ExtensionProvider)1