public abstract class TemplateLanguageStructureViewBuilder extends TreeBasedStructureViewBuilder
EP_NAME, PROVIDER
Modifier | Constructor and Description |
---|---|
protected |
TemplateLanguageStructureViewBuilder(PsiElement psiElement) |
Modifier and Type | Method and Description |
---|---|
static TemplateLanguageStructureViewBuilder |
create(PsiFile psiFile,
PairFunction<? super PsiFile,? super Editor,? extends StructureViewModel> modelFactory) |
protected abstract TreeBasedStructureViewBuilder |
createMainBuilder(PsiFile psi) |
StructureView |
createStructureView(FileEditor fileEditor,
Project project)
Returns the structure view implementation for the specified file
|
StructureViewModel |
createStructureViewModel(Editor editor)
Returns the structure view model defining the data displayed in the structure view
for a specific file.
|
protected boolean |
isAcceptableBaseLanguageFile(PsiFile dataFile) |
boolean |
isRootNodeShown()
Override returning
false if root node created by TreeBasedStructureViewBuilder.createStructureViewModel(Editor editor) shall not be visible |
protected TemplateLanguageStructureViewBuilder(PsiElement psiElement)
public static TemplateLanguageStructureViewBuilder create(PsiFile psiFile, PairFunction<? super PsiFile,? super Editor,? extends StructureViewModel> modelFactory)
public boolean isRootNodeShown()
TreeBasedStructureViewBuilder
false
if root node created by TreeBasedStructureViewBuilder.createStructureViewModel(Editor editor)
shall not be visibleisRootNodeShown
in class TreeBasedStructureViewBuilder
false
if root node shall not be visible in structure tree.public StructureView createStructureView(FileEditor fileEditor, Project project)
StructureViewBuilder
createStructureView
in interface StructureViewBuilder
createStructureView
in class TreeBasedStructureViewBuilder
fileEditor
- the editor for which the structure view is requested. Can be null if file is not open (e.g. structure is requested
from the project view)project
- the project containing the file for which the structure view is requested.TreeBasedStructureViewBuilder
public StructureViewModel createStructureViewModel(Editor editor)
TreeBasedStructureViewBuilder
createStructureViewModel
in class TreeBasedStructureViewBuilder
TextEditorBasedStructureViewModel
protected boolean isAcceptableBaseLanguageFile(PsiFile dataFile)
protected abstract TreeBasedStructureViewBuilder createMainBuilder(PsiFile psi)