mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
The process is described in `ModulesSdkConfigurator` doc. GitOrigin-RevId: 1a21824e488a2d799b229d7c8355b60b0b177809
11 lines
376 B
Kotlin
11 lines
376 B
Kotlin
package com.intellij.python.common.tools
|
|
|
|
import com.intellij.python.common.tools.spi.ToolIdToIconMapper
|
|
import javax.swing.Icon
|
|
|
|
|
|
/**
|
|
* Get icon for certain tool id.
|
|
* This icon comes along with class because jewel needs it
|
|
*/
|
|
fun getIcon(id: ToolId): Pair<Icon, Class<*>>? = ToolIdToIconMapper.EP.extensionList.firstOrNull { it.id == id }?.let { Pair(it.icon, it.clazz) } |