From 343d00f10bcc0c5bddd128630db856951e2d05e2 Mon Sep 17 00:00:00 2001 From: Nikita Iarychenko Date: Fri, 7 Feb 2025 10:35:22 +0400 Subject: [PATCH] OPENIDE added os information (in query params) to send statistics url (cherry picked from commit 121380ec96ea84871f33ad0a3ec4f79071d6a51e) (cherry picked from commit 289edef8e8e6caf7d781a1318b54a920cf68b2bb) (cherry picked from commit 3bf6ef08e6eb9acf92ae1fbfd36fc462474ab0a0) --- .../projectRoots/impl/jdkDownloader/JdkDownloadDialog.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/JdkDownloadDialog.kt b/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/JdkDownloadDialog.kt index 8d78ee8e5261..8d98267f3ded 100644 --- a/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/JdkDownloadDialog.kt +++ b/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/JdkDownloadDialog.kt @@ -16,6 +16,7 @@ import com.intellij.openapi.util.registry.Registry import com.intellij.platform.eel.EelApi import com.intellij.ui.CollectionComboBoxModel import com.intellij.ui.DocumentAdapter +import com.intellij.ui.SimpleTextAttributes import com.intellij.ui.components.textFieldWithBrowseButton import com.intellij.ui.dsl.builder.AlignX import com.intellij.ui.dsl.builder.Cell @@ -112,7 +113,10 @@ private class JdkVersionVendorCombobox: ComboBox() { renderer = listCellRenderer("") { val title = value.item.product.packagePresentationText.replace("Axiom JSC", "").trim() - text(title) + val style = if (isLicenseAcceptedJDK(value)) SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES else SimpleTextAttributes.REGULAR_ATTRIBUTES + text(title) { + this.attributes = style + } text(value.item.jdkVersion) { foreground = greyForeground