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 @@ +