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
<extension
point="org.eclipse.ui.activities">
- <activity
- description="Only for admins"
- id="org.argeo.jcr.ui.explorer.adminActivity"
- name="Admin">
- <enabledWhen>
- <with variable="roles">
- <iterate ifEmpty="false" operator="or">
- <equals value="ROLE_ADMIN" />
- </iterate>
- </with>
- </enabledWhen>
- </activity>
- <!-- TODO: find a way to exclude evrything -->
<activityPatternBinding
- activityId="org.argeo.jcr.ui.explorer.adminActivity"
+ activityId="org.argeo.security.ui.adminActivity"
isEqualityPattern="true"
pattern="org.argeo.jcr.ui.explorer/org.argeo.jcr.ui.explorer.perspective">
</activityPatternBinding>