defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
id="org.argeo.jcr.ui.explorer.getNodeSize"
name="Get node size">
- <commandParameter
- id="org.argeo.jcr.ui.explorer.nodePath"
- name="Node path">
- </commandParameter>
</command>
-
<command
defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
id="org.argeo.jcr.ui.explorer.addRemoteRepository"
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
icon="icons/query.png"
style="push">
</command>
- </menuContribution>
- <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