id="org.argeo.jcr.ui.explorer.openGenericJcrQueryEditor"
name="New generic JCR query">
</command>
- <command
- defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
- id="org.argeo.jcr.ui.explorer.addFileFolder"
- name="Add file folder...">
- </command>
- <command
- defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
- id="org.argeo.jcr.ui.explorer.refresh"
- name="Refresh">
- </command>
- <command
- defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
- id="org.argeo.jcr.ui.explorer.deleteNode"
- name="Delete node">
- </command>
- <command
- defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
- id="org.argeo.jcr.ui.explorer.importFileSystem"
- name="Import files...">
- </command>
- <!-- TEST -->
- <command
- defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
- id="org.argeo.jcr.ui.explorer.openFile"
- name="Open current file">
- </command>
- <!-- TEST END -->
-
+ <command
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ id="org.argeo.jcr.ui.explorer.addFileFolder"
+ name="Add file folder...">
+ </command>
+ <command
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ id="org.argeo.jcr.ui.explorer.refresh"
+ name="Refresh">
+ </command>
+ <command
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ id="org.argeo.jcr.ui.explorer.deleteNode"
+ name="Delete node">
+ </command>
+ <command
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ id="org.argeo.jcr.ui.explorer.importFileSystem"
+ name="Import files...">
+ </command>
+ <command
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ id="org.argeo.jcr.ui.explorer.openFile"
+ name="Open current file">
+ </command>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution
icon="icons/query.png"
style="push">
</command>
- <command
- commandId="org.argeo.jcr.ui.explorer.initUserHome"
- style="push"
- tooltip="Initializes the user specific area within this node">
- </command>
</menuContribution>
<menuContribution
locationURI="popup:org.argeo.jcr.ui.explorer.browserView">
</command>
</menuContribution>
</extension>
+ <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"
+ isEqualityPattern="true"
+ pattern="org.argeo.jcr.ui.explorer/org.argeo.jcr.ui.explorer.perspective">
+ </activityPatternBinding>
+ </extension>
</plugin>