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:
In
, add something like this:XXE_user_preferences_dir
/addon/xhtml.xxe
<toolBar name="toolBar2"> ... </toolBar>
In
, add something like this:XXE_user_preferences_dir
/addon/docbook.xxe
<toolBar name="toolBar2"> ... </toolBar>
Notice that the same name toolBar2
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
<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>