Add a maintenance command to enable configurable node dumps
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / plugin.xml
index 5e140f4180fcdfef61e68b4a052c022f66738860..210046381fcd4f45043dd08fed5431108b707f9d 100644 (file)
                id="org.argeo.eclipse.ui.workbench.dumpNode"
                name="Dump Current Selected Node">
                </command>
+               <command
+               defaultHandler="org.argeo.eclipse.ui.workbench.commands.NodeConfigurableDump"
+               id="org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
+               name="Configurable dump of the selected Node">
+               </command>
                <command
                        defaultHandler="org.argeo.eclipse.ui.workbench.commands.SortChildNodes"
                        id="org.argeo.eclipse.ui.workbench.sortChildNodes"
                                        </and> </iterate>
                                </visibleWhen>
                        </command>
+                       <command
+                       commandId="org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
+                       icon="icons/dumpNode.gif"
+                               label="Configurable dump..."
+                               style="push">
+                               <visibleWhen>
+                                       <iterate> 
+                                               <and>
+                                                       <instanceof value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
+                                       <with variable="activeMenuSelection"><count value="1"/></with>
+                                               </and> 
+                                       </iterate>
+                               </visibleWhen>
+                       </command>
                </menuContribution>
        </extension>