]> git.argeo.org Git - lgpl/argeo-commons.git/blob - plugin.xml
67b87515f68d5ec3cf2975ea2ffefbcd001705d3
[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 class="org.argeo.jcr.ui.explorer.JcrExplorerPerspective"
9 icon="icons/nodes.gif"
10 id="org.argeo.jcr.ui.explorer.perspective"
11 name="Data Explorer">
12 </perspective>
13 </extension>
14 <!-- Views -->
15 <extension
16 point="org.eclipse.ui.views">
17 <view
18 class="org.argeo.eclipse.spring.SpringExtensionFactory"
19 icon="icons/browser.gif"
20 id="org.argeo.jcr.ui.explorer.browserView"
21 name="JCR Browser">
22 </view>
23 </extension>
24 <!-- Editors -->
25 <extension
26 point="org.eclipse.ui.editors">
27 <editor
28 class="org.argeo.eclipse.spring.SpringExtensionFactory"
29 id="org.argeo.jcr.ui.explorer.genericJcrQueryEditor"
30 name="JCR Query"
31 icon="icons/query.png"
32 default="false">
33 </editor>
34 <editor
35 class="org.argeo.eclipse.spring.SpringExtensionFactory"
36 id="org.argeo.jcr.ui.explorer.genericNodeEditor"
37 name="Node Editor"
38 icon="icons/query.png"
39 default="false">
40 </editor>
41 </extension>
42 <!-- Commands -->
43 <extension
44 point="org.eclipse.ui.commands">
45 <command
46 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
47 id="org.argeo.jcr.ui.explorer.openGenericJcrQueryEditor"
48 name="New generic JCR query">
49 </command>
50 <command
51 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
52 id="org.argeo.jcr.ui.explorer.openGenericNodeEditor"
53 name="Open generic node Editor">
54 <commandParameter
55 id="org.argeo.jcr.ui.explorer.nodePath"
56 name="Node path">
57 </commandParameter>
58 </command>
59 <command
60 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
61 id="org.argeo.jcr.ui.explorer.getNodeSize"
62 name="Get node size">
63 </command>
64 <command
65 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
66 id="org.argeo.jcr.ui.explorer.addRemoteRepository"
67 name="Add remote JCR repository">
68 <commandParameter
69 id="org.argeo.jcr.ui.explorer.repositoryUri"
70 name="Repository URI">
71 </commandParameter>
72 </command>
73 <command
74 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
75 id="org.argeo.jcr.ui.explorer.removeRemoteRepository"
76 name="Remove remote JCR repository">
77 </command>
78 <command
79 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
80 id="org.argeo.jcr.ui.explorer.addFolderNode"
81 name="Create a new folder">
82 </command>
83 <command
84 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
85 id="org.argeo.jcr.ui.explorer.addPrivileges"
86 name="Add Privileges">
87 </command>
88 <command
89 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
90 id="org.argeo.jcr.ui.explorer.createWorkspace"
91 name="Create a new workspace">
92 </command>
93 <command
94 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
95 id="org.argeo.jcr.ui.explorer.refresh"
96 name="Refresh">
97 </command>
98 <command
99 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
100 id="org.argeo.jcr.ui.explorer.deleteNodes"
101 name="Delete nodes">
102 </command>
103 <command
104 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
105 id="org.argeo.jcr.ui.explorer.importFileSystem"
106 name="Import files...">
107 </command>
108 <!-- <command
109 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
110 id="org.argeo.jcr.ui.explorer.openFile"
111 name="Open current file">
112 </command>
113 -->
114 <command
115 defaultHandler="org.argeo.jcr.ui.explorer.commands.DumpNode"
116 id="org.argeo.jcr.ui.explorer.dumpNode"
117 name="Dump Current Selected Node">
118 </command>
119 <command
120 defaultHandler="org.argeo.jcr.ui.explorer.commands.SortChildNodes"
121 id="org.argeo.jcr.ui.explorer.sortChildNodes"
122 name="Sort node tree">
123 <!-- FIXME: default value does not work -->
124 <state
125 id="org.argeo.jcr.ui.explorer.sortChildNodes.toggleState"
126 class="org.eclipse.ui.handlers.RegistryToggleState:true" >
127 <!-- <class class="org.eclipse.jface.commands.ToggleState">
128 <parameter
129 name="default"
130 value="true" />
131 </class> -->
132 </state>
133 </command>
134 </extension>
135
136 <!-- Menus -->
137 <extension point="org.eclipse.ui.menus">
138 <!-- Browser view specific menu -->
139 <menuContribution
140 locationURI="menu:org.argeo.jcr.ui.explorer.browserView">
141 <!-- See bug 149 -->
142 <!-- <command
143 commandId="org.argeo.jcr.ui.explorer.openGenericJcrQueryEditor"
144 icon="icons/query.png"
145 style="push">
146 </command> -->
147 <command
148 commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
149 icon="icons/addRepo.gif"
150 style="push">
151 </command>
152 <command
153 commandId="org.argeo.jcr.ui.explorer.sortChildNodes"
154 icon="icons/sort.gif"
155 style="toggle"
156 label="Sort child nodes"
157 tooltip="Warning: stopping to sort children nodes might enhance overall performances">
158 </command>
159 </menuContribution>
160 <!-- Browser view popup context menu -->
161 <menuContribution
162 locationURI="popup:org.argeo.jcr.ui.explorer.browserView">
163 <command
164 commandId="org.argeo.jcr.ui.explorer.refresh"
165 icon="icons/refresh.png"
166 style="push">
167 </command>
168 <command
169 commandId="org.argeo.jcr.ui.explorer.addFolderNode"
170 icon="icons/addFolder.gif"
171 label="Add Folder"
172 style="push">
173 <visibleWhen>
174 <iterate>
175 <and>
176 <or>
177 <instanceof
178 value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem">
179 </instanceof>
180 <instanceof
181 value="org.argeo.jcr.ui.explorer.model.WorkspaceElem">
182 </instanceof>
183 </or>
184 <with variable="activeMenuSelection"><count value="1"/></with>
185 </and>
186 </iterate>
187 </visibleWhen>
188 </command>
189 <command
190 commandId="org.argeo.jcr.ui.explorer.addPrivileges"
191 icon="icons/addPrivileges.png"
192 label="Add Privileges"
193 style="push">
194 <visibleWhen>
195 <iterate>
196 <and>
197 <or>
198 <instanceof
199 value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem">
200 </instanceof>
201 <instanceof
202 value="org.argeo.jcr.ui.explorer.model.WorkspaceElem">
203 </instanceof>
204 </or>
205 <with variable="activeMenuSelection"><count value="1"/></with>
206 </and>
207 </iterate>
208 </visibleWhen>
209 </command>
210 <command
211 commandId="org.argeo.jcr.ui.explorer.createWorkspace"
212 icon="icons/addWorkspace.png"
213 label="Create Workspace"
214 style="push">
215 <visibleWhen>
216 <iterate>
217 <and>
218 <or>
219 <instanceof
220 value="org.argeo.jcr.ui.explorer.model.RepositoryElem">
221 </instanceof>
222 </or>
223 <with variable="activeMenuSelection"><count value="1"/></with>
224 </and>
225 </iterate>
226 </visibleWhen>
227 </command>
228 <command
229 commandId="org.argeo.jcr.ui.explorer.deleteNodes"
230 icon="icons/remove.gif"
231 label="Delete Nodes"
232 style="push">
233 <visibleWhen>
234 <iterate>
235 <or>
236 <instanceof
237 value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem" />
238 <instanceof
239 value="org.argeo.jcr.ui.explorer.model.WorkspaceElem" />
240 </or>
241 </iterate>
242 </visibleWhen>
243 </command>
244 <command
245 commandId="org.argeo.jcr.ui.explorer.importFileSystem"
246 icon="icons/import_fs.png"
247 style="push"
248 tooltip="Import files from the files sytem">
249 <visibleWhen>
250 <iterate>
251 <and>
252 <or>
253 <instanceof
254 value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem" />
255 <instanceof
256 value="org.argeo.jcr.ui.explorer.model.WorkspaceElem" />
257 </or>
258 <with variable="activeMenuSelection"><count value="1"/></with>
259 </and>
260 </iterate>
261 </visibleWhen>
262 </command>
263 <command
264 commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
265 icon="icons/addRepo.gif"
266 style="push">
267 <visibleWhen>
268 <iterate>
269 <or>
270 <instanceof
271 value="org.argeo.jcr.ui.explorer.model.RepositoriesElem" />
272 <instanceof
273 value="org.argeo.jcr.ui.explorer.model.RepositoryElem" />
274 </or>
275 </iterate>
276 </visibleWhen>
277 </command>
278 <command
279 commandId="org.argeo.jcr.ui.explorer.removeRemoteRepository"
280 icon="icons/remove.gif"
281 style="push">
282 <visibleWhen>
283 <iterate>
284 <or>
285 <instanceof
286 value="org.argeo.jcr.ui.explorer.model.RemoteRepositoryElem" />
287 </or>
288 </iterate>
289 </visibleWhen>
290 </command>
291 <command
292 commandId="org.argeo.jcr.ui.explorer.getNodeSize"
293 icon="icons/getSize.gif"
294 style="push">
295 <visibleWhen>
296 <iterate>
297 <or>
298 <instanceof
299 value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem" />
300 <instanceof
301 value="org.argeo.jcr.ui.explorer.model.WorkspaceElem" />
302 </or>
303 </iterate>
304 </visibleWhen>
305 </command>
306 <command
307 commandId="org.argeo.jcr.ui.explorer.dumpNode"
308 icon="icons/dumpNode.gif"
309 label="Dump Node"
310 style="push">
311 <visibleWhen>
312 <iterate>
313 <and>
314 <instanceof value="org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem"></instanceof>
315 <with variable="activeMenuSelection"><count value="1"/></with>
316 </and>
317 </iterate>
318 </visibleWhen>
319 </command>
320
321 </menuContribution>
322 </extension>
323
324 <!-- Reduce visibility of JCR Explorer perspective to users that are in ROLE_ADMIN -->
325 <extension
326 point="org.eclipse.ui.activities">
327 <activity
328 description="Only for admins"
329 id="org.argeo.jcr.ui.explorer.adminActivity"
330 name="Jcr Technical Admin">
331 <enabledWhen>
332 <with variable="roles">
333 <iterate ifEmpty="false" operator="or">
334 <equals value="ROLE_ADMIN" />
335 </iterate>
336 </with>
337 </enabledWhen>
338 </activity>
339 <activityPatternBinding
340 activityId="org.argeo.jcr.ui.explorer.adminActivity"
341 isEqualityPattern="true"
342 pattern="org.argeo.jcr.ui.explorer/org.argeo.jcr.ui.explorer.perspective">
343 </activityPatternBinding>
344 </extension>
345
346 <!-- Core expression definition
347 <extension
348 point="org.eclipse.core.expressions.definitions">
349 <definition
350 id="expression.onlyOneItemSelected">
351 <with
352 variable="activeMenuSelection">
353 <count
354 value="1">
355 </count>
356 </with>
357 </definition>
358 </extension>
359 -->
360 </plugin>