From 04552346ac831cd7a375f4c8586dd416b946f773 Mon Sep 17 00:00:00 2001 From: Nikita Iarychenko Date: Wed, 16 Jul 2025 11:55:37 +0400 Subject: [PATCH] OPENIDE #201 Remove the jetbrains statistics reminder from the license agreement dialog for eap --- .../src/com/intellij/ide/gdpr/AgreementUi.kt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/gdpr/AgreementUi.kt b/platform/platform-impl/src/com/intellij/ide/gdpr/AgreementUi.kt index f90973f1032b..da019ebf67f1 100644 --- a/platform/platform-impl/src/com/intellij/ide/gdpr/AgreementUi.kt +++ b/platform/platform-impl/src/com/intellij/ide/gdpr/AgreementUi.kt @@ -1,4 +1,7 @@ -// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// +// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru). +// Any modifications are available on the same license terms as the original source code. package com.intellij.ide.gdpr import com.intellij.DynamicBundle @@ -133,13 +136,7 @@ class AgreementUiBuilder internal constructor() { eapPanel?.let { isPrivacyPolicy -> val eapPanel = JPanel(BorderLayout(0, 0)) val bundle = DynamicBundle.getResourceBundle(this::class.java.classLoader, "messages.AgreementsBundle") - val text = - (if (isPrivacyPolicy) { - bundle.getString("userAgreement.dialog.eap.consents.privacyPolicy") - } - else { - bundle.getString("userAgreement.dialog.eap.consents.noPrivacyPolicy") - }) + + val text = bundle.getString("userAgreement.dialog.eap.consents.privacyPolicy") + "
" + bundle.getString("userAgreement.dialog.eap.consents.noPersonalData") val html = SwingHelper.createHtmlLabel(text, null, null) html.border = JBUI.Borders.empty(10, 16, 10, 0)