]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.eclipse.ui.workbench/plugin.xml
[maven-release-plugin] prepare release argeo-commons-2.1.12
[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.bundlesView"
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.modulesView"
32 minimized="false"
33 relationship="stack"
34 relative="org.argeo.eclipse.ui.workbench.bundlesView"/>
35 </perspectiveExtension>
36 </extension>
37
38 <!-- VIEWS -->
39 <extension
40 point="org.eclipse.ui.views">
41 <view
42 name="Modules"
43 id="org.argeo.eclipse.ui.workbench.modulesView"
44 icon="icons/bundles.gif"
45 class="org.argeo.eclipse.ui.workbench.osgi.ModulesView">
46 </view>
47 <view
48 name="Bundles"
49 id="org.argeo.eclipse.ui.workbench.bundlesView"
50 icon="icons/bundles.gif"
51 class="org.argeo.eclipse.ui.workbench.osgi.BundlesView">
52 </view>
53 <view
54 name="JCR Browser"
55 id="org.argeo.eclipse.ui.workbench.jcrBrowserView"
56 icon="icons/browser.gif"
57 class="org.argeo.eclipse.spring.SpringExtensionFactory">
58 </view>
59 </extension>
60
61 <!-- EDITORS -->
62 <extension
63 point="org.eclipse.ui.editors">
64 <editor
65 name="JCR Query"
66 id="org.argeo.eclipse.ui.workbench.genericJcrQueryEditor"
67 icon="icons/query.png"
68 class="org.argeo.eclipse.spring.SpringExtensionFactory"
69 default="false">
70 </editor>
71 <editor
72 name="Node Editor"
73 id="org.argeo.eclipse.ui.workbench.defaultNodeEditor"
74 icon="icons/query.png"
75 class="org.argeo.eclipse.spring.SpringExtensionFactory"
76 default="false">
77 </editor>
78 </extension>
79
80 <!-- COMMANDS -->
81 <extension
82 point="org.eclipse.ui.commands">
83 <command
84 defaultHandler="org.argeo.eclipse.ui.workbench.commands.OpenEditor"
85 id="org.argeo.eclipse.ui.workbench.openEditor"
86 name="Open an editor given its ID">
87 <commandParameter
88 id="param.jcrNodePath"
89 name="Node path">
90 </commandParameter>
91 <!-- The path to the corresponding node if needed. -->
92 <commandParameter
93 id="param.jcrNodePath"
94 name="Node path">
95 </commandParameter>
96 </command>
97 <command
98 defaultHandler="org.argeo.eclipse.ui.workbench.commands.GetNodeSize"
99 id="org.argeo.eclipse.ui.workbench.getNodeSize"
100 name="Get node size">
101 </command>
102 <command
103 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
104 id="org.argeo.eclipse.ui.workbench.addRemoteRepository"
105 name="Add remote JCR repository">
106 <!-- <commandParameter
107 id="param.repositoryUri"
108 name="Repository URI">
109 </commandParameter> -->
110 </command>
111 <command
112 defaultHandler="org.argeo.eclipse.ui.workbench.commands.RemoveRemoteRepository"
113 id="org.argeo.eclipse.ui.workbench.removeRemoteRepository"
114 name="Remove remote JCR repository">
115 </command>
116 <command
117 defaultHandler="org.argeo.eclipse.ui.workbench.commands.AddFolderNode"
118 id="org.argeo.eclipse.ui.workbench.addFolderNode"
119 name="Create a new folder">
120 </command>
121 <command
122 defaultHandler="org.argeo.eclipse.ui.workbench.commands.AddPrivileges"
123 id="org.argeo.eclipse.ui.workbench.addPrivileges"
124 name="Add Privileges">
125 </command>
126 <command
127 defaultHandler="org.argeo.eclipse.ui.workbench.commands.CreateWorkspace"
128 id="org.argeo.eclipse.ui.workbench.createWorkspace"
129 name="Create a new workspace">
130 </command>
131 <command
132 defaultHandler="org.argeo.eclipse.ui.workbench.commands.Refresh"
133 id="org.argeo.eclipse.ui.workbench.refresh"
134 name="Refresh">
135 </command>
136 <command
137 defaultHandler="org.argeo.eclipse.ui.workbench.commands.DeleteNodes"
138 id="org.argeo.eclipse.ui.workbench.deleteNodes"
139 name="Delete nodes">
140 </command>
141 <command
142 defaultHandler="org.argeo.eclipse.ui.workbench.commands.ImportFileSystem"
143 id="org.argeo.eclipse.ui.workbench.importFileSystem"
144 name="Import files...">
145 </command>
146 <!-- <command
147 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
148 id="org.argeo.eclipse.ui.workbench.openFile"
149 name="Open current file">
150 </command> -->
151 <command
152 defaultHandler="org.argeo.eclipse.ui.workbench.commands.DumpNode"
153 id="org.argeo.eclipse.ui.workbench.dumpNode"
154 name="Dump Current Selected Node">
155 </command>
156 <command
157 defaultHandler="org.argeo.eclipse.ui.workbench.commands.SortChildNodes"
158 id="org.argeo.eclipse.ui.workbench.sortChildNodes"
159 name="Sort node tree">
160 <!-- FIXME: default value does not work -->
161 <state
162 id="org.argeo.eclipse.ui.workbench.sortChildNodes.toggleState"
163 class="org.eclipse.ui.handlers.RegistryToggleState:true" >
164 <!-- <class class="org.eclipse.jface.commands.ToggleState">
165 <parameter
166 name="default"
167 value="true" />
168 </class> -->
169 </state>
170 </command>
171 </extension>
172
173 <!-- Menus -->
174 <extension point="org.eclipse.ui.menus">
175 <!-- Browser view specific menu -->
176 <menuContribution
177 locationURI="menu:org.argeo.eclipse.ui.workbench.jcrBrowserView">
178 <!-- See bug 149 -->
179 <!-- <command
180 commandId="org.argeo.eclipse.ui.workbench.openGenericJcrQueryEditor"
181 icon="icons/query.png"
182 style="push">
183 </command> -->
184 <command
185 commandId="org.argeo.eclipse.ui.workbench.addRemoteRepository"
186 icon="icons/addRepo.gif"
187 style="push">
188 </command>
189 <command
190 commandId="org.argeo.eclipse.ui.workbench.sortChildNodes"
191 icon="icons/sort.gif"
192 style="toggle"
193 label="Sort child nodes"
194 tooltip="NOTE: displaying unsorted nodes will enhance overall performances">
195 </command>
196 </menuContribution>
197 <!-- Browser view popup context menu -->
198 <menuContribution
199 locationURI="popup:org.argeo.eclipse.ui.workbench.jcrBrowserView">
200 <command
201 commandId="org.argeo.eclipse.ui.workbench.refresh"
202 icon="icons/refresh.png"
203 style="push">
204 </command>
205 <command
206 commandId="org.argeo.eclipse.ui.workbench.addFolderNode"
207 icon="icons/addFolder.gif"
208 label="Add Folder"
209 style="push">
210 <visibleWhen>
211 <iterate>
212 <and>
213 <or>
214 <instanceof
215 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem">
216 </instanceof>
217 <instanceof
218 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem">
219 </instanceof>
220 </or>
221 <with variable="activeMenuSelection"><count value="1"/></with>
222 </and>
223 </iterate>
224 </visibleWhen>
225 </command>
226 <command
227 commandId="org.argeo.eclipse.ui.workbench.addPrivileges"
228 icon="icons/addPrivileges.png"
229 label="Add Privileges"
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.createWorkspace"
249 icon="icons/addWorkspace.png"
250 label="Create Workspace"
251 style="push">
252 <visibleWhen>
253 <iterate>
254 <and>
255 <or>
256 <instanceof
257 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem">
258 </instanceof>
259 </or>
260 <with variable="activeMenuSelection"><count value="1"/></with>
261 </and>
262 </iterate>
263 </visibleWhen>
264 </command>
265 <command
266 commandId="org.argeo.eclipse.ui.workbench.deleteNodes"
267 icon="icons/remove.gif"
268 label="Delete Nodes"
269 style="push">
270 <visibleWhen>
271 <iterate>
272 <or>
273 <instanceof
274 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
275 <instanceof
276 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
277 </or>
278 </iterate>
279 </visibleWhen>
280 </command>
281 <command
282 commandId="org.argeo.eclipse.ui.workbench.importFileSystem"
283 icon="icons/import_fs.png"
284 style="push"
285 tooltip="Import files from the files sytem">
286 <visibleWhen>
287 <iterate>
288 <and>
289 <or>
290 <instanceof
291 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
292 <instanceof
293 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
294 </or>
295 <with variable="activeMenuSelection"><count value="1"/></with>
296 </and>
297 </iterate>
298 </visibleWhen>
299 </command>
300 <command
301 commandId="org.argeo.eclipse.ui.workbench.addRemoteRepository"
302 icon="icons/addRepo.gif"
303 style="push">
304 <visibleWhen>
305 <iterate>
306 <or>
307 <instanceof
308 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoriesElem" />
309 <instanceof
310 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RepositoryElem" />
311 </or>
312 </iterate>
313 </visibleWhen>
314 </command>
315 <command
316 commandId="org.argeo.eclipse.ui.workbench.removeRemoteRepository"
317 icon="icons/remove.gif"
318 style="push">
319 <visibleWhen>
320 <iterate>
321 <or>
322 <instanceof
323 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.RemoteRepositoryElem" />
324 </or>
325 </iterate>
326 </visibleWhen>
327 </command>
328 <command
329 commandId="org.argeo.eclipse.ui.workbench.getNodeSize"
330 icon="icons/getSize.gif"
331 style="push">
332 <visibleWhen>
333 <iterate>
334 <or>
335 <instanceof
336 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem" />
337 <instanceof
338 value="org.argeo.eclipse.ui.workbench.jcr.internal.model.WorkspaceElem" />
339 </or>
340 </iterate>
341 </visibleWhen>
342 </command>
343 <command
344 commandId="org.argeo.eclipse.ui.workbench.dumpNode"
345 icon="icons/dumpNode.gif"
346 label="Dump Node"
347 style="push">
348 <visibleWhen>
349 <iterate> <and>
350 <instanceof value="org.argeo.eclipse.ui.workbench.jcr.internal.model.SingleJcrNodeElem"></instanceof>
351 <with variable="activeMenuSelection"><count value="1"/></with>
352 </and> </iterate>
353 </visibleWhen>
354 </command>
355 </menuContribution>
356 </extension>
357
358 <!-- Reduce visibility of JCR Browser perspective to users that are in ROLE_ADMIN -->
359 <extension
360 point="org.eclipse.ui.activities">
361 <activity
362 description="Only for admins"
363 id="org.argeo.eclipse.ui.workbench.adminActivity"
364 name="Jcr Technical Admin">
365 <enabledWhen>
366 <with variable="roles">
367 <iterate ifEmpty="false" operator="or">
368 <equals value="ROLE_ADMIN" />
369 </iterate>
370 </with>
371 </enabledWhen>
372 </activity>
373 <activityPatternBinding
374 pattern="org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.osgiPerspective"
375 isEqualityPattern="true"
376 activityId="org.argeo.eclipse.ui.workbench.adminActivity">
377 <!-- activityId="org.argeo.security.ui.adminActivity" -->
378 </activityPatternBinding>
379 <activityPatternBinding
380 pattern="org.argeo.eclipse.ui.workbench/org.argeo.eclipse.ui.workbench.jcrBrowserPerspective"
381 isEqualityPattern="true"
382 activityId="org.argeo.eclipse.ui.workbench.adminActivity">
383 </activityPatternBinding>
384 </extension>
385 </plugin>