From 7218ccc062933e695f801b6a0c6452f3932f9f8a Mon Sep 17 00:00:00 2001 From: Artur Date: Thu, 24 Oct 2024 11:04:10 +0300 Subject: [PATCH] chore: Change message to refer to released 2024.2.4 (#132) * chore: Change message to refer to released 2024.2.4 * use non editable text areas --------- Co-authored-by: marcin --- .../com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt | 7 ++++--- .../com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt b/src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt index 556a0c5..6bb6d37 100644 --- a/src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt +++ b/src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt @@ -21,8 +21,7 @@ class BadJBRFoundDialog() : DialogWrapper(true) { append( "Your IntelliJ IDEA installation includes a bundled JetBrains Runtime JDK which is known not work for this purpose.\n\n") append("You can resolve this by one of the following:\n") - append("- Downgrade IntelliJ IDEA to version 2024.2.2 or earlier which bundle a working version\n") - append("- Once released, upgrade IntelliJ IDEA to a version newer than 2024.2.3\n") + append("- Upgrade IntelliJ IDEA to 2024.2.4 or newer\n") append( "- Download a newer JetBrains runtime from https://github.com/JetBrains/JetBrainsRuntime/releases and set your run configuration to use it.") append("\n") @@ -32,6 +31,8 @@ class BadJBRFoundDialog() : DialogWrapper(true) { } override fun createCenterPanel(): JComponent { - return JPanel().apply { add(JTextArea(message)) } + val textArea = JTextArea(message) + textArea.isEditable = false + return JPanel().apply { add(textArea) } } } diff --git a/src/main/kotlin/com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt b/src/main/kotlin/com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt index 7beaa81..d42516f 100644 --- a/src/main/kotlin/com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt +++ b/src/main/kotlin/com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt @@ -47,6 +47,8 @@ class NoJBRFoundDialog(bundledJetbrainsJdkMajor: Int?, projectJdkMajor: Int?) : } override fun createCenterPanel(): JComponent { - return JPanel().apply { add(JTextArea(message)) } + val textArea = JTextArea(message) + textArea.isEditable = false + return JPanel().apply { add(textArea) } } }