OPENIDE #201 Remove the jetbrains statistics reminder from the license agreement dialog for eap

(cherry picked from commit 04552346ac)
(cherry picked from commit d0d1a85059)
(cherry picked from commit 142311b629)
This commit is contained in:
Nikita Iarychenko
2026-09-17 12:44:03 +04:00
parent 7131cf4814
commit 5a5bebf652
@@ -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.
@file:ApiStatus.Internal
package com.intellij.ide.gdpr
@@ -19,6 +22,7 @@ import com.intellij.ui.components.JBScrollPane
import com.intellij.util.ui.HTMLEditorKitBuilder
import com.intellij.util.ui.JBUI
import com.intellij.util.ui.SwingHelper
import org.jetbrains.annotations.ApiStatus
import java.awt.BorderLayout
import java.awt.event.ActionListener
import javax.accessibility.AccessibleContext
@@ -144,13 +148,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") +
"<br/>" + bundle.getString("userAgreement.dialog.eap.consents.noPersonalData")
val html = SwingHelper.createHtmlLabel(text, null, null)
html.border = JBUI.Borders.empty(10, 16, 10, 0)