Fixed import insertion on paste broken sometime ago
This commit is contained in:
@@ -16,10 +16,11 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.idea.codeInsight
|
package org.jetbrains.kotlin.idea.codeInsight
|
||||||
|
|
||||||
import com.intellij.codeInsight.editorActions.*
|
import com.intellij.codeInsight.editorActions.ReferenceData
|
||||||
import java.io.*
|
import com.intellij.codeInsight.editorActions.TextBlockTransferableData
|
||||||
import java.awt.datatransfer.*
|
import java.awt.datatransfer.DataFlavor
|
||||||
import kotlin.properties.*
|
import java.io.Serializable
|
||||||
|
import kotlin.properties.Delegates
|
||||||
|
|
||||||
public class KotlinReferenceTransferableData(
|
public class KotlinReferenceTransferableData(
|
||||||
val data: Array<KotlinReferenceData>
|
val data: Array<KotlinReferenceData>
|
||||||
@@ -76,7 +77,10 @@ public class KotlinReferenceData(
|
|||||||
companion object {
|
companion object {
|
||||||
public val dataFlavor: DataFlavor? by Delegates.lazy {
|
public val dataFlavor: DataFlavor? by Delegates.lazy {
|
||||||
try {
|
try {
|
||||||
DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + ";class=" + javaClass<KotlinReferenceData>().getName(), "KotlinReferenceData")
|
val dataClass = javaClass<KotlinReferenceData>()
|
||||||
|
DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + ";class=" + dataClass.getName(),
|
||||||
|
"KotlinReferenceData",
|
||||||
|
dataClass.getClassLoader())
|
||||||
}
|
}
|
||||||
catch (e: NoClassDefFoundError) {
|
catch (e: NoClassDefFoundError) {
|
||||||
null
|
null
|
||||||
|
|||||||
Reference in New Issue
Block a user