Python: Rename and move UIInfo to openapi to reuse it from other modules

GitOrigin-RevId: 2f46a6e934853d14600351112da292586938cd86
This commit is contained in:
Ilya.Kazakevich
2025-10-01 23:01:06 +00:00
committed by intellij-monorepo-bot
parent 13232ee81d
commit 894f26c7e9
21 changed files with 71 additions and 65 deletions
@@ -0,0 +1,20 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.python
import com.intellij.openapi.util.NlsSafe
import org.jetbrains.annotations.ApiStatus
import javax.swing.Icon
/**
* Various tools might have name and icon
*/
@ApiStatus.Internal
data class PyToolUIInfo(
/**
* i.e: "UV" for pythons found by UV
*/
val toolName: @NlsSafe String, // Tools are usually untranslatable
val icon: Icon? = null,
) : Comparable<PyToolUIInfo> {
override fun compareTo(other: PyToolUIInfo): Int = toolName.compareTo(other.toolName)
}