awips2/docs/cave/d2d-edit-menus.md

37 lines
1.8 KiB
Markdown
Raw Normal View History

# Editing Menus
2017-04-21 18:33:55 -06:00
Any of the menus in the menubar can be customized in the **Localization Perspective**.
2017-04-21 18:33:55 -06:00
---
2017-04-21 18:33:55 -06:00
## Modifying Menus
2017-04-21 18:33:55 -06:00
Once in the **Localization Perspective**, menus can be modified by going to the **D2D** > **Menus** directory in the File Browser. Here there are submenus for different data types and menu structures. Usually the **index.xml** file found in these submenus is the *master* file which the actual menu is based off of. This file can reference other xml files and you may have to modify these *child* xml files to get the results you are looking for.
2017-04-21 18:33:55 -06:00
In order to modify any file, you must right click on it and
select **Copy To > USER (my-username)**. Then you may open this copy and begin to modify it. Once this process has been completed and a change has been made and saved, CAVE will need to be restarted and opened in the D2D perspective to see the change.
2017-04-21 18:33:55 -06:00
---
2017-04-21 18:33:55 -06:00
## Removing Menus
2017-04-21 18:33:55 -06:00
This example covers how to remove a menu (in this case **MRMS**) from D2D:
1. Switch to the **Localization Perspective**
2. Find the **mrms** folder under **D2D** > **Menus**
3. Double-click to expand **index.xml**
4. Right-click **BASE** and select **Copy To...**, then select **USER** level
5. Right-click refresh the **mrms** entry
6. Double click **USER** to open the editor and change
2017-04-21 18:33:55 -06:00
<menuContributionFile>
<include installTo="menu:mrms?after=MRMS_MENU_START" fileName="menus/mrms/mrms.xml"/>
2017-04-21 18:33:55 -06:00
</menuContributionFile>
to
<menuContributionFile>
</menuContributionFile>
With this completed, you can now restart CAVE and will not see the MRMS menu anymore. Repeat this example for other product menus, such as **radar**, **upperair**, **tools**, etc., to further customize D2D data menus for any level of localization.