]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.eclipse.ui.workbench/plugin.xml
1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <?eclipse version=
"3.4"?>
6 point=
"org.eclipse.ui.perspectives">
9 class=
"org.argeo.eclipse.ui.workbench.osgi.OsgiExplorerPerspective"
10 id=
"org.argeo.eclipse.ui.workbench.osgiPerspective"
11 icon=
"icons/osgi_explorer.gif">
15 class=
"org.argeo.eclipse.ui.workbench.jcr.JcrBrowserPerspective"
16 id=
"org.argeo.eclipse.ui.workbench.jcrBrowserPerspective"
17 icon=
"icons/nodes.gif">
21 <!-- Definition of the OSGI perspective -->
22 <extension point=
"org.eclipse.ui.perspectiveExtensions">
23 <perspectiveExtension targetID=
"org.argeo.eclipse.ui.workbench.osgiPerspective">
25 id=
"org.argeo.eclipse.ui.workbench.modulesView"
29 relative=
"org.eclipse.ui.editorss"/>
31 id=
"org.argeo.eclipse.ui.workbench.bundlesView"
34 relative=
"org.argeo.eclipse.ui.workbench.modulesView"/>
36 id=
"org.argeo.eclipse.ui.workbench.multiplePackagesView"
39 relative=
"org.argeo.eclipse.ui.workbench.bundlesView"/>
40 </perspectiveExtension>
45 point=
"org.eclipse.ui.views">
48 id=
"org.argeo.eclipse.ui.workbench.modulesView"
49 icon=
"icons/service_published.gif"
50 class=
"org.argeo.eclipse.ui.workbench.osgi.ModulesView">
54 id=
"org.argeo.eclipse.ui.workbench.bundlesView"
55 icon=
"icons/bundles.gif"
56 class=
"org.argeo.eclipse.ui.workbench.osgi.BundlesView">
59 name=
"Multiple Packages"
60 id=
"org.argeo.eclipse.ui.workbench.multiplePackagesView"
62 class=
"org.argeo.eclipse.ui.workbench.osgi.MultiplePackagesView">
66 id=
"org.argeo.eclipse.ui.workbench.jcrBrowserView"
67 icon=
"icons/browser.gif"
68 class=
"org.argeo.eclipse.spring.SpringExtensionFactory">
74 point=
"org.eclipse.ui.editors">
77 id=
"org.argeo.eclipse.ui.workbench.genericJcrQueryEditor"
78 icon=
"icons/query.png"
79 class=
"org.argeo.eclipse.spring.SpringExtensionFactory"
84 id=
"org.argeo.eclipse.ui.workbench.defaultNodeEditor"
85 icon=
"icons/query.png"
86 class=
"org.argeo.eclipse.spring.SpringExtensionFactory"
93 point=
"org.eclipse.ui.commands">
95 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.OpenEditor"
96 id=
"org.argeo.eclipse.ui.workbench.openEditor"
97 name=
"Open an editor given its ID">
99 id=
"param.jcrNodePath"
102 <!-- The path to the corresponding node if needed. -->
104 id=
"param.jcrNodePath"
109 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.GetNodeSize"
110 id=
"org.argeo.eclipse.ui.workbench.getNodeSize"
111 name=
"Get node size">
114 defaultHandler=
"org.argeo.eclipse.spring.SpringCommandHandler"
115 id=
"org.argeo.eclipse.ui.workbench.addRemoteRepository"
116 name=
"Add remote JCR repository">
117 <!-- <commandParameter
118 id="param.repositoryUri"
119 name="Repository URI">
120 </commandParameter> -->
123 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.RemoveRemoteRepository"
124 id=
"org.argeo.eclipse.ui.workbench.removeRemoteRepository"
125 name=
"Remove remote JCR repository">
128 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.AddFolderNode"
129 id=
"org.argeo.eclipse.ui.workbench.addFolderNode"
130 name=
"Create a new folder">
133 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.AddPrivileges"
134 id=
"org.argeo.eclipse.ui.workbench.addPrivileges"
135 name=
"Add Privileges">
138 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.CreateWorkspace"
139 id=
"org.argeo.eclipse.ui.workbench.createWorkspace"
140 name=
"Create a new workspace">
143 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.Refresh"
144 id=
"org.argeo.eclipse.ui.workbench.refresh"
148 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.DeleteNodes"
149 id=
"org.argeo.eclipse.ui.workbench.deleteNodes"
153 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.ImportFileSystem"
154 id=
"org.argeo.eclipse.ui.workbench.importFileSystem"
155 name=
"Import files...">
158 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
159 id="org.argeo.eclipse.ui.workbench.openFile"
160 name="Open current file">
163 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.DumpNode"
164 id=
"org.argeo.eclipse.ui.workbench.dumpNode"
165 name=
"Dump Current Selected Node">
168 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.SortChildNodes"
169 id=
"org.argeo.eclipse.ui.workbench.sortChildNodes"
170 name=
"Sort node tree">
171 <!-- FIXME: default value does not work -->
173 id=
"org.argeo.eclipse.ui.workbench.sortChildNodes.toggleState"
174 class=
"org.eclipse.ui.handlers.RegistryToggleState:true" >
175 <!-- <class class="org.eclipse.jface.commands.ToggleState">
185 <extension point=
"org.eclipse.ui.menus">
186 <!-- Browser view specific menu -->
188 locationURI=
"menu:org.argeo.eclipse.ui.workbench.jcrBrowserView">
191 commandId="org.argeo.eclipse.ui.workbench.openGenericJcrQueryEditor"
192 icon="icons/query.png"
196 commandId=
"org.argeo.eclipse.ui.workbench.addRemoteRepository"
197 icon=
"icons/addRepo.gif"
201 commandId=
"org.argeo.eclipse.ui.workbench.sortChildNodes"
202 icon=
"icons/sort.gif"
204 label=
"Sort child nodes"
205 tooltip=
"NOTE: displaying unsorted nodes will enhance overall performances">
208 <!-- Browser view popup context menu -->
210 locationURI=
"popup:org.argeo.eclipse.ui.workbench.jcrBrowserView">
212 commandId=
"org.argeo.eclipse.ui.workbench.refresh"
213 icon=
"icons/refresh.png"
217 commandId=
"org.argeo.eclipse.ui.workbench.addFolderNode"
218 icon=
"icons/addFolder.gif"
226 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
229 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
232 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
238 commandId=
"org.argeo.eclipse.ui.workbench.addPrivileges"
239 icon=
"icons/addPrivileges.png"
240 label=
"Add Privileges"
247 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
250 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
253 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
259 commandId=
"org.argeo.eclipse.ui.workbench.createWorkspace"
260 icon=
"icons/addWorkspace.png"
261 label=
"Create Workspace"
268 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem">
271 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
277 commandId=
"org.argeo.eclipse.ui.workbench.deleteNodes"
278 icon=
"icons/remove.gif"
285 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
287 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
293 commandId=
"org.argeo.eclipse.ui.workbench.importFileSystem"
294 icon=
"icons/import_fs.png"
296 tooltip=
"Import files from the files sytem">
302 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
304 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
306 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
312 commandId=
"org.argeo.eclipse.ui.workbench.addRemoteRepository"
313 icon=
"icons/addRepo.gif"
319 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoriesElem" />
321 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem" />
327 commandId=
"org.argeo.eclipse.ui.workbench.removeRemoteRepository"
328 icon=
"icons/remove.gif"
334 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.RemoteRepositoryElem" />
340 commandId=
"org.argeo.eclipse.ui.workbench.getNodeSize"
341 icon=
"icons/getSize.gif"
347 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
349 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
355 commandId=
"org.argeo.eclipse.ui.workbench.dumpNode"
356 icon=
"icons/dumpNode.gif"
361 <instanceof value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
362 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
369 <!-- Reduce visibility of JCR Browser perspective to users that are in ROLE_ADMIN -->
371 point=
"org.eclipse.ui.activities">
373 description=
"Only for admins"
374 id=
"org.argeo.eclipse.ui.workbench.adminActivity"
375 name=
"Jcr Technical Admin">
377 <with variable=
"roles">
378 <iterate ifEmpty=
"false" operator=
"or">
379 <equals value=
"ROLE_ADMIN" />
384 <activityPatternBinding
385 pattern=
"org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.osgiPerspective"
386 isEqualityPattern=
"true"
387 activityId=
"org.argeo.eclipse.ui.workbench.adminActivity">
388 <!-- activityId="org.argeo.security.ui.adminActivity" -->
389 </activityPatternBinding>
390 <activityPatternBinding
391 pattern=
"org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.jcrBrowserPerspective"
392 isEqualityPattern=
"true"
393 activityId=
"org.argeo.eclipse.ui.workbench.adminActivity">
394 </activityPatternBinding>