mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
goto popups: when nothing matches, try lowercased pattern (IDEA-141453, IDEA-133894)
This commit is contained in:
@@ -241,6 +241,13 @@ class Intf {
|
||||
assert getPopupElements(new GotoClassModel2(project), 'goo.baz.Bar') == [bar2]
|
||||
}
|
||||
|
||||
public void "test try lowercase pattern if nothing matches"() {
|
||||
def match = myFixture.addClass("class IPRoi { }")
|
||||
def nonMatch = myFixture.addClass("class InspectionProfileImpl { }")
|
||||
assert getPopupElements(new GotoClassModel2(project), 'IPRoi') == [match]
|
||||
assert getPopupElements(new GotoClassModel2(project), 'IproImpl') == [nonMatch]
|
||||
}
|
||||
|
||||
private static filterJavaItems(List<Object> items) {
|
||||
return ApplicationManager.application.runReadAction ({
|
||||
return items.findAll { it instanceof PsiElement && it.language == JavaLanguage.INSTANCE }
|
||||
|
||||
Reference in New Issue
Block a user