Skip to content

Commit 64ff943

Browse files
authored
fix(mps-sync-plugin-lib): fix compile error due to different JDK versions (#127)
1 parent 90b56e3 commit 64ff943

File tree

1 file changed

+3
-2
lines changed
  • mps-sync-plugin-lib/src/main/kotlin/org/modelix/mps/sync/mps/services

1 file changed

+3
-2
lines changed

mps-sync-plugin-lib/src/main/kotlin/org/modelix/mps/sync/mps/services/ServiceLocator.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package org.modelix.mps.sync.mps.services
22

33
import com.intellij.openapi.Disposable
4+
import com.intellij.openapi.application.ApplicationManager
45
import com.intellij.openapi.components.Service
5-
import com.intellij.openapi.components.service
66
import com.intellij.openapi.project.Project
77
import org.modelix.kotlin.utils.UnstableModelixFeature
88
import org.modelix.mps.sync.SyncServiceImpl
@@ -41,7 +41,8 @@ class ServiceLocator(val project: Project) : Disposable {
4141

4242
val mpsProject = project.toMpsProject()
4343

44-
val languageRepository = service<MPSLanguageRepositoryProvider>().mpsLanguageRepository
44+
val languageRepository = ApplicationManager.getApplication()
45+
.getService(MPSLanguageRepositoryProvider::class.java).mpsLanguageRepository
4546

4647
private val services: Set<InjectableService> = setOf(
4748
syncService,

0 commit comments

Comments
 (0)