mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
on second basic completion, suggest class names everywhere
This commit is contained in:
+4
-1
@@ -257,7 +257,10 @@ public class JavaCompletionContributor extends CompletionContributor {
|
||||
public static void addAllClasses(CompletionParameters parameters,
|
||||
final CompletionResultSet result,
|
||||
final InheritorsHolder inheritors) {
|
||||
if (!isClassNamePossible(parameters.getPosition()) || !mayStartClassName(result)) return;
|
||||
if (!isClassNamePossible(parameters.getPosition()) && parameters.getInvocationCount() <= 1 ||
|
||||
!mayStartClassName(result)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mayShowAllClasses(parameters)) {
|
||||
JavaClassNameCompletionContributor.addAllClasses(parameters, parameters.getInvocationCount() <= 2, result.getPrefixMatcher(), new Consumer<LookupElement>() {
|
||||
|
||||
Reference in New Issue
Block a user