File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/main/kotlin/lechuck/intellij/vars Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments