]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.eclipse.ui.workbench/plugin.xml
Do not use latest EclipseUiUtils to enable using the new command as hot fix on existi...
[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.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.NodeConfigurableDump"
169 id="org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
170 name="Configurable dump of the selected Node">
171 </command>
172 <command
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 -->
177 <state
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">
181 <parameter
182 name="default"
183 value="true" />
184 </class> -->
185 </state>
186 </command>
187 </extension>
188
189 <!-- Menus -->
190 <extension point="org.eclipse.ui.menus">
191 <!-- Browser view specific menu -->
192 <menuContribution
193 locationURI="menu:org.argeo.eclipse.ui.workbench.jcrBrowserView">
194 <!-- See bug 149 -->
195 <!-- <command
196 commandId="org.argeo.eclipse.ui.workbench.openGenericJcrQueryEditor"
197 icon="icons/query.png"
198 style="push">
199 </command> -->
200 <command
201 commandId="org.argeo.eclipse.ui.workbench.addRemoteRepository"
202 icon="icons/addRepo.gif"
203 style="push">
204 </command>
205 <command
206 commandId="org.argeo.eclipse.ui.workbench.sortChildNodes"
207 icon="icons/sort.gif"
208 style="toggle"
209 label="Sort child nodes"
210 tooltip="NOTE: displaying unsorted nodes will enhance overall performances">
211 </command>
212 </menuContribution>
213 <!-- Browser view popup context menu -->
214 <menuContribution
215 locationURI="popup:org.argeo.eclipse.ui.workbench.jcrBrowserView">
216 <command
217 commandId="org.argeo.eclipse.ui.workbench.refresh"
218 icon="icons/refresh.png"
219 style="push">
220 </command>
221 <command
222 commandId="org.argeo.eclipse.ui.workbench.addFolderNode"
223 icon="icons/addFolder.gif"
224 label="Add Folder"
225 style="push">
226 <visibleWhen>
227 <iterate>
228 <and>
229 <or>
230 <instanceof
231 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
232 </instanceof>
233 <instanceof
234 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
235 </instanceof>
236 </or>
237 <with variable="activeMenuSelection"><count value="1"/></with>
238 </and>
239 </iterate>
240 </visibleWhen>
241 </command>
242 <command
243 commandId="org.argeo.eclipse.ui.workbench.addPrivileges"
244 icon="icons/addPrivileges.png"
245 label="Add Privileges"
246 style="push">
247 <visibleWhen>
248 <iterate>
249 <and>
250 <or>
251 <instanceof
252 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
253 </instanceof>
254 <instanceof
255 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
256 </instanceof>
257 </or>
258 <with variable="activeMenuSelection"><count value="1"/></with>
259 </and>
260 </iterate>
261 </visibleWhen>
262 </command>
263 <command
264 commandId="org.argeo.eclipse.ui.workbench.createWorkspace"
265 icon="icons/addWorkspace.png"
266 label="Create Workspace"
267 style="push">
268 <visibleWhen>
269 <iterate>
270 <and>
271 <or>
272 <instanceof
273 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem">
274 </instanceof>
275 </or>
276 <with variable="activeMenuSelection"><count value="1"/></with>
277 </and>
278 </iterate>
279 </visibleWhen>
280 </command>
281 <command
282 commandId="org.argeo.eclipse.ui.workbench.deleteNodes"
283 icon="icons/remove.gif"
284 label="Delete Nodes"
285 style="push">
286 <visibleWhen>
287 <iterate>
288 <or>
289 <instanceof
290 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
291 <instanceof
292 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
293 </or>
294 </iterate>
295 </visibleWhen>
296 </command>
297 <command
298 commandId="org.argeo.eclipse.ui.workbench.importFileSystem"
299 icon="icons/import_fs.png"
300 style="push"
301 tooltip="Import files from the files sytem">
302 <visibleWhen>
303 <iterate>
304 <and>
305 <or>
306 <instanceof
307 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
308 <instanceof
309 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
310 </or>
311 <with variable="activeMenuSelection"><count value="1"/></with>
312 </and>
313 </iterate>
314 </visibleWhen>
315 </command>
316 <command
317 commandId="org.argeo.eclipse.ui.workbench.addRemoteRepository"
318 icon="icons/addRepo.gif"
319 style="push">
320 <visibleWhen>
321 <iterate>
322 <or>
323 <instanceof
324 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoriesElem" />
325 <instanceof
326 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem" />
327 </or>
328 </iterate>
329 </visibleWhen>
330 </command>
331 <command
332 commandId="org.argeo.eclipse.ui.workbench.removeRemoteRepository"
333 icon="icons/remove.gif"
334 style="push">
335 <visibleWhen>
336 <iterate>
337 <or>
338 <instanceof
339 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RemoteRepositoryElem" />
340 </or>
341 </iterate>
342 </visibleWhen>
343 </command>
344 <command
345 commandId="org.argeo.eclipse.ui.workbench.getNodeSize"
346 icon="icons/getSize.gif"
347 style="push">
348 <visibleWhen>
349 <iterate>
350 <or>
351 <instanceof
352 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
353 <instanceof
354 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
355 </or>
356 </iterate>
357 </visibleWhen>
358 </command>
359 <command
360 commandId="org.argeo.eclipse.ui.workbench.dumpNode"
361 icon="icons/dumpNode.gif"
362 label="Dump Node"
363 style="push">
364 <visibleWhen>
365 <iterate> <and>
366 <instanceof value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
367 <with variable="activeMenuSelection"><count value="1"/></with>
368 </and> </iterate>
369 </visibleWhen>
370 </command>
371 <command
372 commandId="org.argeo.eclipse.ui.workbench.nodeConfigurableDump"
373 icon="icons/dumpNode.gif"
374 label="Configurable dump..."
375 style="push">
376 <visibleWhen>
377 <iterate>
378 <and>
379 <instanceof value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
380 <with variable="activeMenuSelection"><count value="1"/></with>
381 </and>
382 </iterate>
383 </visibleWhen>
384 </command>
385 </menuContribution>
386 </extension>
387
388 <!-- Reduce visibility of JCR Browser perspective to users that are in ROLE_ADMIN -->
389 <extension
390 point="org.eclipse.ui.activities">
391 <activity
392 description="Only for admins"
393 id="org.argeo.eclipse.ui.workbench.adminActivity"
394 name="Jcr Technical Admin">
395 <enabledWhen>
396 <with variable="roles">
397 <iterate ifEmpty="false" operator="or">
398 <equals value="ROLE_ADMIN" />
399 </iterate>
400 </with>
401 </enabledWhen>
402 </activity>
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>
414 </extension>
415 </plugin>