From 68dfe9bf141384aa5ddf33d1d47e06a1e6ba912b Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Thu, 20 Sep 2018 22:17:48 +0300 Subject: [PATCH] Fix missing NativeLibraryType #KT-27009 fixed --- .../kotlin/ide/konan/NativeLibraryType.kt | 29 +++++++++++++++++++ idea/src/META-INF/native.xml | 1 + 2 files changed, 30 insertions(+) create mode 100644 idea/idea-native/src/org/jetbrains/kotlin/ide/konan/NativeLibraryType.kt diff --git a/idea/idea-native/src/org/jetbrains/kotlin/ide/konan/NativeLibraryType.kt b/idea/idea-native/src/org/jetbrains/kotlin/ide/konan/NativeLibraryType.kt new file mode 100644 index 00000000000..4b299ecfa07 --- /dev/null +++ b/idea/idea-native/src/org/jetbrains/kotlin/ide/konan/NativeLibraryType.kt @@ -0,0 +1,29 @@ +/* + * 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.ide.konan + +import com.intellij.openapi.project.Project +import com.intellij.openapi.roots.libraries.DummyLibraryProperties +import com.intellij.openapi.roots.libraries.LibraryType +import com.intellij.openapi.roots.libraries.NewLibraryConfiguration +import com.intellij.openapi.roots.libraries.ui.LibraryEditorComponent +import com.intellij.openapi.vfs.VirtualFile +import org.jetbrains.kotlin.idea.KotlinIcons +import javax.swing.JComponent + +object NativeLibraryType : LibraryType(NativeLibraryKind) { + override fun createPropertiesEditor(editorComponent: LibraryEditorComponent) = null + + override fun getCreateActionName() = null + + override fun createNewLibrary( + parentComponent: JComponent, + contextDirectory: VirtualFile?, + project: Project + ): NewLibraryConfiguration? = null + + override fun getIcon(properties: DummyLibraryProperties?) = KotlinIcons.MPP +} diff --git a/idea/src/META-INF/native.xml b/idea/src/META-INF/native.xml index 60892a018ce..17287236692 100644 --- a/idea/src/META-INF/native.xml +++ b/idea/src/META-INF/native.xml @@ -17,6 +17,7 @@ +