Search in sources :

Example 1 with PluginRepository

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

the class StorageContainer 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)

Example 2 with PluginRepository

use of org.sonarsource.sonarlint.core.plugin.PluginRepository 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

Plugin (org.sonar.api.Plugin)2 PluginInfo (org.sonarsource.sonarlint.core.plugin.PluginInfo)2 PluginRepository (org.sonarsource.sonarlint.core.plugin.PluginRepository)2