Class BnfStructureViewFactory.MyModel

java.lang.Object
com.intellij.ide.structureView.TextEditorBasedStructureViewModel
com.intellij.ide.structureView.StructureViewModelBase
org.intellij.grammar.BnfStructureViewFactory.MyModel
All Implemented Interfaces:
com.intellij.ide.structureView.StructureViewModel, com.intellij.ide.structureView.StructureViewModel.ElementInfoProvider, com.intellij.ide.util.treeView.smartTree.ProvidingTreeModel, com.intellij.ide.util.treeView.smartTree.TreeModel, com.intellij.openapi.Disposable
Enclosing class:
BnfStructureViewFactory

public static class BnfStructureViewFactory.MyModel extends com.intellij.ide.structureView.StructureViewModelBase implements com.intellij.ide.structureView.StructureViewModel.ElementInfoProvider
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.intellij.openapi.Disposable

    com.intellij.openapi.Disposable.Parent

    Nested classes/interfaces inherited from interface com.intellij.ide.structureView.StructureViewModel

    com.intellij.ide.structureView.StructureViewModel.ElementInfoProvider, com.intellij.ide.structureView.StructureViewModel.ExpandInfoProvider
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MyModel(@NotNull com.intellij.psi.PsiFile psiFile)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isAlwaysLeaf(com.intellij.ide.structureView.StructureViewTreeElement element)
     
    boolean
    isAlwaysShowsPlus(com.intellij.ide.structureView.StructureViewTreeElement element)
     
    protected boolean
    isSuitable(com.intellij.psi.PsiElement element)
     
    boolean
     

    Methods inherited from class com.intellij.ide.structureView.StructureViewModelBase

    getRoot, getSorters, getSuitableClasses, withSorters, withSuitableClasses

    Methods inherited from class com.intellij.ide.structureView.TextEditorBasedStructureViewModel

    addEditorPositionListener, addModelListener, dispose, findAcceptableElement, fireModelUpdate, getCurrentEditorElement, getEditor, getFilters, getGroupers, getNodeProviders, getPsiFile, isEnabled, removeEditorPositionListener, removeModelListener

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.intellij.ide.structureView.StructureViewModel

    addEditorPositionListener, addModelListener, dispose, getCurrentEditorElement, getRoot, removeEditorPositionListener, removeModelListener

    Methods inherited from interface com.intellij.ide.util.treeView.smartTree.TreeModel

    getFilters, getGroupers, getSorters
  • Constructor Details

    • MyModel

      protected MyModel(@NotNull @NotNull com.intellij.psi.PsiFile psiFile)
  • Method Details

    • isAlwaysShowsPlus

      public boolean isAlwaysShowsPlus(com.intellij.ide.structureView.StructureViewTreeElement element)
      Specified by:
      isAlwaysShowsPlus in interface com.intellij.ide.structureView.StructureViewModel.ElementInfoProvider
    • isAlwaysLeaf

      public boolean isAlwaysLeaf(com.intellij.ide.structureView.StructureViewTreeElement element)
      Specified by:
      isAlwaysLeaf in interface com.intellij.ide.structureView.StructureViewModel.ElementInfoProvider
    • shouldEnterElement

      public boolean shouldEnterElement(Object element)
      Specified by:
      shouldEnterElement in interface com.intellij.ide.structureView.StructureViewModel
      Overrides:
      shouldEnterElement in class com.intellij.ide.structureView.TextEditorBasedStructureViewModel
    • isSuitable

      protected boolean isSuitable(com.intellij.psi.PsiElement element)
      Overrides:
      isSuitable in class com.intellij.ide.structureView.TextEditorBasedStructureViewModel