31.2. Multiple tool bars

Specifying a name attribute for the toolBar element lets you create an XXE GUI having several tool bars 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:

    <toolBar name="toolBar2">
      ...
    </toolBar>
  2. In XXE_user_preferences_dir/addon/docbook.xxe, add something like this:

    <toolBar name="toolBar2">
      ...
    </toolBar>

    Notice that the same name toolBar2 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:

    <toolBarItems name="configSpecificToolBarItems2">
      <class>com.xmlmind.xmleditapp.desktop.part.ConfigSpecificToolBarItems</class>
      <property name="specificationName" type="String" value="toolBar2" />
    </toolBarItems>
    
    <toolBar name="configSpecificToolBar2">
      <toolBarItems name="configSpecificToolBarItems2" />
    </toolBar>
    
    <layout>
      <topToolBars>
        <insert />
        <toolBar name="configSpecificToolBar2" />
      </topToolBars>
    </layout>