===== Navigators =====
Navigators parts are layout in the rigth panel of the application.
\\ \\ You may have several navigators and, in one navigator, nodes may come from different plugins.
=== Step 1: Add a 'Group list Navigator' scenario ===
* Open **Scenario.xml** file with Scenario Editor.
* Select Generation page.
* Right-click on GenerationScenario line and select add 'Navigator' generation unit item.
{{ tutorial:navigator_add_to_scenario.png?400 | Add 'Navigator' item to scenario file}}
\\ \\
In the outline page:
* Enter org.adichatz.scenario.impl.GroupListNavigatorScenario to scenarioName field.
* Enter adi://myproject/groupListNavigator/GroupListNavigatorContent to adiResourceURI field.
{{ tutorial:navigator_define_group_list.png?600 | Add 'Navigator' item to scenario file}}
\\ \\
In the Scenartio Editor:
* {{tutorial:img_save.png?24 | Generate scenario}} Select Save at top of editor.
* Check Generation unit: GroupListNavigatorContent - NAVIGATOR row.
* {{tutorial:img_generate_scenario.png?24| Generate scenario}} Select Generate scenario at top right of the editor.
{{ tutorial:navigator_generate_group_list.png?600 | Add 'Navigator' item to scenario file}}
\\ \\
=== Step 2: Check navigator is added in 'AdichatzRcpConfig.xml' file ===
**Remark**:\\
Lines 12, 13, 14 and 15 are added. It defines a new Navigator built from a GroupListNavigatorScenario scenario.
\\ \\
=== Step 3: Execute application ===
No change is visible if you launch directly application. In fact, parts layout is read from '**${WORKSPACE]/runtime-myproject.product/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi**' file.\\
To get around this problem:
* Select Run / Run Configuration... in IDE menu.
* Check Clear.
* Run Application.
{{tutorial:run_configuration_clear.png?400 | Clear workspace before launching application}}
\\ \\
{{tutorial:group_navigators.png?350 |Navigators}}
In this case, you have 2 navigators: 'Group List Navigator' and 'Navigator'.
\\ \\
Menus can also be added programmatically to navigators as shown in methods org.adichatz.tool.ToolActivator.start(BundleContext) or org.adichatz.testing.TestingActivator.start(BundleContext).