public class NavigationGutterIconBuilder<T>
extends java.lang.Object
GutterIconRenderer
and LineMarkerInfo
.Modifier and Type | Field and Description |
---|---|
static NotNullFunction<DomElement,java.util.Collection<? extends PsiElement>> |
DEFAULT_DOM_CONVERTOR |
protected static NotNullFunction<PsiElement,java.util.Collection<? extends PsiElement>> |
DEFAULT_PSI_CONVERTOR |
static NotNullFunction<DomElement,java.util.Collection<? extends GotoRelatedItem>> |
DOM_GOTO_RELATED_ITEM_PROVIDER |
protected GutterIconRenderer.Alignment |
myAlignment |
protected java.lang.String |
myEmptyText |
protected javax.swing.Icon |
myIcon |
protected java.lang.String |
myPopupTitle |
protected NotNullLazyValue<java.util.Collection<? extends T>> |
myTargets |
protected java.lang.String |
myTooltipText |
protected java.lang.String |
myTooltipTitle |
protected static NotNullFunction<PsiElement,java.util.Collection<? extends GotoRelatedItem>> |
PSI_GOTO_RELATED_ITEM_PROVIDER |
Modifier | Constructor and Description |
---|---|
protected |
NavigationGutterIconBuilder(javax.swing.Icon icon,
NotNullFunction<? super T,? extends java.util.Collection<? extends PsiElement>> converter) |
protected |
NavigationGutterIconBuilder(javax.swing.Icon icon,
NotNullFunction<? super T,? extends java.util.Collection<? extends PsiElement>> converter,
NotNullFunction<? super T,? extends java.util.Collection<? extends GotoRelatedItem>> gotoRelatedItemProvider) |
protected static final NotNullFunction<PsiElement,java.util.Collection<? extends PsiElement>> DEFAULT_PSI_CONVERTOR
protected final javax.swing.Icon myIcon
protected NotNullLazyValue<java.util.Collection<? extends T>> myTargets
protected java.lang.String myTooltipText
protected java.lang.String myPopupTitle
protected java.lang.String myEmptyText
protected java.lang.String myTooltipTitle
protected GutterIconRenderer.Alignment myAlignment
public static final NotNullFunction<DomElement,java.util.Collection<? extends PsiElement>> DEFAULT_DOM_CONVERTOR
public static final NotNullFunction<DomElement,java.util.Collection<? extends GotoRelatedItem>> DOM_GOTO_RELATED_ITEM_PROVIDER
protected static final NotNullFunction<PsiElement,java.util.Collection<? extends GotoRelatedItem>> PSI_GOTO_RELATED_ITEM_PROVIDER
protected NavigationGutterIconBuilder(javax.swing.Icon icon, NotNullFunction<? super T,? extends java.util.Collection<? extends PsiElement>> converter)
protected NavigationGutterIconBuilder(javax.swing.Icon icon, NotNullFunction<? super T,? extends java.util.Collection<? extends PsiElement>> converter, NotNullFunction<? super T,? extends java.util.Collection<? extends GotoRelatedItem>> gotoRelatedItemProvider)
public static NavigationGutterIconBuilder<PsiElement> create(javax.swing.Icon icon)
public static <T> NavigationGutterIconBuilder<T> create(javax.swing.Icon icon, NotNullFunction<? super T,? extends java.util.Collection<? extends PsiElement>> converter)
public static <T> NavigationGutterIconBuilder<T> create(javax.swing.Icon icon, NotNullFunction<? super T,? extends java.util.Collection<? extends PsiElement>> converter, NotNullFunction<? super T,? extends java.util.Collection<? extends GotoRelatedItem>> gotoRelatedItemProvider)
public NavigationGutterIconBuilder<T> setTarget(T target)
@SafeVarargs public final NavigationGutterIconBuilder<T> setTargets(T... targets)
public NavigationGutterIconBuilder<T> setTargets(NotNullLazyValue<java.util.Collection<? extends T>> targets)
public NavigationGutterIconBuilder<T> setTargets(java.util.Collection<? extends T> targets)
public NavigationGutterIconBuilder<T> setTooltipText(java.lang.String tooltipText)
public NavigationGutterIconBuilder<T> setAlignment(GutterIconRenderer.Alignment alignment)
public NavigationGutterIconBuilder<T> setPopupTitle(java.lang.String popupTitle)
public NavigationGutterIconBuilder<T> setEmptyPopupText(java.lang.String emptyText)
public NavigationGutterIconBuilder<T> setTooltipTitle(java.lang.String tooltipTitle)
public NavigationGutterIconBuilder<T> setNamer(NullableFunction<? super T,java.lang.String> namer)
public NavigationGutterIconBuilder<T> setCellRenderer(PsiElementListCellRenderer cellRenderer)
public Annotation install(DomElementAnnotationHolder holder, DomElement element)
@Deprecated public Annotation install(AnnotationHolder holder, PsiElement element)
createGutterIcon(AnnotationHolder, PsiElement)
} insteadpublic void createGutterIcon(AnnotationHolder holder, PsiElement element)
public RelatedItemLineMarkerInfo<PsiElement> createLineMarkerInfo(PsiElement element)
protected java.util.Collection<GotoRelatedItem> computeGotoTargets()
protected NavigationGutterIconRenderer createGutterIconRenderer(Project project)
protected NavigationGutterIconRenderer createGutterIconRenderer(NotNullLazyValue<java.util.List<SmartPsiElementPointer<?>>> pointers, Computable<PsiElementListCellRenderer<?>> renderer, boolean empty)