My file, save function now looks like this:
<cfg:command name="mydoc.save">
<cfg:macro>
<cfg:sequence>
<cfg:pass><cfg:command name="XXE.save" /></cfg:pass>
<!-- do something before saving -->
<cfg:command name="XXE.save"/>
</cfg:sequence>
</cfg:macro>
</cfg:command>
If I add it to the "XXE" menu then it behaves as I would expect: it is
disabled if the document is unmodified, but enabled as soon as a change has
been made.
If I add it to the File menu as follows:
<action name="mydocSaveAction" label="_Save"
icon="xxe-gui:app/icons/saveAction.gif" accelerator="mod S">
<context editingContextSensitive="false">
<configuration name="mydoc">
<command name="mydoc.save"/>
</configuration>
<default>
<class>com.xmlmind.xmleditapp.kit.part.SaveAction</class>
</default>
</context>
</action>
Then it is never enabled.
If I remove the <cfg:pass><cfg:command name="XXE.save" /></cfg:pass>
element, then it is always enabled.
What is wrong?
Kevin Flynn
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051205/4e20ac63/attachment.htm