Skip to content

Commit 949d5fe

Browse files
committed
fix ActionUpdateThread.OLD_EDT warning
1 parent b38d0ef commit 949d5fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/kotlin/lechuck/intellij/vars/VariablesTable.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ open class VariablesTable : ListTableWithButtons<Variable>() {
237237
override fun isEnabled(): Boolean {
238238
return myPanel?.isCopyEnabled(DataContext.EMPTY_CONTEXT) == true
239239
}
240+
241+
override fun getActionUpdateThread(): ActionUpdateThread {
242+
return ActionUpdateThread.EDT
243+
}
240244
}
241245
val pasteButton = object : AnActionButton("Paste", AllIcons.Actions.MenuPaste) {
242246
override fun actionPerformed(e: AnActionEvent) {
@@ -250,6 +254,10 @@ open class VariablesTable : ListTableWithButtons<Variable>() {
250254
override fun isVisible(): Boolean {
251255
return myPanel?.isPastePossible(DataContext.EMPTY_CONTEXT) == true
252256
}
257+
258+
override fun getActionUpdateThread(): ActionUpdateThread {
259+
return ActionUpdateThread.EDT
260+
}
253261
}
254262
return arrayOf(copyButton, pasteButton)
255263
}

0 commit comments

Comments
 (0)