public final class NavigationUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
activateFileWithPsiElement(PsiElement elt) |
static boolean |
activateFileWithPsiElement(PsiElement elt,
boolean searchForOpen) |
static java.util.List<GotoRelatedItem> |
collectRelatedItems(PsiElement contextElement,
DataContext dataContext) |
static JBPopup |
getPsiElementPopup(PsiElement [] elements,
PsiElementListCellRenderer<? super PsiElement> renderer,
java.lang.String title) |
static JBPopup |
getPsiElementPopup(PsiElement [] elements,
java.lang.String title) |
static <T extends PsiElement> |
getPsiElementPopup(T [] elements,
PsiElementListCellRenderer<? super T> renderer,
java.lang.String title,
PsiElementProcessor<? super T> processor) |
static <T extends PsiElement> |
getPsiElementPopup(T [] elements,
PsiElementListCellRenderer<? super T> renderer,
java.lang.String title,
PsiElementProcessor<? super T> processor,
T initialSelection) |
static JBPopup |
getRelatedItemsPopup(java.util.List<? extends GotoRelatedItem> items,
java.lang.String title) |
static JBPopup |
getRelatedItemsPopup(java.util.List<? extends GotoRelatedItem> items,
java.lang.String title,
boolean showContainingModules)
Returns navigation popup that shows list of related items from
items list |
static void |
hidePopupIfDumbModeStarts(JBPopup popup,
Project project) |
static boolean |
openFileWithPsiElement(PsiElement element,
boolean searchForOpen,
boolean requestFocus) |
static TextAttributes |
patchAttributesColor(TextAttributes attributes,
TextRange range,
Editor editor)
Patches attributes to be visible under debugger active line
|
public static JBPopup getPsiElementPopup(PsiElement [] elements, java.lang.String title)
public static JBPopup getPsiElementPopup(PsiElement [] elements, PsiElementListCellRenderer<? super PsiElement> renderer, java.lang.String title)
public static <T extends PsiElement> JBPopup getPsiElementPopup(T [] elements, PsiElementListCellRenderer<? super T> renderer, java.lang.String title, PsiElementProcessor<? super T> processor)
public static <T extends PsiElement> JBPopup getPsiElementPopup(T [] elements, PsiElementListCellRenderer<? super T> renderer, java.lang.String title, PsiElementProcessor<? super T> processor, T initialSelection)
public static void hidePopupIfDumbModeStarts(JBPopup popup, Project project)
public static boolean activateFileWithPsiElement(PsiElement elt)
public static boolean activateFileWithPsiElement(PsiElement elt, boolean searchForOpen)
public static boolean openFileWithPsiElement(PsiElement element, boolean searchForOpen, boolean requestFocus)
public static TextAttributes patchAttributesColor(TextAttributes attributes, TextRange range, Editor editor)
public static JBPopup getRelatedItemsPopup(java.util.List<? extends GotoRelatedItem> items, java.lang.String title)
public static JBPopup getRelatedItemsPopup(java.util.List<? extends GotoRelatedItem> items, java.lang.String title, boolean showContainingModules)
items
listshowContainingModules
- Whether the popup should show additional information that aligned at the right side of the dialog.false
by defaultpublic static java.util.List<GotoRelatedItem> collectRelatedItems(PsiElement contextElement, DataContext dataContext)