mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
fix compilation
This commit is contained in:
+4
-4
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -531,7 +531,7 @@ class Foo {
|
||||
|
||||
void "test vertical arrows in semi-focused lookup"() {
|
||||
CodeInsightSettings.instance.SELECT_AUTOPOPUP_SUGGESTIONS_BY_CHARS = false
|
||||
UISettings.getInstance().SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY = true
|
||||
UISettings.getInstance()setSortLookupElementsLexicographically(true)
|
||||
|
||||
String toType = "fo"
|
||||
testArrows toType, LookupImpl.FocusDegree.SEMI_FOCUSED, 2, 0
|
||||
@@ -1509,7 +1509,7 @@ class Foo {
|
||||
protected void tearDown() {
|
||||
CodeInsightSettings.instance.SELECT_AUTOPOPUP_SUGGESTIONS_BY_CHARS = false
|
||||
CodeInsightSettings.instance.COMPLETION_CASE_SENSITIVE = CodeInsightSettings.FIRST_LETTER
|
||||
UISettings.getInstance().SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY = false
|
||||
UISettings.getInstance()setSortLookupElementsLexicographically(false)
|
||||
|
||||
super.tearDown()
|
||||
}
|
||||
@@ -1609,7 +1609,7 @@ class ListConfigKey {
|
||||
}
|
||||
|
||||
void testPreselectMostRelevantInTheMiddleAlpha() {
|
||||
UISettings.getInstance().SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY = true
|
||||
UISettings.getInstance().setSortLookupElementsLexicographically(true)
|
||||
CodeInsightSettings.instance.SELECT_AUTOPOPUP_SUGGESTIONS_BY_CHARS = false
|
||||
|
||||
myFixture.configureByText 'a.java', '''
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -293,7 +293,7 @@ class NormalCompletionOrderingTest extends CompletionSortingTestCase {
|
||||
}
|
||||
|
||||
void testPreselectMostRelevantInTheMiddleAlpha() {
|
||||
UISettings.getInstance().SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY = true
|
||||
UISettings.getInstance().setSortLookupElementsLexicographically(true)
|
||||
|
||||
myFixture.addClass("package foo; public class ELXaaaaaaaaaaaaaaaaaaaa {}")
|
||||
invokeCompletion(getTestName(false) + ".java")
|
||||
@@ -305,14 +305,14 @@ class NormalCompletionOrderingTest extends CompletionSortingTestCase {
|
||||
}
|
||||
|
||||
void testReallyAlphaSorting() {
|
||||
UISettings.getInstance().SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY = true
|
||||
UISettings.getInstance().setSortLookupElementsLexicographically(true)
|
||||
|
||||
invokeCompletion(getTestName(false) + ".java")
|
||||
assert myFixture.lookupElementStrings.sort() == myFixture.lookupElementStrings
|
||||
}
|
||||
|
||||
void testAlphaSortPackages() {
|
||||
UISettings.getInstance().SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY = true
|
||||
UISettings.getInstance().setSortLookupElementsLexicographically(true)
|
||||
|
||||
def pkgs = ['bar', 'foo', 'goo', 'roo', 'zoo']
|
||||
for (s in pkgs) {
|
||||
@@ -325,7 +325,7 @@ class NormalCompletionOrderingTest extends CompletionSortingTestCase {
|
||||
}
|
||||
|
||||
void testAlphaSortingStartMatchesFirst() {
|
||||
UISettings.getInstance().SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY = true
|
||||
UISettings.getInstance().setSortLookupElementsLexicographically(true)
|
||||
checkPreferredItems 0, 'xxbar', 'xxfoo', 'xxgoo', 'barxx', 'fooxx', 'gooxx'
|
||||
}
|
||||
|
||||
@@ -702,7 +702,7 @@ class ContainerUtil extends ContainerUtilRt {
|
||||
}
|
||||
|
||||
void testPreselectClosestExactPrefixItem() {
|
||||
UISettings.instance.SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY = true
|
||||
UISettings.instance.setSortLookupElementsLexicographically(true)
|
||||
myFixture.addClass 'package pack1; public class SameNamed {}'
|
||||
myFixture.addClass 'package pack2; public class SameNamed {}'
|
||||
checkPreferredItems 1, 'SameNamed', 'SameNamed'
|
||||
|
||||
Reference in New Issue
Block a user