use of org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer in project sonarlint-core by SonarSource.
the class ConnectedModeRequirementsTest method checkMinimalPluginVersionDuringGlobalUpdate.
@Test
public void checkMinimalPluginVersionDuringGlobalUpdate() throws IOException {
UpdateResult update = engine.update(config(), null);
assertThat(update.status().getLastUpdateDate()).isNotNull();
assertThat(engine.getLoadedAnalyzers().stream().map(LoadedAnalyzer::key)).doesNotContain("javascript");
}
use of org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer in project sonarlint-intellij by SonarSource.
the class SonarLintProjectAnalyzersPanel method reload.
public void reload() {
ProjectBindingManager bindingManager = SonarLintUtils.get(project, ProjectBindingManager.class);
try {
Collection<LoadedAnalyzer> loadedAnalyzers = bindingManager.getFacade().getLoadedAnalyzers();
tableModel.set(loadedAnalyzers);
} catch (Exception e) {
LOGGER.error(e);
tableModel.set(Collections.emptyList());
}
}
Aggregations