+ <!-- Browser view specific menu -->
+ <menuContribution
+ locationURI="menu:org.argeo.cms.ui.workbench.jcrBrowserView">
+ <!-- See bug 149 -->
+ <!-- <command
+ commandId="org.argeo.cms.ui.workbench.openGenericJcrQueryEditor"
+ icon="icons/query.png"
+ style="push">
+ </command> -->
+ <command
+ commandId="org.argeo.cms.ui.workbench.addRemoteRepository"
+ icon="icons/addRepo.gif"
+ style="push">
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.sortChildNodes"
+ icon="icons/sort.gif"
+ style="toggle"
+ label="Sort child nodes"
+ tooltip="NOTE: displaying unsorted nodes will enhance overall performances">
+ </command>
+ </menuContribution>
+ <!-- Browser view popup context menu -->
+ <menuContribution
+ locationURI="popup:org.argeo.cms.ui.workbench.jcrBrowserView">
+ <command
+ commandId="org.argeo.cms.ui.workbench.refresh"
+ icon="icons/refresh.png"
+ style="push">
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.addFolderNode"
+ icon="icons/addFolder.gif"
+ label="Add Folder..."
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
+ </instanceof>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.WorkspaceElem">
+ </instanceof>
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.addPrivileges"
+ icon="icons/addPrivileges.gif"
+ label="Add Privileges..."
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
+ </instanceof>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.WorkspaceElem">
+ </instanceof>
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.removePrivileges"
+ icon="icons/removePrivileges.gif"
+ label="Remove Privileges..."
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
+ </instanceof>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.WorkspaceElem">
+ </instanceof>
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.createWorkspace"
+ icon="icons/addWorkspace.png"
+ label="Create Workspace..."
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.RepositoryElem">
+ </instanceof>
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.deleteNodes"
+ icon="icons/remove.gif"
+ label="Delete Nodes"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.WorkspaceElem" />
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.importFileSystem"
+ icon="icons/import_fs.png"
+ style="push"
+ tooltip="Import files from the files sytem">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.WorkspaceElem" />
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.addRemoteRepository"
+ icon="icons/addRepo.gif"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.RepositoriesElem" />
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.RepositoryElem" />
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.removeRemoteRepository"
+ icon="icons/remove.gif"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.RemoteRepositoryElem" />
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.getNodeSize"
+ icon="icons/getSize.gif"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <or>
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
+ <instanceof
+ value="org.argeo.cms.ui.workbench.internal.jcr.model.WorkspaceElem" />
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.dumpNode"
+ icon="icons/dumpNode.gif"
+ label="Dump Node"
+ style="push">
+ <visibleWhen>
+ <iterate> <and>
+ <instanceof value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and> </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.renameNode"
+ icon="icons/rename.gif"
+ label="Rename..."
+ style="push">
+ <visibleWhen>
+ <iterate> <and>
+ <instanceof value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and> </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.cms.ui.workbench.nodeConfigurableDump"
+ icon="icons/dumpNode.gif"
+ label="Configurable dump..."
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <instanceof value="org.argeo.cms.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+