Structure tool window, File structure popup
Both views help quickly navigate through the file structure.
For MPS specifically these two views allow the user to navigate quickly to all the aspects belonging to the same concept - the structure, editor, dataflow, generator and other aspects are always grouped next to one another when any of the concept's aspect definition is open in the editor. Right-click the representation of the desired aspect in the structure tool window and select Jump to Source or press F4 to open the aspect definition in the editor.
The File Structure popup also allows the user to see and to navigate to individual members of BaseLanguage classes and interfaces.
Custom structure views can be provided by user projects. These instances of StructureView must be registered at an extension point named NodeStructureViewProvider.EP_NODE_STRUCTURE_VIEW_PROVIDER to take effect.
This section describes the buttons on the header of the tool window and the context menu options of the header. Turn these options on and off to have elements of certain types hidden or shown and configure the way they are presented.
The Options context menu is common for all language contexts.
Option | Description |
---|---|
Expand All | Choose this option to expand all the nodes in the tool window. |
Collapse All | Choose this option to collapse all the nodes in the tool window. |
Navigate with Single Click | Choose this option to enable automatic navigation to the line of source code that corresponds to the selected node when the focus switches to the editor. |
Always Select Opened Element | Choose this option to have MPS automatically move the focus in the Structure tool window to the node that corresponds to the code where the caret is currently positioned in the editor. |
Speed Search Ctrl0F | Use the Speed Search bar to quickly find an item in the tool window. |
View Mode | This option lets you control the general appearance and behavior of the tool window. For more information, refer to Tool window view modes. |
Move to | For full information, refer to Move tool windows. |
Resize | To resize the tool window by moving one of its borders, select this command, and then select the necessary Stretch to option. For more information, refer to Resize tool windows. |
Remove from Sidebar | This option hides the tool window, removes the associated tool window button from the tool window bar, and removes the tool window from the quick access menu. |
Icon | Tooltip | Description |
---|---|---|
Sort Alphabetically | Click this button to have the elements within a class sorted alphabetically. | |
HTML5 Outline | Click this button on to view HTML 5 outline of an HTML file: ![]() | |
Collapse All CtrlNumPad - | Click this button to have all the nodes in the tool window collapsed. | |
Expand All CtrlNumPad + | Click this button to have all the nodes in the tool window expanded. | |
Navigate with Single Click | Click this button to enable automatic navigation to the line of source code that corresponds to the selected node when the focus switches to the editor. | |
Always Select Opened Element | Click this button to have MPS automatically move the focus in the Structure tool window to the node that corresponds to the code where the caret is currently positioned in the editor. |
Thanks for your feedback!