use of com.google.idea.blaze.scala.sync.model.BlazeScalaSyncData in project intellij by bazelbuild.
the class BlazeScalaSyncPlugin 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, Builder syncStateBuilder, @Nullable SyncState previousSyncState) {
if (!workspaceLanguageSettings.isLanguageActive(LanguageClass.SCALA)) {
return;
}
BlazeScalaWorkspaceImporter blazeScalaWorkspaceImporter = new BlazeScalaWorkspaceImporter(project, workspaceRoot, projectViewSet, targetMap);
BlazeScalaImportResult importResult = Scope.push(context, (childContext) -> {
childContext.push(new TimingScope("ScalaWorkspaceImporter", EventType.Other));
return blazeScalaWorkspaceImporter.importWorkspace();
});
BlazeScalaSyncData syncData = new BlazeScalaSyncData(importResult);
syncStateBuilder.put(BlazeScalaSyncData.class, syncData);
}
Aggregations