Add a rename node command
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / plugin.xml
index 210046381fcd4f45043dd08fed5431108b707f9d..5e281b29a3ed22b75e3a285594fa73e1a4a2bcfc 100644 (file)
                name="Dump Current Selected Node">
                </command>
                <command
+               defaultHandler="org.argeo.eclipse.ui.workbench.commands.RenameNode"
+               id="org.argeo.eclipse.ui.workbench.renameNode"
+               name="Rename 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">
                                </visibleWhen>
                        </command>
                        <command
+                       commandId="org.argeo.eclipse.ui.workbench.renameNode"
+                       icon="icons/rename.gif"
+                               label="Rename..."
+                               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>
+                       <command
                        commandId="org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
                        icon="icons/dumpNode.gif"
                                label="Configurable dump..."