Stefan Lenselink wrote: > Hi I'm bussy expanding the menu and the toolbar. > > The documentation said about the menu: > /"Specifies the label and content of the XML menu bar menu."/ > So if I'm correct the only menu you can change is the menu which is > disabled at start-up. Is there a possibility to add a extra menu? > > I need to add an action only to DocBook documents so I checked the > docbook.xxe file etc.. To find out how things work. After creation of my > own command, which I tested by editing the docbook.xxe by hand. Loading > my jar file added the command tag etc. and I changed one of the menu > actions of the docbook.xxe file. And my command worked!! > > So I wanted to create a separate file which adds one menu(item) and a > toolbar button to activate my command. But I never saw my menu nor > toolbarbutton. I copied the detect tag from the docbook.xxe because only > then my menu items needs to be available. > > In the attachment there is the plugintest.xxe file which I'm developing, > could someone please look at it what am I doing wrong? I don't get it.. > I tried for so long right now with <insert /> without nothing would help!! > > This is the tree as it occurs in MyProfileDir/xxe2/: > > |preferences.properties > | > |---config > | | > | |----img > | | |---img.gif > | | > | |--plugintest > | |---plugintest.jar > | |---plugintest.xxe > | > |---plugin > |---ser > | |---directory.txt > | |---schema0.ent > | |---schema0.ser > | |---schema1.ent > | |---schema1.ser > | |---schema2.ser > | > |---spell > > Is the jar file placed in the right directory?
Yes, you can organize your files in the config subdirectory like you want. The problem comes from the content of your 'plugintest.xxe'. Here's a configuration file which properly customizes the bundled DocBook configuration file. --- <?xml version='1.0' encoding='ISO-8859-1'?> <configuration name="DocBook" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration"> <include location="docbook/docbook.xxe" system="true" /> <load location="plugintest.jar" /> <command name="plugin"> <class>CommandTemplate</class> </command> <menu label="DocBook" mnemonic="D"> <insert /> <separator /> <menu label="test0" mnemonic="t"> <item label="Hitme" mnemonic="H" command="plugin"/> </menu> </menu> <toolBar> <insert /> <separator /> <button toolTip="test1" icon="../img/img.gif"> <menu> <item label="item1" command="plugin" /> <item label="item2" command="plugin" /> </menu> </button> <button toolTip="test2" icon="../img/img.gif"> <command name="plugin" /> </button> <separator /> <button toolTip="test3" icon="../img/img.gif"> <command name="plugin" /> </button> </toolBar> </configuration> --- Notice: [1] This custom config. is named 'DocBook' just like the bundled config. [2] This custom config. includes the bundled config. (I have recreated a plugintest.jar. The fully qualified class name of my test command is 'CommandTemplate', yours is 'plugintest.plugintest'. Don't worry about this.) Attached to this email, all the files needed to test the above configuration. -------------- next part -------------- A non-text attachment was scrubbed... Name: unzip_in_config_dir.zip Type: application/octet-stream Size: 3763 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20030916/b6d536fe/attachment.dll

