mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
move service.kt to core-api
GitOrigin-RevId: 496653a5afebb1d32ffccd8c7c3e9f6d1d3f60fd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5e74812655
commit
e5475bc39c
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user