]> git.argeo.org Git - lgpl/argeo-commons.git/blob - plugin.xml
a4292c261751d60d1416e44cce5f49523bd08aa2
[lgpl/argeo-commons.git] / 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.ui.workbench.commands.AddPrivileges"
134 id="org.argeo.eclipse.ui.workbench.addPrivileges"
135 name="Add Privileges">
136 </command>
137 <command
138 defaultHandler="org.argeo.eclipse.ui.workbench.commands.CreateWorkspace"
139 id="org.argeo.eclipse.ui.workbench.createWorkspace"
140 name="Create a new workspace">
141 </command>
142 <command
143 defaultHandler="org.argeo.eclipse.ui.workbench.commands.Refresh"
144 id="org.argeo.eclipse.ui.workbench.refresh"
145 name="Refresh">
146 </command>
147 <command
148 defaultHandler="org.argeo.eclipse.ui.workbench.commands.DeleteNodes"
149 id="org.argeo.eclipse.ui.workbench.deleteNodes"
150 name="Delete nodes">
151 </command>
152 <command
153 defaultHandler="org.argeo.eclipse.ui.workbench.commands.ImportFileSystem"
154 id="org.argeo.eclipse.ui.workbench.importFileSystem"
155 name="Import files...">
156 </command>
157 <!-- <command
158 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
159 id="org.argeo.eclipse.ui.workbench.openFile"
160 name="Open current file">
161 </command> -->
162 <command
163 defaultHandler="org.argeo.eclipse.ui.workbench.commands.DumpNode"
164 id="org.argeo.eclipse.ui.workbench.dumpNode"
165 name="Dump Current Selected Node">
166 </command>
167 <command
168 defaultHandler="org.argeo.eclipse.ui.workbench.commands.RenameNode"
169 id="org.argeo.eclipse.ui.workbench.renameNode"
170 name="Rename Current Selected Node">
171 </command>
172 <command
173 defaultHandler="org.argeo.eclipse.ui.workbench.commands.NodeConfigurableDump"
174 id="org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
175 name="Configurable dump of the selected Node">
176 </command>
177 <command
178 defaultHandler="org.argeo.eclipse.ui.workbench.commands.SortChildNodes"
179 id="org.argeo.eclipse.ui.workbench.sortChildNodes"
180 name="Sort node tree">
181 <!-- FIXME: default value does not work -->
182 <state
183 id="org.argeo.eclipse.ui.workbench.sortChildNodes.toggleState"
184 class="org.eclipse.ui.handlers.RegistryToggleState:true" >
185 <!-- <class class="org.eclipse.jface.commands.ToggleState">
186 <parameter
187 name="default"
188 value="true" />
189 </class> -->
190 </state>
191 </command>
192 </extension>
193
194 <!-- Menus -->
195 <extension point="org.eclipse.ui.menus">
196 <!-- Browser view specific menu -->
197 <menuContribution
198 locationURI="menu:org.argeo.eclipse.ui.workbench.jcrBrowserView">
199 <!-- See bug 149 -->
200 <!-- <command
201 commandId="org.argeo.eclipse.ui.workbench.openGenericJcrQueryEditor"
202 icon="icons/query.png"
203 style="push">
204 </command> -->
205 <command
206 commandId="org.argeo.eclipse.ui.workbench.addRemoteRepository"
207 icon="icons/addRepo.gif"
208 style="push">
209 </command>
210 <command
211 commandId="org.argeo.eclipse.ui.workbench.sortChildNodes"
212 icon="icons/sort.gif"
213 style="toggle"
214 label="Sort child nodes"
215 tooltip="NOTE: displaying unsorted nodes will enhance overall performances">
216 </command>
217 </menuContribution>
218 <!-- Browser view popup context menu -->
219 <menuContribution
220 locationURI="popup:org.argeo.eclipse.ui.workbench.jcrBrowserView">
221 <command
222 commandId="org.argeo.eclipse.ui.workbench.refresh"
223 icon="icons/refresh.png"
224 style="push">
225 </command>
226 <command
227 commandId="org.argeo.eclipse.ui.workbench.addFolderNode"
228 icon="icons/addFolder.gif"
229 label="Add Folder"
230 style="push">
231 <visibleWhen>
232 <iterate>
233 <and>
234 <or>
235 <instanceof
236 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
237 </instanceof>
238 <instanceof
239 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
240 </instanceof>
241 </or>
242 <with variable="activeMenuSelection"><count value="1"/></with>
243 </and>
244 </iterate>
245 </visibleWhen>
246 </command>
247 <command
248 commandId="org.argeo.eclipse.ui.workbench.addPrivileges"
249 icon="icons/addPrivileges.png"
250 label="Add Privileges"
251 style="push">
252 <visibleWhen>
253 <iterate>
254 <and>
255 <or>
256 <instanceof
257 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
258 </instanceof>
259 <instanceof
260 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
261 </instanceof>
262 </or>
263 <with variable="activeMenuSelection"><count value="1"/></with>
264 </and>
265 </iterate>
266 </visibleWhen>
267 </command>
268 <command
269 commandId="org.argeo.eclipse.ui.workbench.createWorkspace"
270 icon="icons/addWorkspace.png"
271 label="Create Workspace"
272 style="push">
273 <visibleWhen>
274 <iterate>
275 <and>
276 <or>
277 <instanceof
278 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem">
279 </instanceof>
280 </or>
281 <with variable="activeMenuSelection"><count value="1"/></with>
282 </and>
283 </iterate>
284 </visibleWhen>
285 </command>
286 <command
287 commandId="org.argeo.eclipse.ui.workbench.deleteNodes"
288 icon="icons/remove.gif"
289 label="Delete Nodes"
290 style="push">
291 <visibleWhen>
292 <iterate>
293 <or>
294 <instanceof
295 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
296 <instanceof
297 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
298 </or>
299 </iterate>
300 </visibleWhen>
301 </command>
302 <command
303 commandId="org.argeo.eclipse.ui.workbench.importFileSystem"
304 icon="icons/import_fs.png"
305 style="push"
306 tooltip="Import files from the files sytem">
307 <visibleWhen>
308 <iterate>
309 <and>
310 <or>
311 <instanceof
312 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
313 <instanceof
314 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
315 </or>
316 <with variable="activeMenuSelection"><count value="1"/></with>
317 </and>
318 </iterate>
319 </visibleWhen>
320 </command>
321 <command
322 commandId="org.argeo.eclipse.ui.workbench.addRemoteRepository"
323 icon="icons/addRepo.gif"
324 style="push">
325 <visibleWhen>
326 <iterate>
327 <or>
328 <instanceof
329 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoriesElem" />
330 <instanceof
331 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem" />
332 </or>
333 </iterate>
334 </visibleWhen>
335 </command>
336 <command
337 commandId="org.argeo.eclipse.ui.workbench.removeRemoteRepository"
338 icon="icons/remove.gif"
339 style="push">
340 <visibleWhen>
341 <iterate>
342 <or>
343 <instanceof
344 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RemoteRepositoryElem" />
345 </or>
346 </iterate>
347 </visibleWhen>
348 </command>
349 <command
350 commandId="org.argeo.eclipse.ui.workbench.getNodeSize"
351 icon="icons/getSize.gif"
352 style="push">
353 <visibleWhen>
354 <iterate>
355 <or>
356 <instanceof
357 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
358 <instanceof
359 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
360 </or>
361 </iterate>
362 </visibleWhen>
363 </command>
364 <command
365 commandId="org.argeo.eclipse.ui.workbench.dumpNode"
366 icon="icons/dumpNode.gif"
367 label="Dump Node"
368 style="push">
369 <visibleWhen>
370 <iterate> <and>
371 <instanceof value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
372 <with variable="activeMenuSelection"><count value="1"/></with>
373 </and> </iterate>
374 </visibleWhen>
375 </command>
376 <command
377 commandId="org.argeo.eclipse.ui.workbench.renameNode"
378 icon="icons/rename.gif"
379 label="Rename..."
380 style="push">
381 <visibleWhen>
382 <iterate> <and>
383 <instanceof value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
384 <with variable="activeMenuSelection"><count value="1"/></with>
385 </and> </iterate>
386 </visibleWhen>
387 </command>
388 <command
389 commandId="org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
390 icon="icons/dumpNode.gif"
391 label="Configurable dump..."
392 style="push">
393 <visibleWhen>
394 <iterate>
395 <and>
396 <instanceof value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
397 <with variable="activeMenuSelection"><count value="1"/></with>
398 </and>
399 </iterate>
400 </visibleWhen>
401 </command>
402 </menuContribution>
403 </extension>
404
405 <!-- Reduce visibility of JCR Browser perspective to users that are in ROLE_ADMIN -->
406 <extension
407 point="org.eclipse.ui.activities">
408 <!--
409 <activity
410 description="Only for admins"
411 id="org.argeo.eclipse.ui.workbench.adminActivity"
412 name="Jcr Technical Admin">
413 <enabledWhen>
414 <with variable="roles">
415 <iterate ifEmpty="false" operator="or">
416 <equals value="ROLE_ADMIN" />
417 </iterate>
418 </with>
419 </enabledWhen>
420 </activity>
421 -->
422 <activityPatternBinding
423 pattern="org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.osgiPerspective"
424 isEqualityPattern="true"
425 activityId="org.argeo.security.ui.adminActivity">
426 <!-- activityId="org.argeo.security.ui.adminActivity" -->
427 </activityPatternBinding>
428 <activityPatternBinding
429 pattern="org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.jcrBrowserPerspective"
430 isEqualityPattern="true"
431 activityId="org.argeo.security.ui.adminActivity">
432 </activityPatternBinding>
433 </extension>
434 </plugin>