override fun update()

in src/main/kotlin/com/pestphp/pest/runner/PestPressToContinueAction.kt [24:33]


    override fun update(e: AnActionEvent) {
        val descriptor = e.getData(LangDataKeys.RUN_CONTENT_DESCRIPTOR)
        val processHandler = descriptor?.processHandler
        e.presentation.setText(PestBundle.messagePointer("action.press.to.continue.text"))
        e.presentation.isVisible = descriptor?.runConfigurationTypeId == PestRunConfigurationType.instance.id
        e.presentation.isEnabled = processHandler != null &&
            !processHandler.isProcessTerminated &&
            !processHandler.isProcessTerminating &&
            getInnerConsoleViewImpl(descriptor)?.let { shouldEnableAndPrintHint(it) } == true
    }