src/main/kotlin/com/intellij/ideolog/editorActions/GoToNextErrorAction.kt [13:28]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override fun getActionUpdateThread(): ActionUpdateThread { return ActionUpdateThread.BGT } override fun update(e: AnActionEvent) { e.presentation.isEnabled = canExecute(e) } private fun canExecute(e: AnActionEvent): Boolean { val psiFile = e.dataContext.getData(CommonDataKeys.PSI_FILE) ?: return false return psiFile.fileType == LogFileType } override fun actionPerformed(e: AnActionEvent) { val editor = e.dataContext.getData(CommonDataKeys.EDITOR) ?: return - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/main/kotlin/com/intellij/ideolog/editorActions/JumpToSourceAction.kt [11:26]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override fun getActionUpdateThread(): ActionUpdateThread { return ActionUpdateThread.BGT } override fun update(e: AnActionEvent) { e.presentation.isEnabled = canExecute(e) } private fun canExecute(e: AnActionEvent): Boolean { val psiFile = e.dataContext.getData(CommonDataKeys.PSI_FILE) ?: return false return psiFile.fileType == LogFileType } override fun actionPerformed(e: AnActionEvent) { val editor = e.dataContext.getData(CommonDataKeys.EDITOR) ?: return - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -