From fc1dd07f7dd3c53a8220650b2a7221254b3afd42 Mon Sep 17 00:00:00 2001 From: Pavel Porvatov Date: Fri, 11 Oct 2024 14:32:22 +0200 Subject: [PATCH] Added more items in LcrSeparatorPanel of UI Sandbox GitOrigin-RevId: bd141a3ce4d366a0c7ff101eed9904f08015634a --- .../ui/sandbox/dsl/listCellRenderer/LcrSeparatorPanel.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/internal/src/com/intellij/internal/ui/sandbox/dsl/listCellRenderer/LcrSeparatorPanel.kt b/platform/platform-impl/internal/src/com/intellij/internal/ui/sandbox/dsl/listCellRenderer/LcrSeparatorPanel.kt index 3207d09518d8..fdc8d06f2d15 100644 --- a/platform/platform-impl/internal/src/com/intellij/internal/ui/sandbox/dsl/listCellRenderer/LcrSeparatorPanel.kt +++ b/platform/platform-impl/internal/src/com/intellij/internal/ui/sandbox/dsl/listCellRenderer/LcrSeparatorPanel.kt @@ -17,9 +17,12 @@ import javax.swing.Icon import javax.swing.JComponent import javax.swing.ListCellRenderer -private val items = listOf("The first group", "Item 1", "Item 2", - "Another Item 1", "Another Item 2", - "Group Item 1", "Group Item 2") +private val items: List = mutableListOf("The first group", "Item 1", "Item 2", + "Another Item 1", "Another Item 2", + "Group Item 1").apply { + addAll((2..20).map { "Group Item $it" }) +} + private val separators = mapOf("The first group" to "The first", "Another Item 1" to "", "Group Item 1" to "Group") internal class LcrSeparatorPanel : UISandboxPanel {