From e4a78e797454c24b781ce0321768ba18026c60ab 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) (cherry picked from commit 343d00f10bcc0c5bddd128630db856951e2d05e2) (cherry picked from commit 349bd436d6ce24012b27b359c69ba47ab457f3ec) --- .../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 be068395e3d0..b27a6496457f 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 @@ -18,6 +18,7 @@ import com.intellij.openapi.util.registry.Registry import com.intellij.platform.eel.EelApi import com.intellij.platform.eel.EelPlatform 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 @@ -113,7 +114,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