]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/plugins/org.argeo.jcr.ui.explorer/plugin.xml
Password based encryption
[lgpl/argeo-commons.git] / server / plugins / org.argeo.jcr.ui.explorer / 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="JCR 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 <commandParameter
64 id="org.argeo.jcr.ui.explorer.nodePath"
65 name="Node path">
66 </commandParameter>
67 </command>
68
69 <command
70 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
71 id="org.argeo.jcr.ui.explorer.addRemoteRepository"
72 name="Add remote JCR repository">
73 <commandParameter
74 id="org.argeo.jcr.ui.explorer.repositoryUri"
75 name="Repository URI">
76 </commandParameter>
77 </command>
78 <command
79 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
80 id="org.argeo.jcr.ui.explorer.addFolderNode"
81 name="Create the new folder">
82 </command>
83 <command
84 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
85 id="org.argeo.jcr.ui.explorer.refresh"
86 name="Refresh">
87 </command>
88 <command
89 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
90 id="org.argeo.jcr.ui.explorer.deleteNodes"
91 name="Delete nodes">
92 </command>
93 <command
94 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
95 id="org.argeo.jcr.ui.explorer.importFileSystem"
96 name="Import files...">
97 </command>
98 <command
99 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
100 id="org.argeo.jcr.ui.explorer.openFile"
101 name="Open current file">
102 </command>
103 </extension>
104
105 <!-- Menus -->
106 <extension point="org.eclipse.ui.menus">
107 <menuContribution
108 locationURI="menu:org.argeo.jcr.ui.explorer.browserView">
109 <command
110 commandId="org.argeo.jcr.ui.explorer.openGenericJcrQueryEditor"
111 icon="icons/query.png"
112 style="push">
113 </command>
114 </menuContribution>
115 <menuContribution
116 locationURI="menu:org.argeo.jcr.ui.explorer.browserView">
117 <command
118 commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
119 icon="icons/addRepo.gif"
120 style="push">
121 </command>
122 </menuContribution>
123 <menuContribution
124 locationURI="popup:org.argeo.jcr.ui.explorer.browserView">
125 <command
126 commandId="org.argeo.jcr.ui.explorer.refresh"
127 icon="icons/refresh.png"
128 style="push">
129 </command>
130 <command
131 commandId="org.argeo.jcr.ui.explorer.addFolderNode"
132 icon="icons/addFolder.gif"
133 label="%addNewFolderCmdLbl"
134 style="push">
135 <visibleWhen>
136 <iterate>
137 <and>
138 <or>
139 <instanceof
140 value="org.argeo.jcr.ui.explorer.model.SingleJcrNode">
141 </instanceof>
142 <instanceof
143 value="org.argeo.jcr.ui.explorer.model.WorkspaceNode">
144 </instanceof>
145 </or>
146 <reference
147 definitionId="expression.onlyOneItemSelected">
148 </reference>
149 </and>
150 </iterate>
151 </visibleWhen>
152 </command>
153 <command
154 commandId="org.argeo.jcr.ui.explorer.deleteNodes"
155 icon="icons/remove.gif"
156 style="push">
157 <visibleWhen>
158 <iterate>
159 <or>
160 <instanceof
161 value="org.argeo.jcr.ui.explorer.model.SingleJcrNode">
162 </instanceof>
163 <instanceof
164 value="org.argeo.jcr.ui.explorer.model.WorkspaceNode">
165 </instanceof>
166 </or>
167 </iterate>
168 </visibleWhen>
169 </command>
170 <command
171 commandId="org.argeo.jcr.ui.explorer.importFileSystem"
172 icon="icons/import_fs.png"
173 style="push"
174 tooltip="Import files from the files sytem to the repository">
175 <visibleWhen>
176 <iterate>
177 <and>
178 <or>
179 <instanceof
180 value="org.argeo.jcr.ui.explorer.model.SingleJcrNode">
181 </instanceof>
182 <instanceof
183 value="org.argeo.jcr.ui.explorer.model.WorkspaceNode">
184 </instanceof>
185 </or>
186 <with
187 variable="activeMenuSelection">
188 <count
189 value="1">
190 </count>
191 </with>
192 </and>
193 </iterate>
194 </visibleWhen>
195 </command>
196 <command
197 commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
198 icon="icons/addRepo.gif"
199 style="push">
200 <visibleWhen>
201 <iterate>
202 <or>
203 <instanceof
204 value="org.argeo.jcr.ui.explorer.model.RepositoriesNode">
205 </instanceof>
206 <instanceof
207 value="org.argeo.jcr.ui.explorer.model.RepositoryNode">
208 </instanceof>
209 </or>
210 </iterate>
211 </visibleWhen>
212 </command>
213 <command
214 commandId="org.argeo.jcr.ui.explorer.getNodeSize"
215 icon="icons/getSize.gif"
216 style="push">
217 <visibleWhen>
218 <iterate>
219 <or>
220 <instanceof
221 value="org.argeo.jcr.ui.explorer.model.SingleJcrNode">
222 </instanceof>
223 <instanceof
224 value="org.argeo.jcr.ui.explorer.model.WorkspaceNode">
225 </instanceof>
226 </or>
227 </iterate>
228 </visibleWhen>
229 </command>
230 </menuContribution>
231 </extension>
232
233 <!-- Core expression definition -->
234
235 <extension
236 point="org.eclipse.core.expressions.definitions">
237 <definition
238 id="expression.onlyOneItemSelected">
239 <with
240 variable="activeMenuSelection">
241 <count
242 value="1">
243 </count>
244 </with>
245 </definition>
246 </extension>
247
248 <extension
249 point="org.eclipse.ui.activities">
250 <activity
251 description="Only for admins"
252 id="org.argeo.jcr.ui.explorer.adminActivity"
253 name="Admin">
254 <enabledWhen>
255 <with variable="roles">
256 <iterate ifEmpty="false" operator="or">
257 <equals value="ROLE_ADMIN" />
258 </iterate>
259 </with>
260 </enabledWhen>
261 </activity>
262 <!-- TODO: find a way to exclude evrything -->
263 <activityPatternBinding
264 activityId="org.argeo.jcr.ui.explorer.adminActivity"
265 isEqualityPattern="true"
266 pattern="org.argeo.jcr.ui.explorer/org.argeo.jcr.ui.explorer.perspective">
267 </activityPatternBinding>
268 </extension>
269 </plugin>