public abstract class NavigationGutterIconRenderer extends GutterIconRenderer implements GutterIconNavigationHandler<PsiElement>, DumbAware
GutterIconRenderer.Alignment
Modifier and Type | Field and Description |
---|---|
protected Computable<? extends PsiElementListCellRenderer> |
myCellRenderer |
protected java.lang.String |
myPopupTitle |
Modifier | Constructor and Description |
---|---|
protected |
NavigationGutterIconRenderer(java.lang.String popupTitle,
java.lang.String emptyText,
Computable<? extends PsiElementListCellRenderer<?>> cellRenderer,
NotNullLazyValue<? extends java.util.List<SmartPsiElementPointer<?>>> pointers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
AnAction |
getClickAction()
Returns the action executed when the icon is left-clicked.
|
java.util.List<PsiElement> |
getTargetElements() |
int |
hashCode() |
boolean |
isNavigateAction()
Returns the value indicating whether the hand cursor should be displayed when the mouse
is hovering over the icon.
|
void |
navigate(java.awt.event.MouseEvent event,
PsiElement elt) |
protected void |
navigateToItems(java.awt.event.MouseEvent event) |
getAccessibleName, getAccessibleTooltipText, getAlignment, getDraggableObject, getFeatureId, getMiddleButtonClickAction, getPopupMenuActions, getRightButtonClickAction, getTooltipText
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getIcon
isDumbAware
protected final java.lang.String myPopupTitle
protected final Computable<? extends PsiElementListCellRenderer> myCellRenderer
protected NavigationGutterIconRenderer(java.lang.String popupTitle, java.lang.String emptyText, Computable<? extends PsiElementListCellRenderer<?>> cellRenderer, NotNullLazyValue<? extends java.util.List<SmartPsiElementPointer<?>>> pointers)
public boolean isNavigateAction()
GutterIconRenderer
isNavigateAction
in class GutterIconRenderer
public java.util.List<PsiElement> getTargetElements()
public boolean equals(java.lang.Object o)
equals
in class GutterIconRenderer
public int hashCode()
hashCode
in class GutterIconRenderer
public AnAction getClickAction()
GutterIconRenderer
getClickAction
in class GutterIconRenderer
public void navigate(java.awt.event.MouseEvent event, PsiElement elt)
navigate
in interface GutterIconNavigationHandler<PsiElement>
protected void navigateToItems(java.awt.event.MouseEvent event)