Claus Rasmussen wrote: > On Mon, 2006-01-30 at 17:49 +0100, Hussein Shafie wrote: >> * Command "Edit|Document Reference|Edit >> Referencing Document" now has the side-effect >> of automatically updating the (read-only, >> displayed with a light gray background) views >> of the element references found in the >> referencing document. > > What I need is the other way around: I'd like to be able to rebuild a > document that references a lot of other modular pieces to reflect any > changes in the sub components. > > I've tried using the 'refresh' command but putting something like this > in my menu was no success: > > <item label="Rebuild Document" command="refresh" > parameter="rebuild[implicitDocument]"> > <accelerator code="F11" /> > </item> > > ...the master document doesn't 're-include' the xincludes in the > document. > > Is there a clever way of solving this or should it be on the feature > request heap?
"Edit|Document Reference|Edit Referencing Document" now automatically ``visually refreshes'' a document that references a lot of other modular pieces to reflect any changes in the sub components. Example: book.xml references chapter1.xml and chapter2.xml. [1] You modify chapter2.xml. [2] Your current document is chapter2.xml and you use "Edit|Document Reference|Edit Referencing Document". [3] This action not only brings book.xml to front, but also updates its view to reflect the changes made to chapter2.xml. Now, you may prefer another way to do that: [1] You modify chapter2.xml. [2] You switch to the view of book.xml by using the tab and *not* by using "Edit|Document Reference|Edit Referencing Document" (or the corresponding toolbar button). [3] You press F11 to refresh the view of book.xml. Please find attached to this email a custom.xxe_gui file which allows you to do that: --- <?xml version='1.0' encoding='UTF-8'?> <gui xmlns="http://www.xmlmind.com/xmleditor/schema/gui" xmlns:gui="http://www.xmlmind.com/xmleditor/schema/gui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <include location="xxe-gui:app/default.xxe_gui" /> <action name="refreshInclusionsAction" label="_Update Referencing Document" accelerator="F11"> <class>com.xmlmind.xmleditapp.kit.part.RefreshInclusionsAction</class> </action> <menu name="inclusionMenu" label="Docume_nt Reference"> <insert /> <separator /> <action name="refreshInclusionsAction" /> </menu> </gui> --- Copy the above custom.xxe_gui to XXE_user_preferences_dir/addon and restart XXE if you want to give it a try. -------------- next part -------------- A non-text attachment was scrubbed... Name: custom.xxe_gui Type: text/xml Size: 622 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060201/0aa445c2/attachment.xml

