tree_structure_view.md: cleanup

This commit is contained in:
Yann Cébron 2016-11-18 17:44:02 +09:00
parent d3dde13b3f
commit d9a6a42f0e

View File

@ -14,10 +14,9 @@ Series of step below show how to filter out and keep visible only text files and
Create an empty plugin project. Create an empty plugin project.
See See
[Creating a Plugin Project](/basics/getting_started/creating_plugin_project.md) [Creating a Plugin Project](/basics/getting_started/creating_plugin_project.md).
to know how to do it.
## 1. Register Custom TreeStructureView Provider ## 1. Register Custom TreeStructure Provider
Add new *treeStructureProvider* extension to the Add new *treeStructureProvider* extension to the
[plugin.xml](https://github.com/JetBrains/intellij-sdk-docs/blob/master/code_samples/tree_structure_provider/resources/META-INF/plugin.xml) [plugin.xml](https://github.com/JetBrains/intellij-sdk-docs/blob/master/code_samples/tree_structure_provider/resources/META-INF/plugin.xml)
@ -50,8 +49,8 @@ public class TextOnlyTreeStructureProvider implements TreeStructureProvider {
## 3. Override modify() method ## 3. Override modify() method
To implement Tree Structure nodes filtering logic, override modify() method. To implement Tree Structure nodes filtering logic, override `modify()` method.
The example below shows how to filter out all the Project View nodes except those which correspond text files and directories. The example below shows how to filter out all the Project View nodes except those which correspond to text files and directories.
```java ```java
{% include /code_samples/tree_structure_provider/src/org/jetbrains/tutorials/tree/structure/TextOnlyTreeStructureProvider.java %} {% include /code_samples/tree_structure_provider/src/org/jetbrains/tutorials/tree/structure/TextOnlyTreeStructureProvider.java %}
@ -61,8 +60,7 @@ The example below shows how to filter out all the Project View nodes except thos
Compile and run the code sample from this tutorial. Compile and run the code sample from this tutorial.
Refer to Refer to
[Running and Debugging a Plugin](/basics/getting_started/running_and_debugging_a_plugin.md) [Running and Debugging a Plugin](/basics/getting_started/running_and_debugging_a_plugin.md).
section to know how this could be done.
After going through the steps described above you can see only text files and directories belonging to a project in the Project View. After going through the steps described above you can see only text files and directories belonging to a project in the Project View.