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