fix a few bugs
[lgpl/argeo-commons.git] / server / plugins / org.argeo.jcr.ui.explorer / plugin.xml
index 7d220a04fe0cac3f5508bd2fe6795815e4b459e7..74c69707e5f8626e763f4f62472a7a79a029dd34 100644 (file)
                id="org.argeo.jcr.ui.explorer.openFile"
                name="Open current file">
          </command>
+         <command
+            defaultHandler="org.argeo.jcr.ui.explorer.commands.SortChildNodes"
+            id="org.argeo.jcr.ui.explorer.sortChildNodes"
+            name="Sort node tree">
+            <state 
+                               id="org.argeo.jcr.ui.explorer.sortChildNodes.toggleState">
+                               <class class="org.eclipse.jface.commands.ToggleState"> 
+                                       <parameter
+                                               name="default"
+                                       value="true" />
+                               </class>
+                       </state>
+     </command>
     </extension>
 
     <!-- Menus --> 
        <extension point="org.eclipse.ui.menus">
+               <!-- Browser view specific menu --> 
                <menuContribution
                        locationURI="menu:org.argeo.jcr.ui.explorer.browserView">
             <command
                commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
                 icon="icons/addRepo.gif"
                 style="push">
+            </command>
+             <command
+               commandId="org.argeo.jcr.ui.explorer.sortChildNodes"
+                icon="icons/sort.gif"
+                style="toggle" 
+                label="Sort child nodes"
+                tooltip="Warning: stopping to sort children nodes might enhance overall performances">
             </command>
                </menuContribution>
+               <!-- Browser view popup context menu --> 
                <menuContribution
                        locationURI="popup:org.argeo.jcr.ui.explorer.browserView">
                        <command