]>
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.NodeConfigurableDump"
169 id=
"org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
170 name=
"Configurable dump of the selected Node">
173 defaultHandler=
"org.argeo.eclipse.ui.workbench.commands.SortChildNodes"
174 id=
"org.argeo.eclipse.ui.workbench.sortChildNodes"
175 name=
"Sort node tree">
176 <!-- FIXME: default value does not work -->
178 id=
"org.argeo.eclipse.ui.workbench.sortChildNodes.toggleState"
179 class=
"org.eclipse.ui.handlers.RegistryToggleState:true" >
180 <!-- <class class="org.eclipse.jface.commands.ToggleState">
190 <extension point=
"org.eclipse.ui.menus">
191 <!-- Browser view specific menu -->
193 locationURI=
"menu:org.argeo.eclipse.ui.workbench.jcrBrowserView">
196 commandId="org.argeo.eclipse.ui.workbench.openGenericJcrQueryEditor"
197 icon="icons/query.png"
201 commandId=
"org.argeo.eclipse.ui.workbench.addRemoteRepository"
202 icon=
"icons/addRepo.gif"
206 commandId=
"org.argeo.eclipse.ui.workbench.sortChildNodes"
207 icon=
"icons/sort.gif"
209 label=
"Sort child nodes"
210 tooltip=
"NOTE: displaying unsorted nodes will enhance overall performances">
213 <!-- Browser view popup context menu -->
215 locationURI=
"popup:org.argeo.eclipse.ui.workbench.jcrBrowserView">
217 commandId=
"org.argeo.eclipse.ui.workbench.refresh"
218 icon=
"icons/refresh.png"
222 commandId=
"org.argeo.eclipse.ui.workbench.addFolderNode"
223 icon=
"icons/addFolder.gif"
231 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
234 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
237 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
243 commandId=
"org.argeo.eclipse.ui.workbench.addPrivileges"
244 icon=
"icons/addPrivileges.png"
245 label=
"Add Privileges"
252 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
255 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
258 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
264 commandId=
"org.argeo.eclipse.ui.workbench.createWorkspace"
265 icon=
"icons/addWorkspace.png"
266 label=
"Create Workspace"
273 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem">
276 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
282 commandId=
"org.argeo.eclipse.ui.workbench.deleteNodes"
283 icon=
"icons/remove.gif"
290 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
292 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
298 commandId=
"org.argeo.eclipse.ui.workbench.importFileSystem"
299 icon=
"icons/import_fs.png"
301 tooltip=
"Import files from the files sytem">
307 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
309 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
311 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
317 commandId=
"org.argeo.eclipse.ui.workbench.addRemoteRepository"
318 icon=
"icons/addRepo.gif"
324 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoriesElem" />
326 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem" />
332 commandId=
"org.argeo.eclipse.ui.workbench.removeRemoteRepository"
333 icon=
"icons/remove.gif"
339 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.RemoteRepositoryElem" />
345 commandId=
"org.argeo.eclipse.ui.workbench.getNodeSize"
346 icon=
"icons/getSize.gif"
352 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
354 value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
360 commandId=
"org.argeo.eclipse.ui.workbench.dumpNode"
361 icon=
"icons/dumpNode.gif"
366 <instanceof value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
367 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
372 commandId=
"org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
373 icon=
"icons/dumpNode.gif"
374 label=
"Configurable dump..."
379 <instanceof value=
"org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
380 <with variable=
"activeMenuSelection"><count value=
"1"/></with>
388 <!-- Reduce visibility of JCR Browser perspective to users that are in ROLE_ADMIN -->
390 point=
"org.eclipse.ui.activities">
392 description=
"Only for admins"
393 id=
"org.argeo.eclipse.ui.workbench.adminActivity"
394 name=
"Jcr Technical Admin">
396 <with variable=
"roles">
397 <iterate ifEmpty=
"false" operator=
"or">
398 <equals value=
"ROLE_ADMIN" />
403 <activityPatternBinding
404 pattern=
"org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.osgiPerspective"
405 isEqualityPattern=
"true"
406 activityId=
"org.argeo.eclipse.ui.workbench.adminActivity">
407 <!-- activityId="org.argeo.security.ui.adminActivity" -->
408 </activityPatternBinding>
409 <activityPatternBinding
410 pattern=
"org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.jcrBrowserPerspective"
411 isEqualityPattern=
"true"
412 activityId=
"org.argeo.eclipse.ui.workbench.adminActivity">
413 </activityPatternBinding>