mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
IDEA-346792 Fix New Import Settings dialog: support long IDE names in the UI
GitOrigin-RevId: 49b9927db7e44c4b4419d88b53f2bf547fa88b0f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f9039bbafd
commit
430e21ca65
@@ -74,7 +74,7 @@ abstract class ProductChooserAction : ChooseProductActionButton(null) {
|
||||
|
||||
override fun createPopupComponent(content: JComponent?): JComponent {
|
||||
val popupComponent = super.createPopupComponent(content)
|
||||
popupComponent.preferredSize = Dimension(JBUI.scale (UiUtils.DEFAULT_BUTTON_WIDTH), popupComponent.preferredSize.height)
|
||||
popupComponent.preferredSize = Dimension(JBUI.scale(UiUtils.DEFAULT_BUTTON_WIDTH).coerceAtLeast(popupComponent.preferredSize.width), popupComponent.preferredSize.height)
|
||||
|
||||
return popupComponent
|
||||
}
|
||||
|
||||
@@ -40,27 +40,31 @@ class TestJbService private constructor(): JbService {
|
||||
val dd2 = LocalDate.now().minusDays(2)
|
||||
|
||||
|
||||
val main = TestProduct("Main", "версия", dM1, "main")
|
||||
val main3 = TestProduct("Main", "версия", dM1, "main")
|
||||
val main2 = TestProduct("IdeaMain1", "версия", LocalDate.now())
|
||||
val main4 = TestProduct("PyCharm Professional 2023.3.3-233.666", "верс 2023.3.3-233.666", LocalDate.now())
|
||||
val main = TestProduct("PyCharm Professional", "верс 2023.3.3-233.666", LocalDate.now())
|
||||
|
||||
val fresh = listOf(
|
||||
main,
|
||||
TestProduct("Idea222", "версия", dM1),
|
||||
TestProduct("Idea333", "версия", dM6),
|
||||
TestProduct("Idea444", "версия", dD6),
|
||||
TestProduct("Idea555", "версия", dD1),
|
||||
TestProduct("Idea666", "версия", dY1),
|
||||
TestProduct("Idea666", "версия", dY3),
|
||||
TestProduct("Idea666", "версия", dd20),
|
||||
TestProduct("Idea666", "версия", dd5),
|
||||
TestProduct("Idea666", "версия", dd2),
|
||||
main3,
|
||||
TestProduct("Idea222", "верс 2023.1-233.111", dM1),
|
||||
TestProduct("Idea333", "верс 2023.2.2-233.222", dM6),
|
||||
TestProduct("Idea444", "верс 2023.3.3-233.333", dD6),
|
||||
TestProduct("Idea555", "верс 2023.4.3-233.444", dD1),
|
||||
TestProduct("Idea666", "верс 2023.5.3-233.555", dY1),
|
||||
TestProduct("Idea666", "верс 2023.6.3-233.666", dY3),
|
||||
TestProduct("Idea666", "верс 2023.7.3-233.777", dd20),
|
||||
TestProduct("Idea666", "верс 2023.8.3-233.888", dd5),
|
||||
TestProduct("Idea666", "верс 2023.9.3-233.999", dd2),
|
||||
)
|
||||
val old = listOf(
|
||||
TestProduct("Idea222", "версия", LocalDate.now()),
|
||||
TestProduct("Idea333", "версия", LocalDate.now()),
|
||||
TestProduct("Idea444", "версия", LocalDate.now()),
|
||||
TestProduct("Idea555", "версия", LocalDate.now()),
|
||||
TestProduct("Idea666", "версия", LocalDate.now()))
|
||||
main4,
|
||||
TestProduct("Idea222", "верс 2023.1-233.111", LocalDate.now()),
|
||||
TestProduct("Idea333", "верс 2023.2.2-233.222", LocalDate.now()),
|
||||
TestProduct("Idea444", "верс 2023.3.2-233.333", LocalDate.now()),
|
||||
TestProduct("Idea555", "верс 2023.4.2-233.444", LocalDate.now()),
|
||||
TestProduct("Idea666", "верс 2023.5.2-233.555", LocalDate.now()))
|
||||
|
||||
|
||||
val children = listOf(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
@file:Suppress("HardCodedStringLiteral", "DialogTitleCapitalization")
|
||||
|
||||
package com.intellij.ide.startup.importSettings.testActions
|
||||
|
||||
@@ -15,6 +15,6 @@ class ImportSettingDialogAction : DumbAwareAction() {
|
||||
}
|
||||
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
OnboardingController.getInstance().startImport(isModal = true, titleGetter = titleGetter)
|
||||
OnboardingController.getInstance().startImport(isModal = false, titleGetter = titleGetter)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user