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, getTooltipTextclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetIconisDumbAwareprotected 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()
GutterIconRendererisNavigateAction in class GutterIconRendererpublic java.util.List<PsiElement> getTargetElements()
public boolean equals(java.lang.Object o)
equals in class GutterIconRendererpublic int hashCode()
hashCode in class GutterIconRendererpublic AnAction getClickAction()
GutterIconRenderergetClickAction in class GutterIconRendererpublic void navigate(java.awt.event.MouseEvent event,
PsiElement elt)
navigate in interface GutterIconNavigationHandler<PsiElement>protected void navigateToItems(java.awt.event.MouseEvent event)