- locationURI="menu:org.argeo.jcr.ui.explorer.browserView">
- <command
- commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
- icon="icons/addRepo.gif"
- style="push">
- </command>
- </menuContribution>
- <menuContribution
- locationURI="popup:org.argeo.jcr.ui.explorer.browserView">
- <command
- commandId="org.argeo.jcr.ui.explorer.refresh"
- icon="icons/refresh.png"
- style="push">
- </command>
- <command
- commandId="org.argeo.jcr.ui.explorer.addFolderNode"
- icon="icons/addFolder.gif"
- style="push">
- </command>
- <command
- commandId="org.argeo.jcr.ui.explorer.deleteNodes"
- icon="icons/remove.gif"
- style="push">
- </command>
- <command
- commandId="org.argeo.jcr.ui.explorer.importFileSystem"
- icon="icons/import_fs.png"
- style="push"
- tooltip="Import files from the files sytem to the repository">
- </command>
- <command
- commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
- icon="icons/addRepo.gif"
- style="push">
- </command>
- <command
- commandId="org.argeo.jcr.ui.explorer.getNodeSize"
- icon="icons/getSize.gif"
- style="push">
- </command>
- </menuContribution>
+ locationURI="popup:org.argeo.jcr.ui.explorer.browserView">
+ <command
+ commandId="org.argeo.jcr.ui.explorer.refresh"
+ icon="icons/refresh.png"
+ style="push">
+ </command>
+ <command
+ commandId="org.argeo.jcr.ui.explorer.addFolderNode"
+ icon="icons/addFolder.gif"
+ label="Add Folder"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem">
+ </instanceof>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.WorkspaceElem">
+ </instanceof>
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.jcr.ui.explorer.addPrivileges"
+ icon="icons/addPrivileges.png"
+ label="Add Privileges"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem">
+ </instanceof>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.WorkspaceElem">
+ </instanceof>
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.jcr.ui.explorer.createWorkspace"
+ icon="icons/addWorkspace.png"
+ label="Create Workspace"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.RepositoryElem">
+ </instanceof>
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.jcr.ui.explorer.deleteNodes"
+ icon="icons/remove.gif"
+ label="Delete Nodes"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <or>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem" />
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.WorkspaceElem" />
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.jcr.ui.explorer.importFileSystem"
+ icon="icons/import_fs.png"
+ style="push"
+ tooltip="Import files from the files sytem">
+ <visibleWhen>
+ <iterate>
+ <and>
+ <or>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem" />
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.WorkspaceElem" />
+ </or>
+ <with variable="activeMenuSelection"><count value="1"/></with>
+ </and>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
+ icon="icons/addRepo.gif"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <or>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.RepositoriesElem" />
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.RepositoryElem" />
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.jcr.ui.explorer.removeRemoteRepository"
+ icon="icons/remove.gif"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <or>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.RemoteRepositoryElem" />
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.argeo.jcr.ui.explorer.getNodeSize"
+ icon="icons/getSize.gif"
+ style="push">
+ <visibleWhen>
+ <iterate>
+ <or>
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem" />
+ <instanceof
+ value="org.argeo.jcr.ui.explorer.model.WorkspaceElem" />
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ </menuContribution>