public class MethodSmartPointerNode extends ProjectViewNode<Type>
PresentableNodeDescriptor.ColoredFragmentNodeDescriptor.NodeComparator<T extends NodeDescriptor<?>>DEFAULT_WEIGHT, EMPTY_ARRAY, myClosedIcon, myColor, myName, myOpenIcon, myProjectEMPTY_NAVIGATION_ITEM_ARRAYEMPTY_ROOTS| Constructor and Description |
|---|
MethodSmartPointerNode(Project project,
PsiMethod value,
ViewSettings viewSettings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canNavigate()
Indicates whether this instance supports navigation of any kind.
|
boolean |
canNavigateToSource()
Indicates whether this instance supports navigation to source (that means some kind of editor).
|
boolean |
contains(VirtualFile file)
Checks if this node or one of its children represents the specified virtual file.
|
java.util.Collection<AbstractTreeNode<?>> |
getChildren() |
java.util.Collection<AbstractTreeNode<?>> |
getChildrenImpl() |
protected PsiElement |
getPsiElement() |
PsiElement |
getTargetElement() |
boolean |
isConstructor() |
void |
navigate(boolean requestFocus)
Open editor and select/navigate to the object there if possible.
|
void |
update(PresentationData data) |
void |
updateImpl(PresentationData data) |
canHaveChildrenMatching, createTreeNode, getDefaultRootsFor, getManualOrderKey, getQualifiedNameSortKey, getRoots, getSettings, getSortKey, getTitle, getTypeSortKey, getTypeSortWeight, getVirtualFile, hasProblemFileBeneath, isSortByFirstChild, isValidating, shouldApply, shouldDrillDownOnEmptyElement, shouldPostprocess, someChildContainsFile, someChildContainsFile, validate, wrapapply, canRepresent, equals, getChildToHighlightAt, getElement, getEqualityObject, getFileStatus, getFileStatusColor, getLeafState, getName, getNullValueSetTrace, getParent, getParentDescriptor, getParentValue, getTestPresentation, getToolTip, getValue, hashCode, isAlwaysExpand, isAlwaysLeaf, isAlwaysShowPlus, postprocess, setParent, setValue, shouldUpdateData, toTestString, valueIsCutapply, apply, applyFrom, createPresentation, getHighlightColor, getPresentation, getTemplatePresentation, isAncestorOrSelf, isContentHighlighted, isHighlightableContentNode, isParentOf, updateexpandOnDoubleClick, getChildrenSortingStamp, getClosedIcon, getColor, getIcon, getIndex, getOpenIcon, getProject, getUpdateCount, getWeight, isWasDeclaredAlwaysLeaf, setChildrenSortingStamp, setIcon, setIndex, setUpdateCount, setWasDeclaredAlwaysLeaf, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, getPresentationpublic MethodSmartPointerNode(Project project, PsiMethod value, ViewSettings viewSettings)
public java.util.Collection<AbstractTreeNode<?>> getChildrenImpl()
public void updateImpl(PresentationData data)
public boolean isConstructor()
public final java.util.Collection<AbstractTreeNode<?>> getChildren()
getChildren in class AbstractTreeNode<Type extends SmartPsiElementPointer>public PsiElement getTargetElement()
getTargetElement in interface PsiElementNavigationItempublic void update(PresentationData data)
update in class PresentableNodeDescriptor<AbstractTreeNode<Type extends SmartPsiElementPointer>>public boolean contains(VirtualFile file)
ProjectViewNodecontains in class ProjectViewNode<Type extends SmartPsiElementPointer>file - the file to check for.public void navigate(boolean requestFocus)
Navigatablenavigate in interface Navigatablenavigate in class AbstractTreeNode<Type extends SmartPsiElementPointer>requestFocus - true if focus requesting is necessarypublic boolean canNavigate()
NavigatableNavigatable.canNavigateToSource() returns true.
We assume that this method should return true in such case,
so implement this method respectively.canNavigate in interface NavigatablecanNavigate in class AbstractTreeNode<Type extends SmartPsiElementPointer>false if navigation is not possible for any reason.public boolean canNavigateToSource()
Navigatablefalse.
In such cases it is not recommended to do batch navigation for all navigatables
available via CommonDataKeys.NAVIGATABLE_ARRAY,
because it may lead to opening several modal dialogs.
Use OpenSourceUtil.navigate(com.intellij.pom.Navigatable...) to process such arrays correctly.canNavigateToSource in interface NavigatablecanNavigateToSource in class AbstractTreeNode<Type extends SmartPsiElementPointer>false if navigation to source is not possible for any reason.protected PsiElement getPsiElement()