typing 'new File(' shouldn't insert some File* imported class when java.io.File is not imported yet

This commit is contained in:
peter
2012-01-17 17:57:53 +01:00
parent face21abec
commit c975d54b7a
3 changed files with 6 additions and 2 deletions
@@ -102,7 +102,7 @@ public class JavaCharFilter extends CharFilter {
}
if (c == '.' && isWithinLiteral(lookup)) return Result.ADD_TO_PREFIX;
if ((c == '[' || c == '<' || c == '.' || c == ' ') && isNonImportedClassEntered((LookupImpl)lookup)) {
if ((c == '[' || c == '<' || c == '.' || c == ' ' || c == '(') && isNonImportedClassEntered((LookupImpl)lookup)) {
return Result.HIDE_LOOKUP;
}