]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.eclipse.ui.workbench/plugin.xml
Split CMS and CMS UI
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4 <!-- PERSPECTIVES -->
5 <extension
6 point="org.eclipse.ui.perspectives">
7 <perspective
8 name="Monitoring"
9 class="org.argeo.eclipse.ui.workbench.osgi.OsgiExplorerPerspective"
10 id="org.argeo.eclipse.ui.workbench.osgiPerspective"
11 icon="icons/osgi_explorer.gif">
12 </perspective>
13 <perspective
14 name="Data Explorer"
15 class="org.argeo.eclipse.ui.workbench.jcr.JcrBrowserPerspective"
16 id="org.argeo.eclipse.ui.workbench.jcrBrowserPerspective"
17 icon="icons/nodes.gif">
18 </perspective>
19 </extension>
20
21 <!-- Definition of the OSGI perspective -->
22 <extension point="org.eclipse.ui.perspectiveExtensions">
23 <perspectiveExtension targetID="org.argeo.eclipse.ui.workbench.osgiPerspective">
24 <view
25 id="org.argeo.eclipse.ui.workbench.modulesView"
26 minimized="false"
27 ratio="0.5"
28 relationship="left"
29 relative="org.eclipse.ui.editorss"/>
30 <view
31 id="org.argeo.eclipse.ui.workbench.bundlesView"
32 minimized="false"
33 relationship="stack"
34 relative="org.argeo.eclipse.ui.workbench.modulesView"/>
35 <view
36 id="org.argeo.eclipse.ui.workbench.multiplePackagesView"
37 minimized="false"
38 relationship="stack"
39 relative="org.argeo.eclipse.ui.workbench.bundlesView"/>
40 </perspectiveExtension>
41 </extension>
42
43 <!-- VIEWS -->
44 <extension
45 point="org.eclipse.ui.views">
46 <view
47 name="Modules"
48 id="org.argeo.eclipse.ui.workbench.modulesView"
49 icon="icons/service_published.gif"
50 class="org.argeo.eclipse.ui.workbench.osgi.ModulesView">
51 </view>
52 <view
53 name="Bundles"
54 id="org.argeo.eclipse.ui.workbench.bundlesView"
55 icon="icons/bundles.gif"
56 class="org.argeo.eclipse.ui.workbench.osgi.BundlesView">
57 </view>
58 <view
59 name="Multiple Packages"
60 id="org.argeo.eclipse.ui.workbench.multiplePackagesView"
61 icon="icons/node.gif"
62 class="org.argeo.eclipse.ui.workbench.osgi.MultiplePackagesView">
63 </view>
64 <view
65 name="JCR Browser"
66 id="org.argeo.eclipse.ui.workbench.jcrBrowserView"
67 icon="icons/browser.gif"
68 class="org.argeo.eclipse.spring.SpringExtensionFactory">
69 </view>
70 </extension>
71
72 <!-- EDITORS -->
73 <extension
74 point="org.eclipse.ui.editors">
75 <editor
76 name="JCR Query"
77 id="org.argeo.eclipse.ui.workbench.genericJcrQueryEditor"
78 icon="icons/query.png"
79 class="org.argeo.eclipse.spring.SpringExtensionFactory"
80 default="false">
81 </editor>
82 <editor
83 name="Node Editor"
84 id="org.argeo.eclipse.ui.workbench.defaultNodeEditor"
85 icon="icons/query.png"
86 class="org.argeo.eclipse.spring.SpringExtensionFactory"
87 default="false">
88 </editor>
89 </extension>
90
91 <!-- COMMANDS -->
92 <extension
93 point="org.eclipse.ui.commands">
94 <command
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">
98 <commandParameter
99 id="param.jcrNodePath"
100 name="Node path">
101 </commandParameter>
102 <!-- The path to the corresponding node if needed. -->
103 <commandParameter
104 id="param.jcrNodePath"
105 name="Node path">
106 </commandParameter>
107 </command>
108 <command
109 defaultHandler="org.argeo.eclipse.ui.workbench.commands.GetNodeSize"
110 id="org.argeo.eclipse.ui.workbench.getNodeSize"
111 name="Get node size">
112 </command>
113 <command
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> -->
121 </command>
122 <command
123 defaultHandler="org.argeo.eclipse.ui.workbench.commands.RemoveRemoteRepository"
124 id="org.argeo.eclipse.ui.workbench.removeRemoteRepository"
125 name="Remove remote JCR repository">
126 </command>
127 <command
128 defaultHandler="org.argeo.eclipse.ui.workbench.commands.AddFolderNode"
129 id="org.argeo.eclipse.ui.workbench.addFolderNode"
130 name="Create a new folder">
131 </command>
132 <command
133 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
134 id="org.argeo.eclipse.ui.workbench.addPrivileges"
135 name="Add Privileges">
136 </command>
137 <command
138 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
139 id="org.argeo.eclipse.ui.workbench.removePrivileges"
140 name="Remove Privileges">
141 </command>
142 <command
143 defaultHandler="org.argeo.eclipse.ui.workbench.commands.CreateWorkspace"
144 id="org.argeo.eclipse.ui.workbench.createWorkspace"
145 name="Create a new workspace">
146 </command>
147 <command
148 defaultHandler="org.argeo.eclipse.ui.workbench.commands.Refresh"
149 id="org.argeo.eclipse.ui.workbench.refresh"
150 name="Refresh">
151 </command>
152 <command
153 defaultHandler="org.argeo.eclipse.ui.workbench.commands.DeleteNodes"
154 id="org.argeo.eclipse.ui.workbench.deleteNodes"
155 name="Delete nodes">
156 </command>
157 <command
158 defaultHandler="org.argeo.eclipse.ui.workbench.commands.ImportFileSystem"
159 id="org.argeo.eclipse.ui.workbench.importFileSystem"
160 name="Import files...">
161 </command>
162 <!-- <command
163 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
164 id="org.argeo.eclipse.ui.workbench.openFile"
165 name="Open current file">
166 </command> -->
167 <command
168 defaultHandler="org.argeo.eclipse.ui.workbench.commands.DumpNode"
169 id="org.argeo.eclipse.ui.workbench.dumpNode"
170 name="Dump Current Selected Node">
171 </command>
172 <command
173 defaultHandler="org.argeo.eclipse.ui.workbench.commands.RenameNode"
174 id="org.argeo.eclipse.ui.workbench.renameNode"
175 name="Rename Current Selected Node">
176 </command>
177 <command
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">
181 </command>
182 <command
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 -->
187 <state
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">
191 <parameter
192 name="default"
193 value="true" />
194 </class> -->
195 </state>
196 </command>
197 </extension>
198
199 <!-- Menus -->
200 <extension point="org.eclipse.ui.menus">
201 <!-- Browser view specific menu -->
202 <menuContribution
203 locationURI="menu:org.argeo.eclipse.ui.workbench.jcrBrowserView">
204 <!-- See bug 149 -->
205 <!-- <command
206 commandId="org.argeo.eclipse.ui.workbench.openGenericJcrQueryEditor"
207 icon="icons/query.png"
208 style="push">
209 </command> -->
210 <command
211 commandId="org.argeo.eclipse.ui.workbench.addRemoteRepository"
212 icon="icons/addRepo.gif"
213 style="push">
214 </command>
215 <command
216 commandId="org.argeo.eclipse.ui.workbench.sortChildNodes"
217 icon="icons/sort.gif"
218 style="toggle"
219 label="Sort child nodes"
220 tooltip="NOTE: displaying unsorted nodes will enhance overall performances">
221 </command>
222 </menuContribution>
223 <!-- Browser view popup context menu -->
224 <menuContribution
225 locationURI="popup:org.argeo.eclipse.ui.workbench.jcrBrowserView">
226 <command
227 commandId="org.argeo.eclipse.ui.workbench.refresh"
228 icon="icons/refresh.png"
229 style="push">
230 </command>
231 <command
232 commandId="org.argeo.eclipse.ui.workbench.addFolderNode"
233 icon="icons/addFolder.gif"
234 label="Add Folder..."
235 style="push">
236 <visibleWhen>
237 <iterate>
238 <and>
239 <or>
240 <instanceof
241 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
242 </instanceof>
243 <instanceof
244 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem">
245 </instanceof>
246 </or>
247 <with variable="activeMenuSelection"><count value="1"/></with>
248 </and>
249 </iterate>
250 </visibleWhen>
251 </command>
252 <command
253 commandId="org.argeo.eclipse.ui.workbench.addPrivileges"
254 icon="icons/addPrivileges.gif"
255 label="Add Privileges..."
256 style="push">
257 <visibleWhen>
258 <iterate>
259 <and>
260 <or>
261 <instanceof
262 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
263 </instanceof>
264 <instanceof
265 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem">
266 </instanceof>
267 </or>
268 <with variable="activeMenuSelection"><count value="1"/></with>
269 </and>
270 </iterate>
271 </visibleWhen>
272 </command>
273 <command
274 commandId="org.argeo.eclipse.ui.workbench.removePrivileges"
275 icon="icons/removePrivileges.gif"
276 label="Remove Privileges..."
277 style="push">
278 <visibleWhen>
279 <iterate>
280 <and>
281 <or>
282 <instanceof
283 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem">
284 </instanceof>
285 <instanceof
286 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem">
287 </instanceof>
288 </or>
289 <with variable="activeMenuSelection"><count value="1"/></with>
290 </and>
291 </iterate>
292 </visibleWhen>
293 </command>
294 <command
295 commandId="org.argeo.eclipse.ui.workbench.createWorkspace"
296 icon="icons/addWorkspace.png"
297 label="Create Workspace..."
298 style="push">
299 <visibleWhen>
300 <iterate>
301 <and>
302 <or>
303 <instanceof
304 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.RepositoryElem">
305 </instanceof>
306 </or>
307 <with variable="activeMenuSelection"><count value="1"/></with>
308 </and>
309 </iterate>
310 </visibleWhen>
311 </command>
312 <command
313 commandId="org.argeo.eclipse.ui.workbench.deleteNodes"
314 icon="icons/remove.gif"
315 label="Delete Nodes"
316 style="push">
317 <visibleWhen>
318 <iterate>
319 <or>
320 <instanceof
321 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
322 <instanceof
323 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem" />
324 </or>
325 </iterate>
326 </visibleWhen>
327 </command>
328 <command
329 commandId="org.argeo.eclipse.ui.workbench.importFileSystem"
330 icon="icons/import_fs.png"
331 style="push"
332 tooltip="Import files from the files sytem">
333 <visibleWhen>
334 <iterate>
335 <and>
336 <or>
337 <instanceof
338 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
339 <instanceof
340 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem" />
341 </or>
342 <with variable="activeMenuSelection"><count value="1"/></with>
343 </and>
344 </iterate>
345 </visibleWhen>
346 </command>
347 <command
348 commandId="org.argeo.eclipse.ui.workbench.addRemoteRepository"
349 icon="icons/addRepo.gif"
350 style="push">
351 <visibleWhen>
352 <iterate>
353 <or>
354 <instanceof
355 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.RepositoriesElem" />
356 <instanceof
357 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.RepositoryElem" />
358 </or>
359 </iterate>
360 </visibleWhen>
361 </command>
362 <command
363 commandId="org.argeo.eclipse.ui.workbench.removeRemoteRepository"
364 icon="icons/remove.gif"
365 style="push">
366 <visibleWhen>
367 <iterate>
368 <or>
369 <instanceof
370 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.RemoteRepositoryElem" />
371 </or>
372 </iterate>
373 </visibleWhen>
374 </command>
375 <command
376 commandId="org.argeo.eclipse.ui.workbench.getNodeSize"
377 icon="icons/getSize.gif"
378 style="push">
379 <visibleWhen>
380 <iterate>
381 <or>
382 <instanceof
383 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem" />
384 <instanceof
385 value="org.argeo.eclipse.ui.workbench.internal.jcr.model.WorkspaceElem" />
386 </or>
387 </iterate>
388 </visibleWhen>
389 </command>
390 <command
391 commandId="org.argeo.eclipse.ui.workbench.dumpNode"
392 icon="icons/dumpNode.gif"
393 label="Dump Node"
394 style="push">
395 <visibleWhen>
396 <iterate> <and>
397 <instanceof value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
398 <with variable="activeMenuSelection"><count value="1"/></with>
399 </and> </iterate>
400 </visibleWhen>
401 </command>
402 <command
403 commandId="org.argeo.eclipse.ui.workbench.renameNode"
404 icon="icons/rename.gif"
405 label="Rename..."
406 style="push">
407 <visibleWhen>
408 <iterate> <and>
409 <instanceof value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
410 <with variable="activeMenuSelection"><count value="1"/></with>
411 </and> </iterate>
412 </visibleWhen>
413 </command>
414 <command
415 commandId="org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
416 icon="icons/dumpNode.gif"
417 label="Configurable dump..."
418 style="push">
419 <visibleWhen>
420 <iterate>
421 <and>
422 <instanceof value="org.argeo.eclipse.ui.workbench.internal.jcr.model.SingleJcrNodeElem"></instanceof>
423 <with variable="activeMenuSelection"><count value="1"/></with>
424 </and>
425 </iterate>
426 </visibleWhen>
427 </command>
428 </menuContribution>
429 </extension>
430
431 <!-- Reduce visibility of JCR Browser perspective to users that are in ROLE_ADMIN -->
432 <extension
433 point="org.eclipse.ui.activities">
434 <!--
435 <activity
436 description="Only for admins"
437 id="org.argeo.eclipse.ui.workbench.adminActivity"
438 name="Jcr Technical Admin">
439 <enabledWhen>
440 <with variable="roles">
441 <iterate ifEmpty="false" operator="or">
442 <equals value="ROLE_ADMIN" />
443 </iterate>
444 </with>
445 </enabledWhen>
446 </activity>
447 -->
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>
459 </extension>
460 </plugin>