Skip to content

Commit e17bcd5

Browse files
committed
use runInEdt
1 parent 8a7f079 commit e17bcd5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/CodeWhispererCodeScanIssueDetailsPanel.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import javax.swing.JEditorPane
5151
import javax.swing.JLabel
5252
import javax.swing.JPanel
5353
import javax.swing.ScrollPaneConstants
54-
import javax.swing.SwingUtilities
5554
import javax.swing.event.HyperlinkEvent
5655
import javax.swing.text.html.HTMLEditorKit
5756

@@ -72,7 +71,7 @@ internal class CodeWhispererCodeScanIssueDetailsPanel(
7271
)
7372
editorPane.revalidate()
7473
editorPane.repaint()
75-
SwingUtilities.invokeLater {
74+
runInEdt {
7675
editorPane.scrollToReference("fixLoadingSection")
7776
}
7877

@@ -85,7 +84,7 @@ internal class CodeWhispererCodeScanIssueDetailsPanel(
8584
)
8685
revalidate()
8786
repaint()
88-
SwingUtilities.invokeLater {
87+
runInEdt {
8988
scrollToReference("fixFailureSection")
9089
}
9190
}
@@ -122,7 +121,7 @@ internal class CodeWhispererCodeScanIssueDetailsPanel(
122121
)
123122
revalidate()
124123
repaint()
125-
SwingUtilities.invokeLater {
124+
runInEdt {
126125
scrollToReference("codeFixActions")
127126
}
128127
}

0 commit comments

Comments
 (0)