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:
In
, add something like this:XXE_user_preferences_dir
/addon/xhtml.xxe
<menu name="menu2" label="My XHTML Menu"> ... </menu>
In
, add something like this:XXE_user_preferences_dir
/addon/docbook.xxe
<menu name="menu2" label="My DocBook Menu"> ... </menu>
Notice that the same name menu2
is used in all XML application specific configuration files.
In
(see XMLmind XML Editor - Customizing the User Interface), add something like this:XXE_user_preferences_dir
/addon/customize.xxe_gui
<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>
Web Help generated using XMLmind XML Editor.