use of com.google.idea.blaze.kotlin.sync.importer.BlazeKotlinWorkspaceImporter in project intellij by bazelbuild.
the class BlazeKotlinSyncPlugin method updateSyncState.
@Override
public void updateSyncState(Project project, BlazeContext context, WorkspaceRoot workspaceRoot, ProjectViewSet projectViewSet, WorkspaceLanguageSettings workspaceLanguageSettings, BlazeInfo blazeInfo, @Nullable WorkingSet workingSet, WorkspacePathResolver workspacePathResolver, ArtifactLocationDecoder artifactLocationDecoder, TargetMap targetMap, SyncState.Builder syncStateBuilder, @Nullable SyncState previousSyncState) {
if (!workspaceLanguageSettings.isLanguageActive(LanguageClass.KOTLIN)) {
return;
}
BlazeKotlinWorkspaceImporter blazeKotlinWorkspaceImporter = new BlazeKotlinWorkspaceImporter(project, workspaceRoot, projectViewSet, targetMap);
BlazeKotlinImportResult importResult = Scope.push(context, (childContext) -> {
childContext.push(new TimingScope("KotlinWorkspaceImporter", TimingScope.EventType.Other));
return blazeKotlinWorkspaceImporter.importWorkspace();
});
BlazeKotlinSyncData syncData = new BlazeKotlinSyncData(importResult);
syncStateBuilder.put(BlazeKotlinSyncData.class, syncData);
}
Aggregations