public interface ParameterInfoHandler<ParameterOwner extends java.lang.Object & PsiElement,ParameterType>
boolean couldShowInLookup()
java.lang.Object [] getParametersForLookup(LookupElement item, ParameterInfoContext context)
ParameterOwner findElementForParameterInfo(CreateParameterInfoContext context)
Find psiElement for parameter info should also set ItemsToShow in context and may set highlighted element
Note: it is executed on non UI thread
void showParameterInfo(ParameterOwner element, CreateParameterInfoContext context)
ParameterOwner findElementForUpdatingParameterInfo(UpdateParameterInfoContext context)
Hint has to be removed if method returns null
.
Note: it is executed on non-UI thread
default void processFoundElementForUpdatingParameterInfo(ParameterOwner parameterOwner, UpdateParameterInfoContext context)
findElementForUpdatingParameterInfo(UpdateParameterInfoContext)
on UI thread.void updateParameterInfo(ParameterOwner parameterOwner, UpdateParameterInfoContext context)
Updates 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.
void updateUI(ParameterType p, ParameterInfoUIContext context)
This 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 findElementForParameterInfo(CreateParameterInfoContext)
or
updateParameterInfo(Object, UpdateParameterInfoContext)
.
default boolean supportsOverloadSwitching()
default void dispose(DeleteParameterInfoContext context)
default boolean isWhitespaceSensitive()
default void syncUpdateOnCaretMove(UpdateParameterInfoContext context)
@Deprecated default java.lang.Object [] getParametersForDocumentation(ParameterType p, ParameterInfoContext context)
@Deprecated default java.lang.String getParameterCloseChars()
@Deprecated default boolean tracksParameterIndex()