Search in sources :

Example 6 with ProjectBindingManager

use of org.sonarlint.intellij.core.ProjectBindingManager 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());
    }
}
Also used : LoadedAnalyzer(org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer) ProjectBindingManager(org.sonarlint.intellij.core.ProjectBindingManager)

Aggregations

ProjectBindingManager (org.sonarlint.intellij.core.ProjectBindingManager)6 Content (com.intellij.ui.content.Content)2 SonarLintFacade (org.sonarlint.intellij.core.SonarLintFacade)2 InvalidBindingException (org.sonarlint.intellij.exception.InvalidBindingException)2 Editor (com.intellij.openapi.editor.Editor)1 Project (com.intellij.openapi.project.Project)1 Nullable (javax.annotation.Nullable)1 Before (org.junit.Before)1 SonarQubeServer (org.sonarlint.intellij.config.global.SonarQubeServer)1 IssueManager (org.sonarlint.intellij.issue.IssueManager)1 ProjectConfigurationListener (org.sonarlint.intellij.messages.ProjectConfigurationListener)1 ServerUpdateTask (org.sonarlint.intellij.tasks.ServerUpdateTask)1 ConnectedSonarLintEngine (org.sonarsource.sonarlint.core.client.api.connected.ConnectedSonarLintEngine)1 LoadedAnalyzer (org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer)1