Class AnahataTreeStructureProvider.AnahataNode

java.lang.Object
com.intellij.ide.util.treeView.NodeDescriptor<com.intellij.ide.util.treeView.AbstractTreeNode<com.intellij.openapi.vfs.VirtualFile>>
com.intellij.ide.util.treeView.PresentableNodeDescriptor<com.intellij.ide.util.treeView.AbstractTreeNode<com.intellij.openapi.vfs.VirtualFile>>
com.intellij.ide.util.treeView.AbstractTreeNode<com.intellij.openapi.vfs.VirtualFile>
uno.anahata.asi.intellij.tools.ide.nodes.AnahataTreeStructureProvider.AnahataNode
All Implemented Interfaces:
com.intellij.navigation.NavigationItem, com.intellij.openapi.ui.Queryable.Contributor, com.intellij.pom.Navigatable, com.intellij.ui.tree.LeafState.Supplier
Enclosing class:
AnahataTreeStructureProvider

private static final class AnahataTreeStructureProvider.AnahataNode extends com.intellij.ide.util.treeView.AbstractTreeNode<com.intellij.openapi.vfs.VirtualFile>
A navigable Project-view node representing the project's anahata.md instructions.
Author:
anahata
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.intellij.ide.util.treeView.PresentableNodeDescriptor

    com.intellij.ide.util.treeView.PresentableNodeDescriptor.ColoredFragment

    Nested classes/interfaces inherited from class com.intellij.ide.util.treeView.NodeDescriptor

    com.intellij.ide.util.treeView.NodeDescriptor.NodeComparator<T>
  • Field Summary

    Fields inherited from class com.intellij.ide.util.treeView.AbstractTreeNode

    TREE_WRAPPER_VALUE

    Fields inherited from class com.intellij.ide.util.treeView.NodeDescriptor

    myClosedIcon, myColor, myName, myProject

    Fields inherited from interface com.intellij.pom.Navigatable

    EMPTY_NAVIGATABLE_ARRAY

    Fields inherited from interface com.intellij.navigation.NavigationItem

    EMPTY_NAVIGATION_ITEM_ARRAY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    AnahataNode(com.intellij.openapi.project.Project project, com.intellij.openapi.vfs.VirtualFile file)
    Creates the node for the given instructions file.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    boolean
    Collection<? extends com.intellij.ide.util.treeView.AbstractTreeNode<?>>
    void
    navigate(boolean requestFocus)
    protected void
    update(com.intellij.ide.projectView.PresentationData presentation)

    Methods inherited from class com.intellij.ide.util.treeView.AbstractTreeNode

    appendInplaceComments, apply, canRepresent, computeBackgroundColor, equals, getChildToHighlightAt, getElement, getEqualityObject, getFileStatus, getFileStatusColor, getLeafState, getName, getParent, getParentDescriptor, getParentValue, getTestPresentation, getValue, getVirtualFile, hashCode, hasProblemFileBeneath, isAlwaysExpand, isAlwaysLeaf, isAlwaysShowPlus, isAutoExpandAllowed, isIncludedInExpandAll, mayContain, postprocess, recordValueSetTrace, setParent, setValue, shouldUpdateData, toTestString, valueIsCut

    Methods inherited from class com.intellij.ide.util.treeView.PresentableNodeDescriptor

    apply, apply, applyFrom, createPresentation, getColoredTextAsPlainText, getHighlightColor, getPresentation, getTemplatePresentation, isAncestorOrSelf, isContentHighlighted, isHighlightableContentNode, isParentOf, shouldApply, shouldPostprocess, update

    Methods inherited from class com.intellij.ide.util.treeView.NodeDescriptor

    expandOnDoubleClick, getChildrenSortingStamp, getColor, getDefaultWeight, getEmptyArray, getIcon, getIndex, getProject, getUpdateCount, getWeight, isWasDeclaredAlwaysLeaf, setChildrenSortingStamp, setIcon, setIndex, setUpdateCount, setWasDeclaredAlwaysLeaf, toString

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.intellij.pom.Navigatable

    navigationRequest

    Methods inherited from interface com.intellij.navigation.NavigationItem

    getPresentation
  • Constructor Details

    • AnahataNode

      private AnahataNode(com.intellij.openapi.project.Project project, com.intellij.openapi.vfs.VirtualFile file)
      Creates the node for the given instructions file.
      Parameters:
      project - the owning project.
      file - the anahata.md file.
  • Method Details

    • getChildren

      public Collection<? extends com.intellij.ide.util.treeView.AbstractTreeNode<?>> getChildren()
      Specified by:
      getChildren in class com.intellij.ide.util.treeView.AbstractTreeNode<com.intellij.openapi.vfs.VirtualFile>
    • update

      protected void update(com.intellij.ide.projectView.PresentationData presentation)

      Presents the file under a branded label with the Anahata marker icon.

      Specified by:
      update in class com.intellij.ide.util.treeView.PresentableNodeDescriptor<com.intellij.ide.util.treeView.AbstractTreeNode<com.intellij.openapi.vfs.VirtualFile>>
    • canNavigate

      public boolean canNavigate()
    • canNavigateToSource

      public boolean canNavigateToSource()