mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJP-1077 Inlay hints: new settings UI
do not show description/snippet for parent nodes GitOrigin-RevId: 35a1d34a50a40c534348d3056c734f5a3c836e3d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
93fedd74a4
commit
6453e2963c
+6
-2
@@ -132,10 +132,14 @@ class InlaySettingsPanel(val project: Project): JPanel(BorderLayout()) {
|
||||
rightPanel.removeAll()
|
||||
when (val item = treeNode?.userObject) {
|
||||
is InlayProviderSettingsModel -> {
|
||||
addDescription(item.description)
|
||||
if (treeNode.isLeaf) {
|
||||
addDescription(item.description)
|
||||
}
|
||||
item.component.border = JBUI.Borders.empty()
|
||||
rightPanel.add(item.component)
|
||||
addPreview(item.getCasePreview(null) ?: item.previewText, item.language)
|
||||
if (treeNode.isLeaf) {
|
||||
addPreview(item.getCasePreview(null) ?: item.previewText, item.language)
|
||||
}
|
||||
}
|
||||
is ImmediateConfigurable.Case -> {
|
||||
val parent = treeNode.parent as CheckedTreeNode
|
||||
|
||||
Reference in New Issue
Block a user