IDEADEV-40830 Allow to use "​*" wildcard in completion popup

This commit is contained in:
peter
2009-10-14 23:43:28 +01:00
parent 08598442aa
commit 72fd46bc9e
@@ -95,14 +95,12 @@ public class CamelHumpMatcher extends PrefixMatcher {
return NameUtil.buildMatcher(myPrefix, 0, true, true);
}
final CodeInsightSettings settings = CodeInsightSettings.getInstance();
int variant = settings.COMPLETION_CASE_SENSITIVE;
switch (variant) {
switch (CodeInsightSettings.getInstance().COMPLETION_CASE_SENSITIVE) {
case CodeInsightSettings.NONE:
return NameUtil.buildMatcher(myPrefix, 0, true, true);
case CodeInsightSettings.FIRST_LETTER:
return NameUtil.buildMatcher(myPrefix, 1, true, true);
int exactPrefixLen = myPrefix.startsWith("*") ? 0 : 1;
return NameUtil.buildMatcher(myPrefix, exactPrefixLen, true, true);
case CodeInsightSettings.ALL:
return NameUtil.buildMatcher(myPrefix, 0, false, false);
default: