Search in sources :

Example 1 with GlobalExtensionContainer

use of org.sonarsource.sonarlint.core.container.global.GlobalExtensionContainer in project sonarlint-core by SonarSource.

the class StorageContainer method doAfterStart.

@Override
protected void doAfterStart() {
    ConnectedGlobalConfiguration config = getComponentByType(ConnectedGlobalConfiguration.class);
    GlobalStorageStatus updateStatus = getComponentByType(StorageContainerHandler.class).getGlobalStorageStatus();
    if (updateStatus != null) {
        LOG.info("Using storage for server '{}' (last update {})", config.getServerId(), DATE_FORMAT.format(updateStatus.getLastUpdateDate()));
        installPlugins();
    } else {
        LOG.warn("No storage for server '{}'. Please update.", config.getServerId());
    }
    this.globalExtensionContainer = new GlobalExtensionContainer(this);
    globalExtensionContainer.startComponents();
}
Also used : GlobalExtensionContainer(org.sonarsource.sonarlint.core.container.global.GlobalExtensionContainer) GlobalStorageStatus(org.sonarsource.sonarlint.core.client.api.connected.GlobalStorageStatus) ConnectedGlobalConfiguration(org.sonarsource.sonarlint.core.client.api.connected.ConnectedGlobalConfiguration)

Example 2 with GlobalExtensionContainer

use of org.sonarsource.sonarlint.core.container.global.GlobalExtensionContainer in project sonarlint-core by SonarSource.

the class StandaloneGlobalContainer method doAfterStart.

@Override
protected void doAfterStart() {
    installPlugins();
    loadRulesAndActiveRulesFromPlugins();
    globalExtensionContainer = new GlobalExtensionContainer(this);
    globalExtensionContainer.startComponents();
}
Also used : GlobalExtensionContainer(org.sonarsource.sonarlint.core.container.global.GlobalExtensionContainer)

Aggregations

GlobalExtensionContainer (org.sonarsource.sonarlint.core.container.global.GlobalExtensionContainer)2 ConnectedGlobalConfiguration (org.sonarsource.sonarlint.core.client.api.connected.ConnectedGlobalConfiguration)1 GlobalStorageStatus (org.sonarsource.sonarlint.core.client.api.connected.GlobalStorageStatus)1