Kotlin migration: fix data context calculation for 173 / AS31
Version for IDEA 182 does not work properly here (returns null), so we have to use `DataManager.getDataContext(focusedComponent)` directly #KT-26399 Fixed
This commit is contained in:
committed by
Ilya Gorbunov
parent
2e4f46045e
commit
1e2334a911
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. 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.ide.DataManager
|
||||
import com.intellij.openapi.actionSystem.DataContext
|
||||
import com.intellij.openapi.ui.DialogWrapper
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
internal fun getDataContextFromDialog(wrapper: DialogWrapper): DataContext? =
|
||||
DataManager.getInstance().getDataContext(wrapper.window)
|
||||
Reference in New Issue
Block a user