14.1. Multiple menus
Prev | 14. menu | Next

### 14.1. Multiple menus

Specifying a `name` attribute for the `menu` element allows to create a GUI having several XML application specific menus.

Example:

1. In ``XXE_user_preferences_dir`/addon/xhtml.xxe`, add something like this:

       <menu name="menu2" label="My XHTML Menu">
         ...
       </menu>

2. In ``XXE_user_preferences_dir`/addon/docbook.xxe`, add something like this:

       <menu name="menu2" label="My DocBook Menu">
         ...
       </menu>

   Notice that the same name `menu2` is used in all XML application specific configuration files.

3. In ``XXE_user_preferences_dir`/addon/customize.xxe_gui` (see XMLmind XML Editor - Customizing the User Interface), add something like this:

       <menuItems name="configSpecificMenuItems2">
         <class>com.xmlmind.xmleditapp.kit.part.ConfigSpecificMenuItems</class>
         <property name="specificationName" type="String" value="menu2" />
       </menuItems>

       <menu name="configSpecificMenu2" label="_My Menu">
         <menuItems name="configSpecificMenuItems2" />
       </menu>

       <menu name="fileMenu">
         <menu name="configSpecificMenu2" />
         <insert />
       </menu>

Prev | Up | Next
14. menu | Home | 15. newElementContent