From abe7d9363199bfa383d3befc7c3b174a442ff37a Mon Sep 17 00:00:00 2001 From: "Kirill.Safonov" Date: Thu, 30 Dec 2010 20:42:19 +0300 Subject: [PATCH] always try to use injected document when handling typing, so that autocompletion popup is invoked in right editor --- .../completion/CompletionAutoPopupTestCase.groovy | 4 ++++ .../codeInsight/editorActions/TypedHandler.java | 13 ------------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy b/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy index 1fa17aeba53a..eec5c26704b2 100644 --- a/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy +++ b/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy @@ -55,6 +55,10 @@ abstract class CompletionAutoPopupTestCase extends LightCodeInsightFixtureTestCa }) } + protected void doHighlighting() { + UIUtil.invokeAndWaitIfNeeded({ myFixture.doHighlighting() } as Runnable) + } + void type(String s) { for (i in 0..