public class AnnotationParameterInfoHandler extends java.lang.Object implements ParameterInfoHandler<PsiAnnotationParameterList,PsiAnnotationMethod>, DumbAware
| Constructor and Description |
|---|
AnnotationParameterInfoHandler() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispose, getParameterCloseChars, getParametersForDocumentation, isWhitespaceSensitive, processFoundElementForUpdatingParameterInfo, supportsOverloadSwitching, syncUpdateOnCaretMove, tracksParameterIndexpublic java.lang.Object [] getParametersForLookup(LookupElement item, ParameterInfoContext context)
getParametersForLookup in interface ParameterInfoHandler<PsiAnnotationParameterList,PsiAnnotationMethod>public boolean couldShowInLookup()
couldShowInLookup in interface ParameterInfoHandler<PsiAnnotationParameterList,PsiAnnotationMethod>public PsiAnnotationParameterList findElementForParameterInfo(CreateParameterInfoContext context)
ParameterInfoHandlerFind psiElement for parameter info should also set ItemsToShow in context and may set highlighted element
Note: it is executed on non UI thread
findElementForParameterInfo in interface ParameterInfoHandler<PsiAnnotationParameterList,PsiAnnotationMethod>public void showParameterInfo(PsiAnnotationParameterList element, CreateParameterInfoContext context)
showParameterInfo in interface ParameterInfoHandler<PsiAnnotationParameterList,PsiAnnotationMethod>public PsiAnnotationParameterList findElementForUpdatingParameterInfo(UpdateParameterInfoContext context)
ParameterInfoHandlerHint has to be removed if method returns null.
Note: it is executed on non-UI thread
findElementForUpdatingParameterInfo in interface ParameterInfoHandler<PsiAnnotationParameterList,PsiAnnotationMethod>public void updateParameterInfo(PsiAnnotationParameterList parameterOwner, UpdateParameterInfoContext context)
ParameterInfoHandlerUpdates parameter info context due to change of caret position.
It could update context and state of UpdateParameterInfoContext.getObjectsToView()
Note: context.getParameterOwner() equals to parameterOwner or null
Note: it is executed on non UI thread.
updateParameterInfo in interface ParameterInfoHandler<PsiAnnotationParameterList,PsiAnnotationMethod>public void updateUI(PsiAnnotationMethod p, ParameterInfoUIContext context)
ParameterInfoHandlerThis method is executed on UI thread and supposed only to update UI representation using
ParameterInfoUIContext.setUIComponentEnabled(boolean) or ParameterInfoUIContext.setupUIComponentPresentation(String, int, int, boolean, boolean, boolean, Color).
Don't perform any heavy calculations like resolve here: move it to ParameterInfoHandler.findElementForParameterInfo(CreateParameterInfoContext) or
ParameterInfoHandler.updateParameterInfo(Object, UpdateParameterInfoContext).
updateUI in interface ParameterInfoHandler<PsiAnnotationParameterList,PsiAnnotationMethod>public static java.lang.String updateUIText(PsiAnnotationMethod p, ParameterInfoUIContext context)