-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Do not use broken JBR in IntelliJ 2024.2.3 (#123)
* chore: Do not use broken JBR in IntelliJ 2024.2.3 * Add missing file * formatter --------- Co-authored-by: marcin <[email protected]>
- Loading branch information
1 parent
099b184
commit 86ddfe2
Showing
4 changed files
with
76 additions
and
12 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.vaadin.plugin.hotswapagent | ||
|
||
import com.intellij.openapi.ui.DialogWrapper | ||
import javax.swing.Action | ||
import javax.swing.JComponent | ||
import javax.swing.JPanel | ||
import javax.swing.JTextArea | ||
|
||
class BadJBRFoundDialog() : DialogWrapper(true) { | ||
|
||
private val message: String | ||
|
||
override fun createActions(): Array<Action> { | ||
return arrayOf(myOKAction) | ||
} | ||
|
||
init { | ||
message = buildString { | ||
append( | ||
"HotswapAgent requires running with a JetBrains Runtime JDK which implements the low level hotswap functionality.\n\n") | ||
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( | ||
"- Download a newer JetBrains runtime from https://github.com/JetBrains/JetBrainsRuntime/releases and set your run configuration to use it.") | ||
append("\n") | ||
} | ||
title = "Unable to Find a Suitable JDK" | ||
init() | ||
} | ||
|
||
override fun createCenterPanel(): JComponent { | ||
return JPanel().apply { add(JTextArea(message)) } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters