Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1011 Bytes

structure_view_factory.md

File metadata and controls

38 lines (25 loc) · 1011 Bytes
title
14. Structure View Factory

A structure view factory allows to show the structure of any file in a Structure tool window for easy navigation between items.

14.1. Define a structure view factory

{% include /code_samples/simple_language_plugin/src/com/simpleplugin/SimpleStructureViewFactory.java %}

14.2. Define a structure view model

{% include /code_samples/simple_language_plugin/src/com/simpleplugin/SimpleStructureViewModel.java %}

14.3. Define a structure view element

{% include /code_samples/simple_language_plugin/src/com/simpleplugin/SimpleStructureViewElement.java %}

14.4. Register the structure view factory

<lang.psiStructureViewFactory language="Simple" implementationClass="com.simpleplugin.SimpleStructureViewFactory"/>

14.5. Run the project

Structure View

Previous Top Next