Add the ability to remove a JCR privilege from a given node
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / plugin.xml
index b450f555535244a5af7924c7e6a93dd995ee8ea1..215f1203d559cc2a11e685cb7b87085fbde1846c 100644 (file)
                        id="org.argeo.eclipse.ui.workbench.addPrivileges"
                        name="Add Privileges">
                </command>
+               <command
+                       defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+                       id="org.argeo.eclipse.ui.workbench.removePrivileges"
+                       name="Remove Privileges">
+               </command>
                <command
                        defaultHandler="org.argeo.eclipse.ui.workbench.commands.CreateWorkspace"
                        id="org.argeo.eclipse.ui.workbench.createWorkspace"
                        <command
                         commandId="org.argeo.eclipse.ui.workbench.addFolderNode"
                         icon="icons/addFolder.gif"
-                        label="Add Folder"
+                        label="Add Folder..."
                         style="push">
                                <visibleWhen>
                                        <iterate>
                        </command>
                        <command
                         commandId="org.argeo.eclipse.ui.workbench.addPrivileges"
-                        icon="icons/addPrivileges.png"
-                        label="Add Privileges"
+                        icon="icons/addPrivileges.gif"
+                        label="Add Privileges..."
+                        style="push">
+                               <visibleWhen>
+                                       <iterate>
+                                     <and>
+                                        <or>
+                                           <instanceof
+                                                 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
+                                           </instanceof>
+                                           <instanceof
+                                                 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem">
+                                           </instanceof>
+                                        </or>
+                               <with variable="activeMenuSelection"><count value="1"/></with>
+                                     </and>
+                                       </iterate>
+                               </visibleWhen>
+                       </command>
+                       <command
+                        commandId="org.argeo.eclipse.ui.workbench.removePrivileges"
+                        icon="icons/removePrivileges.gif"
+                        label="Remove Privileges..."
                         style="push">
                                <visibleWhen>
                                        <iterate>
                        <command
                         commandId="org.argeo.eclipse.ui.workbench.createWorkspace"
                         icon="icons/addWorkspace.png"
-                        label="Create Workspace"
+                        label="Create Workspace..."
                         style="push">
                                <visibleWhen>
                                        <iterate>