use of org.sonarsource.sonarlint.core.client.api.exceptions.GlobalUpdateRequiredException in project sonarlint-core by SonarSource.
the class ConnectedContainer method updateModule.
public void updateModule(String moduleKey, ProgressWrapper progress) {
GlobalStorageStatus updateStatus = getComponentByType(StorageReader.class).getGlobalStorageStatus();
if (updateStatus == null) {
throw new GlobalUpdateRequiredException("Please update server first");
}
getComponentByType(ModuleStorageUpdateExecutor.class).update(moduleKey, progress);
}
Aggregations