mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
structure_view.md: cleanup
This commit is contained in:
parent
863654eac2
commit
69863bc414
@ -39,7 +39,7 @@ In the implementation of `StructureViewTreeElement.getChildren()`, the plugin ca
|
|||||||
Another important method is `getPresentation()`, which can be used to customize the text, attributes, and icon used to represent an element in the structure view.
|
Another important method is `getPresentation()`, which can be used to customize the text, attributes, and icon used to represent an element in the structure view.
|
||||||
|
|
||||||
The implementation of `StructureViewTreeElement.getChildren()` needs to be matched by `TextEditorBasedStructureViewModel.getSuitableClasses()`.
|
The implementation of `StructureViewTreeElement.getChildren()` needs to be matched by `TextEditorBasedStructureViewModel.getSuitableClasses()`.
|
||||||
The latter method returns an array of `PsiElement`\-derived classes, which can be shown as structure view elements.
|
The latter method returns an array of `PsiElement`-derived classes, which can be shown as structure view elements.
|
||||||
It is used to select the Structure View item matching the cursor position when the structure view is first opened or when the <control>Autoscroll from source</control> option is enabled.
|
It is used to select the Structure View item matching the cursor position when the structure view is first opened or when the <control>Autoscroll from source</control> option is enabled.
|
||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user