mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-109538 - CCE: MethodParameterInfoHandler.updateParameterInfo
This commit is contained in:
+4
-3
@@ -327,9 +327,10 @@ public class MethodParameterInfoHandler implements ParameterInfoHandlerWithTabAc
|
||||
context.setHighlightedParameter(completeMatch);
|
||||
}
|
||||
|
||||
CandidateInfo resultingCandidate = (CandidateInfo)(candidates.length == 1 ? candidates[0] : context.getHighlightedParameter());
|
||||
if (resultingCandidate != null) {
|
||||
PsiMethod method = (PsiMethod)resultingCandidate.getElement();
|
||||
Object highlightedCandidate = candidates.length == 1 ? candidates[0] : context.getHighlightedParameter();
|
||||
if (highlightedCandidate != null) {
|
||||
PsiMethod method = (PsiMethod)(highlightedCandidate instanceof CandidateInfo
|
||||
? ((CandidateInfo)highlightedCandidate).getElement() : highlightedCandidate);
|
||||
if (!method.isVarArgs() && index >= method.getParameterList().getParametersCount()) context.setCurrentParameter(-1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user