Contents
Index
Search

19.2. Multiple menus

Specifying a name attribute for the menu element lets you create an XXE GUI having several menus which are specific to the type of the document being edited.

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.desktop.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>