]>
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.spring.SpringCommandHandler"
134 id=
"org.argeo.eclipse.ui.workbench.addPrivileges"
135 name=
"Add Privileges">
138 defaultHandler=
"org.argeo.eclipse.spring.SpringCommandHandler"
139 id=
"org.argeo.eclipse.ui.workbench.removePrivileges"
140 name=
"Remove Privileges">
143 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.CreateWorkspace"
144 id=
"org.argeo.eclipse.ui.workbench.createWorkspace"
145 name=
"Create a new workspace">
148 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.Refresh"
149 id=
"org.argeo.eclipse.ui.workbench.refresh"
153 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.DeleteNodes"
154 id=
"org.argeo.eclipse.ui.workbench.deleteNodes"
158 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.ImportFileSystem"
159 id=
"org.argeo.eclipse.ui.workbench.importFileSystem"
160 name=
"Import files...">
163 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
164 id="org.argeo.eclipse.ui.workbench.openFile"
165 name="Open current file">
168 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.DumpNode"
169 id=
"org.argeo.eclipse.ui.workbench.dumpNode"
170 name=
"Dump Current Selected Node">
173 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.RenameNode"
174 id=
"org.argeo.eclipse.ui.workbench.renameNode"
175 name=
"Rename Current Selected Node">
178 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.NodeConfigurableDump"
179 id=
"org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
180 name=
"Configurable dump of the selected Node">
183 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.SortChildNodes"
184 id=
"org.argeo.eclipse.ui.workbench.sortChildNodes"
185 name=
"Sort node tree">
186 <!-- FIXME: default value does not work -->
188 id=
"org.argeo.eclipse.ui.workbench.sortChildNodes.toggleState"
189 class=
"org.eclipse.ui.handlers.RegistryToggleState:true" >
190 <!-- <class class="org.eclipse.jface.commands.ToggleState">
200 <extension point=
"org.eclipse.ui.menus">
201 <!-- Browser view specific menu -->
203 locationURI=
"menu:org.argeo.eclipse.ui.workbench.jcrBrowserView">
206 commandId="org.argeo.eclipse.ui.workbench.openGenericJcrQueryEditor"
207 icon="icons/query.png"
211 commandId=
"org.argeo.eclipse.ui.workbench.addRemoteRepository"
212 icon=
"icons/addRepo.gif"
216 commandId=
"org.argeo.eclipse.ui.workbench.sortChildNodes"
217 icon=
"icons/sort.gif"
219 label=
"Sort child nodes"
220 tooltip=
"NOTE: displaying unsorted nodes will enhance overall performances">
223 <!-- Browser view popup context menu -->
225 locationURI=
"popup:org.argeo.eclipse.ui.workbench.jcrBrowserView">
227 commandId=
"org.argeo.eclipse.ui.workbench.refresh"
228 icon=
"icons/refresh.png"
232 commandId=
"org.argeo.eclipse.ui.workbench.addFolderNode"
233 icon=
"icons/addFolder.gif"
234 label=
"Add Folder..."
241 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
244 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem">
247 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
253 commandId=
"org.argeo.eclipse.ui.workbench.addPrivileges"
254 icon=
"icons/addPrivileges.gif"
255 label=
"Add Privileges..."
262 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
265 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem">
268 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
274 commandId=
"org.argeo.eclipse.ui.workbench.removePrivileges"
275 icon=
"icons/removePrivileges.gif"
276 label=
"Remove Privileges..."
283 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
286 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem">
289 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
295 commandId=
"org.argeo.eclipse.ui.workbench.createWorkspace"
296 icon=
"icons/addWorkspace.png"
297 label=
"Create Workspace..."
304 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.RepositoryElem">
307 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
313 commandId=
"org.argeo.eclipse.ui.workbench.deleteNodes"
314 icon=
"icons/remove.gif"
321 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
323 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem" />
329 commandId=
"org.argeo.eclipse.ui.workbench.importFileSystem"
330 icon=
"icons/import_fs.png"
332 tooltip=
"Import files from the files sytem">
338 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
340 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem" />
342 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
348 commandId=
"org.argeo.eclipse.ui.workbench.addRemoteRepository"
349 icon=
"icons/addRepo.gif"
355 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.RepositoriesElem" />
357 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.RepositoryElem" />
363 commandId=
"org.argeo.eclipse.ui.workbench.removeRemoteRepository"
364 icon=
"icons/remove.gif"
370 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.RemoteRepositoryElem" />
376 commandId=
"org.argeo.eclipse.ui.workbench.getNodeSize"
377 icon=
"icons/getSize.gif"
383 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
385 value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem" />
391 commandId=
"org.argeo.eclipse.ui.workbench.dumpNode"
392 icon=
"icons/dumpNode.gif"
397 <instanceof value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
398 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
403 commandId=
"org.argeo.eclipse.ui.workbench.renameNode"
404 icon=
"icons/rename.gif"
409 <instanceof value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
410 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
415 commandId=
"org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
416 icon=
"icons/dumpNode.gif"
417 label=
"Configurable dump..."
422 <instanceof value=
"org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
423 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
431 <!-- Reduce visibility of JCR Browser perspective to users that are in ROLE_ADMIN -->
433 point=
"org.eclipse.ui.activities">
436 description="Only for admins"
437 id="org.argeo.eclipse.ui.workbench.adminActivity"
438 name="Jcr Technical Admin">
440 <with variable="roles">
441 <iterate ifEmpty="false" operator="or">
442 <equals value="ROLE_ADMIN" />
448 <activityPatternBinding
449 pattern=
"org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.osgiPerspective"
450 isEqualityPattern=
"true"
451 activityId=
"org.argeo.security.ui.adminActivity">
452 <!-- activityId="org.argeo.security.ui.adminActivity" -->
453 </activityPatternBinding>
454 <activityPatternBinding
455 pattern=
"org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.jcrBrowserPerspective"
456 isEqualityPattern=
"true"
457 activityId=
"org.argeo.security.ui.adminActivity">
458 </activityPatternBinding>