Lines 395-401
Link Here
|
395 |
CompletionSettings.getInstance(getActiveComponent()).completionAutoPopup()) { |
395 |
CompletionSettings.getInstance(getActiveComponent()).completionAutoPopup()) { |
396 |
autoModEndOffset = modEndOffset; |
396 |
autoModEndOffset = modEndOffset; |
397 |
if (completionResultNull) |
397 |
if (completionResultNull) |
398 |
showCompletion(false, false, true, CompletionProvider.COMPLETION_QUERY_TYPE); |
398 |
showCompletion(false, false, true, type & (CompletionProvider.COMPLETION_QUERY_MASK | CompletionProvider.USER_QUERY_MASK)); |
399 |
} |
399 |
} |
400 |
|
400 |
|
401 |
boolean tooltipResultNull; |
401 |
boolean tooltipResultNull; |
Lines 1068-1078
Link Here
|
1068 |
|
1068 |
|
1069 |
final boolean noSuggestions = sortedResultItems.size() == 0; |
1069 |
final boolean noSuggestions = sortedResultItems.size() == 0; |
1070 |
if (noSuggestions) { |
1070 |
if (noSuggestions) { |
1071 |
if (hasAdditionalItems && qType == CompletionProvider.COMPLETION_QUERY_TYPE) { |
1071 |
if (hasAdditionalItems && (qType & CompletionProvider.COMPLETION_ALL_QUERY_TYPE) != CompletionProvider.COMPLETION_ALL_QUERY_TYPE) { |
1072 |
showCompletion(this.explicitQuery, this.refreshedQuery, false, CompletionProvider.COMPLETION_ALL_QUERY_TYPE); |
1072 |
showCompletion(this.explicitQuery, this.refreshedQuery, false, CompletionProvider.COMPLETION_ALL_QUERY_TYPE); |
1073 |
return; |
1073 |
return; |
1074 |
} |
1074 |
} |
1075 |
if (!explicitQuery) { |
1075 |
if (!explicitQuery) { |
1076 |
hideCompletion(false); |
1076 |
hideCompletion(false); |
1077 |
return; |
1077 |
return; |
1078 |
} |
1078 |
} |
Lines 1523-1529
Link Here
|
1523 |
void finishNotify(CompletionResultSetImpl finishedResult) { |
1523 |
void finishNotify(CompletionResultSetImpl finishedResult) { |
1524 |
Result localResult; |
1524 |
Result localResult; |
1525 |
boolean finished = false; |
1525 |
boolean finished = false; |
1526 |
switch (finishedResult.getQueryType()) { |
1526 |
switch (finishedResult.getQueryType() & CompletionProvider.RESERVED_QUERY_MASK) { |
1527 |
case CompletionProvider.COMPLETION_QUERY_TYPE: |
1527 |
case CompletionProvider.COMPLETION_QUERY_TYPE: |
1528 |
case CompletionProvider.COMPLETION_ALL_QUERY_TYPE: |
1528 |
case CompletionProvider.COMPLETION_ALL_QUERY_TYPE: |
1529 |
synchronized (this) { |
1529 |
synchronized (this) { |
Lines 1589-1595
Link Here
|
1589 |
private static CompletionResultSetImpl findFirstValidResult(List<CompletionResultSetImpl> resultSets) { |
1589 |
private static CompletionResultSetImpl findFirstValidResult(List<CompletionResultSetImpl> resultSets) { |
1590 |
for (int i = 0; i < resultSets.size(); i++) { |
1590 |
for (int i = 0; i < resultSets.size(); i++) { |
1591 |
CompletionResultSetImpl result = resultSets.get(i); |
1591 |
CompletionResultSetImpl result = resultSets.get(i); |
1592 |
switch (result.getQueryType()) { |
1592 |
switch (result.getQueryType() & CompletionProvider.RESERVED_QUERY_MASK) { |
1593 |
case CompletionProvider.DOCUMENTATION_QUERY_TYPE: |
1593 |
case CompletionProvider.DOCUMENTATION_QUERY_TYPE: |
1594 |
if (result.getDocumentation() != null) { |
1594 |
if (result.getDocumentation() != null) { |
1595 |
return result; |
1595 |
return result; |