From 87c157d04964a31b5a4f0c82107dae81d59f1905 Mon Sep 17 00:00:00 2001 From: Arkadii Sapozhnikov Date: Wed, 6 Sep 2023 22:24:00 +0200 Subject: [PATCH] fix project in LanguageTextField --- .../research/testspark/services/TestCaseDisplayService.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/kotlin/org/jetbrains/research/testspark/services/TestCaseDisplayService.kt b/src/main/kotlin/org/jetbrains/research/testspark/services/TestCaseDisplayService.kt index 78ca4706c..1fef67557 100644 --- a/src/main/kotlin/org/jetbrains/research/testspark/services/TestCaseDisplayService.kt +++ b/src/main/kotlin/org/jetbrains/research/testspark/services/TestCaseDisplayService.kt @@ -210,9 +210,7 @@ class TestCaseDisplayService(private val project: Project) { // Add an editor to modify the test source code val document = EditorFactory.getInstance().createDocument(testCodeFormatted) - val textFieldEditor = LanguageTextField(Language.findLanguageByID("JAVA"), project, testCodeFormatted, false) - - textFieldEditor.setOneLineMode(false) + val textFieldEditor = LanguageTextField(Language.findLanguageByID("JAVA"), editor.project, testCodeFormatted, false) // Add test case title val middlePanel = JPanel()