Refactor and fix files previously affected by 192 patchset (KTI-315)
This commit is contained in:
@@ -10,6 +10,7 @@ import com.intellij.openapi.application.PathMacros
|
||||
import com.intellij.openapi.module.Module
|
||||
import com.intellij.openapi.module.ModuleManager
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.project.ex.ProjectManagerEx
|
||||
import com.intellij.openapi.projectRoots.Sdk
|
||||
import com.intellij.openapi.roots.ProjectRootManager
|
||||
import com.intellij.openapi.util.io.FileUtil
|
||||
@@ -110,7 +111,7 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() {
|
||||
}
|
||||
|
||||
override fun doCreateProject(projectFile: Path): Project {
|
||||
return loadProjectCompat(projectFile)
|
||||
return (ProjectManagerEx.getInstanceEx()).loadProject(projectFile)
|
||||
}
|
||||
|
||||
private val projectName: String
|
||||
|
||||
+2
-1
@@ -10,6 +10,7 @@ import com.intellij.openapi.application.PathMacros
|
||||
import com.intellij.openapi.module.Module
|
||||
import com.intellij.openapi.module.ModuleManager
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.project.ex.ProjectManagerEx
|
||||
import com.intellij.openapi.projectRoots.Sdk
|
||||
import com.intellij.openapi.roots.ProjectRootManager
|
||||
import com.intellij.openapi.util.io.FileUtil
|
||||
@@ -113,7 +114,7 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() {
|
||||
|
||||
override fun doCreateAndOpenProject(): Project {
|
||||
val projectFile = getProjectDirOrFile(isCreateDirectoryBasedProject)
|
||||
return loadProjectCompat(projectFile)
|
||||
return (ProjectManagerEx.getInstanceEx()).loadProject(projectFile)
|
||||
}
|
||||
|
||||
private val projectName: String
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.idea.configuration
|
||||
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.project.ex.ProjectManagerEx
|
||||
import java.nio.file.Path
|
||||
|
||||
// FIX ME WHEN BUNCH 192 REMOVED
|
||||
internal fun loadProjectCompat(projectFile: Path): Project {
|
||||
return (ProjectManagerEx.getInstanceEx()).loadProject(projectFile)
|
||||
}
|
||||
Reference in New Issue
Block a user