File tree Expand file tree Collapse file tree
src/main/kotlin/no/spk/fiskeoye/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package no.spk.fiskeoye.plugin.actions.window
22
3- import com.intellij.openapi.actionSystem.ActionUpdateThread
43import com.intellij.openapi.actionSystem.AnActionEvent
54import com.intellij.ui.table.JBTable
65import no.spk.fiskeoye.plugin.actions.FiskeoyeAction
@@ -13,11 +12,7 @@ internal abstract class TableAction(
1312) : FiskeoyeAction(toolTip, icon) {
1413
1514 override fun update (e : AnActionEvent ) {
16- super .update(e)
17- if (e.project == null ) return
1815 e.presentation.isEnabled = table.rowCount > 0
1916 }
2017
21- override fun getActionUpdateThread (): ActionUpdateThread = ActionUpdateThread .EDT
22-
2318}
Original file line number Diff line number Diff line change 11package no.spk.fiskeoye.plugin.listeners.button
22
3+ import com.intellij.ide.ActivityTracker
34import com.intellij.openapi.diagnostic.Logger
45import com.intellij.openapi.progress.ProgressIndicator
56import com.intellij.openapi.progress.Task
@@ -91,7 +92,7 @@ internal class FileContentSearchListener(private val fileContentPanel: FileConte
9192 mainTable.model = model
9293 mainTable.hideColumns()
9394 urlLabel.text = requestUrl
94- updateUI ()
95+ ActivityTracker .getInstance().inc ()
9596 }
9697 }
9798 }
Original file line number Diff line number Diff line change 11package no.spk.fiskeoye.plugin.listeners.button
22
3+ import com.intellij.ide.ActivityTracker
34import com.intellij.openapi.progress.ProgressIndicator
45import com.intellij.openapi.progress.Task
56import no.spk.fiskeoye.plugin.service.FiskeoyeService.getFilename
@@ -83,7 +84,7 @@ internal class FilenameSearchListener(private val filenamePanel: FilenamePanel)
8384 mainTable.model = model
8485 mainTable.hideColumns()
8586 urlLabel.text = requestUrl
86- updateUI ()
87+ ActivityTracker .getInstance().inc ()
8788 }
8889 }
8990 }
You can’t perform that action at this time.
0 commit comments