move service.kt to core-api

GitOrigin-RevId: 496653a5afebb1d32ffccd8c7c3e9f6d1d3f60fd
This commit is contained in:
Vladimir Krivosheev
2024-06-14 14:08:16 +02:00
committed by intellij-monorepo-bot
parent 5e74812655
commit e5475bc39c
55 changed files with 116 additions and 81 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.compiler;
import com.intellij.compiler.server.BuildManager;
@@ -6,8 +6,8 @@ import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.PathMacros;
import com.intellij.openapi.application.WriteAction;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.ServiceKt;
import com.intellij.openapi.components.impl.stores.IComponentStore;
import com.intellij.openapi.components.impl.stores.IComponentStoreKt;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.fileTypes.FileTypeManager;
import com.intellij.openapi.module.Module;
@@ -49,7 +49,7 @@ public final class CompilerTestUtil {
@NotNull
public static IComponentStore getApplicationStore() {
return ServiceKt.getStateStore(ApplicationManager.getApplication());
return IComponentStoreKt.getStateStore(ApplicationManager.getApplication());
}
@TestOnly

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.testFramework;
import com.intellij.compiler.CompilerManagerImpl;
@@ -13,8 +13,8 @@ import com.intellij.openapi.application.WriteAction;
import com.intellij.openapi.command.WriteCommandAction;
import com.intellij.openapi.compiler.*;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.ServiceKt;
import com.intellij.openapi.components.impl.stores.IComponentStore;
import com.intellij.openapi.components.impl.stores.IComponentStoreKt;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleManager;
@@ -215,7 +215,7 @@ public final class CompilerTester {
LOG.warn(message);
String fakeMacroName = "__remove_me__";
IComponentStore appStore = ServiceKt.getStateStore(ApplicationManager.getApplication());
IComponentStore appStore = IComponentStoreKt.getStateStore(ApplicationManager.getApplication());
pathMacroManager.setMacro(fakeMacroName, fakeMacroName);
appStore.saveComponent((PersistentStateComponent<?>)pathMacroManager);
pathMacroManager.setMacro(fakeMacroName, null);