Previous Topic: custom-menu-config.xml FileNext Topic: Add a Menu Item


Add a Menu

The <menu> element is used to create an Operations Console menu.

Follow these steps:

  1. Open the custom-menu-config.xml file.

    Note: The <root> element is the first element for this file. You must define all new menus inside the <root> element.

  2. Add a new menu using the <menu> element. This element has one attribute, name, which defines the menu name.

    Note: Some examples in the custom-menu-config.xml file show a fully qualified menu name that references a Java class. For example, com.aprisma.spectrum.app.swing.window.menu.Tool is the name attribute in the <menu> element for the Tools menu. You do not have to use a fully qualified name; simply use the exact text that you would like for the menu name.

  3. Add items to the new menu using the <item> element and its child elements.

    Note: For more information, see Add a Menu Item. If you do not specify menu items, the menu is not visible in the Operations Console.

  4. Save the changes you have made to custom-menu-config.xml.
  5. Restart the Operations Console to view and test the new menus.

Example: Add a New Menu

This example shows a new Connections menu.

<menu name="Connections"> 
<item name="Ping Local">
	.
	.
	.
</item>
<item name="Launch Diagnostics">
	.
	.
	.
</item>
</menu>