201: LookupImpl.focusedDegree renamed
This commit is contained in:
committed by
Nikolay Krasko
parent
56d960c65b
commit
54b1c512c5
+1
-1
@@ -136,7 +136,7 @@ abstract class CompletionHandlerTestBase : KotlinLightCodeInsightFixtureTestCase
|
||||
if (lookup.currentItem != item) { // do not touch selection if not changed - important for char filter tests
|
||||
lookup.currentItem = item
|
||||
}
|
||||
lookup.focusDegree = LookupImpl.FocusDegree.FOCUSED
|
||||
lookup.setFocusedFocusDegree()
|
||||
if (LookupEvent.isSpecialCompletionChar(completionChar)) {
|
||||
lookup.finishLookup(completionChar)
|
||||
} else {
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.idea.completion.test.handlers
|
||||
|
||||
import com.intellij.codeInsight.lookup.impl.LookupImpl
|
||||
|
||||
// BUNCH: 193
|
||||
fun LookupImpl.setFocusedFocusDegree() {
|
||||
focusDegree = LookupImpl.FocusDegree.FOCUSED
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.idea.completion.test.handlers
|
||||
|
||||
import com.intellij.codeInsight.lookup.LookupFocusDegree
|
||||
import com.intellij.codeInsight.lookup.impl.LookupImpl
|
||||
|
||||
// BUNCH: 193
|
||||
fun LookupImpl.setFocusedFocusDegree() {
|
||||
this.lookupFocusDegree = LookupFocusDegree.FOCUSED
|
||||
}
|
||||
Reference in New Issue
Block a user