override fun textChanged()

in src/main/kotlin/com/jetbrains/plugin/jtreg/ui/JTRegServiceConfigurable.kt [161:174]


                        override fun textChanged(e: DocumentEvent) {
                            val text = timeoutFactorTextField.component.text
                            text.toFloatOrNull()?.let { factor ->
                                if (factor <= 0f) {
                                    timeoutFactorErrorLabel.text = "Timeout factor must be a positive value"
                                } else {
                                    timeoutFactorErrorLabel.text = ""
                                    timeoutFactor.set(factor)
                                }
                            } ?: run {
                                timeoutFactorErrorLabel.text = "Timeout factor must be a number"
                                hasError = true
                            }
                        }