public final class GutterTooltipHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <E extends PsiElement> |
getTooltipText(java.util.Collection<? extends E> elements,
java.util.function.Function<? super E,java.lang.String> elementToPrefix,
java.util.function.Predicate<? super E> skipFirstMemberOfElement,
java.lang.String actionId) |
static <E extends PsiElement> |
getTooltipText(java.util.Collection<E> elements,
java.lang.String prefix,
boolean skipFirstMember,
java.lang.String actionId) |
public static <E extends PsiElement> java.lang.String getTooltipText(java.util.Collection<E> elements, java.lang.String prefix, boolean skipFirstMember, java.lang.String actionId)
elements
- a collection of elements to create a formatted tooltip textprefix
- a text to insert before all elementsskipFirstMember
- true
to skip a method (or field) name in the link to elementactionId
- an action identifier to generate context help or null
if not applicablepublic static <E extends PsiElement> java.lang.String getTooltipText(java.util.Collection<? extends E> elements, java.util.function.Function<? super E,java.lang.String> elementToPrefix, java.util.function.Predicate<? super E> skipFirstMemberOfElement, java.lang.String actionId)
elements
- a collection of elements to create a formatted tooltip textelementToPrefix
- a function that returns a text to insert before the current elementskipFirstMemberOfElement
- a function that returns true
to skip a method (or field) name for the current elementactionId
- an action identifier to generate context help or null
if not applicable