]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/plugins/org.argeo.jcr.ui.explorer/plugin.xml
Improve secure logging
[lgpl/argeo-commons.git] / server / plugins / org.argeo.jcr.ui.explorer / plugin.xml
index 7d220a04fe0cac3f5508bd2fe6795815e4b459e7..09dffb8a9379647aed275545f8cb384f46b696c4 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
        
   <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>