mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Python: Rename and move UIInfo to openapi to reuse it from other modules
GitOrigin-RevId: 2f46a6e934853d14600351112da292586938cd86
This commit is contained in:
committed by
intellij-monorepo-bot
parent
13232ee81d
commit
894f26c7e9
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user