]> git.argeo.org Git - gpl/argeo-slc.git/blob - plugins/org.argeo.slc.client.ui.dist/plugin.xml
prevent adding a subfolder when user typed name contains a slash
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / 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="SLC Repo"
9 class="org.argeo.slc.client.ui.dist.DistributionPerspective"
10 id="org.argeo.slc.client.ui.dist.distributionPerspective"
11 icon="icons/distribution_perspective.gif">
12 </perspective>
13 <perspective
14 name="SLC Distribution"
15 class="org.argeo.slc.client.ui.dist.AnonymousDistributionPerspective"
16 id="org.argeo.slc.client.ui.dist.anonymousDistributionPerspective"
17 icon="icons/repo.gif">
18 </perspective>
19 </extension>
20 <!-- Views -->
21 <extension
22 point="org.eclipse.ui.views">
23 <view
24 class="org.argeo.eclipse.spring.SpringExtensionFactory"
25 id="org.argeo.slc.client.ui.dist.distributionsView"
26 icon="icons/search.gif"
27 name="Distributions">
28 </view>
29 <view
30 class="org.argeo.eclipse.spring.SpringExtensionFactory"
31 id="org.argeo.slc.client.ui.dist.anonymousDistributionsView"
32 icon="icons/search.gif"
33 name="Public Repository">
34 </view>
35 <view
36 class="org.argeo.slc.client.ui.dist.views.HelpView"
37 id="org.argeo.slc.client.ui.dist.helpView"
38 icon="icons/help.gif"
39 name="Infos">
40 </view>
41 <view
42 class="org.argeo.eclipse.spring.SpringExtensionFactory"
43 id="org.argeo.slc.client.ui.dist.artifactsBrowser"
44 icon="icons/packageBrowser.gif"
45 name="Artifacts browser">
46 </view>
47 <view
48 class="org.argeo.eclipse.spring.SpringExtensionFactory"
49 id="org.argeo.slc.client.ui.dist.queryArtifactsForm"
50 icon="icons/searchForm.gif"
51 name="Artifacts Form">
52 </view>
53 <view
54 class="org.argeo.eclipse.spring.SpringExtensionFactory"
55 id="org.argeo.slc.client.ui.dist.queryBundlesForm"
56 icon="icons/searchForm.gif"
57 name="Bundles Form">
58 </view>
59 <view
60 class="org.argeo.eclipse.spring.SpringExtensionFactory"
61 id="org.argeo.slc.client.ui.dist.queryArtifactsText"
62 icon="icons/search.gif"
63 name="Query builder">
64 </view>
65 <view
66 name="Progress View"
67 icon="icons/pview.gif"
68 category="org.eclipse.ui"
69 class="org.eclipse.ui.ExtensionFactory:progressView"
70 id="org.eclipse.ui.views.ProgressView">
71 </view>
72 </extension>
73 <!-- Editors -->
74 <extension
75 point="org.eclipse.ui.editors">
76 <editor
77 class="org.argeo.slc.client.ui.dist.editors.GenericBundleEditor"
78 id="org.argeo.slc.client.ui.dist.genericBundleEditor"
79 name="Bundle editor"
80 icon="icons/artifactVersionBase.gif"
81 default="false">
82 </editor>
83 <editor
84 class="org.argeo.slc.client.ui.dist.editors.DistributionEditor"
85 id="org.argeo.slc.client.ui.dist.distributionEditor"
86 name="Distribution editor"
87 icon="icons/distribution_perspective.gif"
88 default="false">
89 </editor>
90 </extension>
91 <!-- Commands -->
92 <extension
93 point="org.eclipse.ui.commands">
94 <!-- Command which do not need dependency injection -->
95 <command
96 defaultHandler="org.argeo.slc.client.ui.dist.commands.RefreshArtifactBrowser"
97 id="org.argeo.slc.client.ui.dist.refreshArtifactBrowser"
98 name="Refresh Artifact Browser">
99 </command>
100 <command
101 defaultHandler="org.argeo.slc.client.ui.dist.commands.DisplayRepoInformation"
102 id="org.argeo.slc.client.ui.dist.displayRepoInformation"
103 name="Display repo info">
104 </command>
105 <command
106 defaultHandler="org.argeo.slc.client.ui.dist.commands.ShowSizeColumn"
107 id="org.argeo.slc.client.ui.dist.showSizeColumn"
108 name="Show size column">
109 <state
110 id="org.argeo.slc.client.ui.dist.showSizeColumn.toggleState">
111 <class class="org.eclipse.jface.commands.ToggleState">
112 <parameter
113 name="default"
114 value="true" />
115 </class>
116 </state>
117 </command>
118
119 <!-- Command with Spring dependency injection -->
120 <command
121 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
122 id="org.argeo.slc.client.ui.dist.unregisterRemoteRepo"
123 name="Unregister remote repository">
124 <commandParameter
125 id="org.argeo.slc.client.ui.dist.repoNodePath"
126 name="Remote Repo path">
127 </commandParameter>
128 </command>
129 <command
130 id="org.argeo.slc.client.ui.dist.runInOSGi"
131 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
132 name="Run in OSGi">
133 <commandParameter
134 id="workspace"
135 name="Workspace Name">
136 </commandParameter>
137 </command>
138 <command
139 id="org.argeo.slc.client.ui.dist.registerRepository"
140 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
141 name="Add Repository">
142 </command>
143
144 <command
145 id="org.argeo.slc.client.ui.dist.fetch"
146 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
147 name="Fetch repository">
148 <commandParameter
149 id="targetRepoPath"
150 name="Target repo uri">
151 </commandParameter>
152 </command>
153
154 <!-- TO MANIPULATE WORKSPACES -->
155 <!-- Workspaces CRUD -->
156 <command
157 id="org.argeo.slc.client.ui.dist.createWorkspace"
158 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
159 name="Create Workspace">
160 <commandParameter
161 id="workspacePrefix"
162 name="Workspace prefix">
163 </commandParameter>
164 <commandParameter
165 id="targetRepoPath"
166 name="Target repo node path">
167 </commandParameter>
168 </command>
169 <command
170 id="org.argeo.slc.client.ui.dist.deleteWorkspace"
171 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
172 name="Delete chosen Workspace">
173 <commandParameter
174 id="workspaceName"
175 name="Workspace name">
176 </commandParameter>
177 <commandParameter
178 id="targetRepoPath"
179 name="Target repo node path">
180 </commandParameter>
181 </command>
182 <command
183 id="org.argeo.slc.client.ui.dist.publishWorkspace"
184 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
185 name="Publish selected workspace">
186 <commandParameter
187 id="workspaceName"
188 name="Workspace name">
189 </commandParameter>
190 <commandParameter
191 id="targetRepoPath"
192 name="Target repo node path">
193 </commandParameter>
194 </command>
195 <command
196 id="org.argeo.slc.client.ui.dist.normalizeDistribution"
197 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
198 name="Normalize Distribution">
199 <commandParameter
200 id="workspaceName"
201 name="Workspace name">
202 </commandParameter>
203 <commandParameter
204 id="targetRepoPath"
205 name="Target repo node path">
206 </commandParameter>
207 </command>
208 <command
209 id="org.argeo.slc.client.ui.dist.copyWorkspace"
210 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
211 name="Copy chosen Workspace">
212 <commandParameter
213 id="srcWkspName"
214 name="Source Workspace Name">
215 </commandParameter>
216 <commandParameter
217 id="targetRepoPath"
218 name="Target repo node path">
219 </commandParameter>
220 </command>
221 <command
222 id="org.argeo.slc.client.ui.dist.mergeWorkspaces"
223 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
224 name="Copy chosen Workspace">
225 <commandParameter
226 id="srcWkspName"
227 name="Source Workspace Name">
228 </commandParameter>
229 <commandParameter
230 id="srcRepoPath"
231 name="Source Repo Node path ">
232 </commandParameter>
233 <commandParameter
234 id="targetWkspName"
235 name="Target Workspace Name">
236 </commandParameter>
237 <commandParameter
238 id="targetRepoPath"
239 name="Target repo node path">
240 </commandParameter>
241 </command>
242 <command
243 id="org.argeo.slc.client.ui.dist.manageWorkspaceAuth"
244 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
245 name="Manage workspace authorizations">
246 <commandParameter
247 id="org.argeo.slc.client.ui.dist.workspaceName"
248 name="Workspace Name">
249 </commandParameter>
250 </command>
251 <command
252 id="org.argeo.slc.client.ui.dist.refreshDistributionsView"
253 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
254 name="Refresh Distributions View">
255 </command>
256 <command
257 id="org.argeo.slc.client.ui.dist.refreshDistributionOverviewPage"
258 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
259 name="Refresh distribution overview page">
260 </command>
261 <command
262 id="org.argeo.slc.client.ui.dist.deleteArtifacts"
263 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
264 name="Remove selected artifacts">
265 </command>
266 </extension>
267 <extension
268 id="menu:org.eclipse.ui.main.menu"
269 point="org.eclipse.ui.menus">
270
271 <!-- View Specific Menus -->
272 <menuContribution
273 locationURI="toolbar:org.argeo.slc.client.ui.dist.artifactsBrowser">
274 <command
275 commandId="org.argeo.slc.client.ui.dist.showSizeColumn"
276 icon="icons/showSize.gif"
277 style="toggle"
278 label="Show sizes"
279 tooltip="Warning: showing size column might reduce overall browser reactivity">
280 </command>
281 <command
282 commandId="org.argeo.slc.client.ui.dist.refreshArtifactBrowser"
283 icon="icons/refresh.png"
284 label="Refresh"
285 tooltip="Refresh the whole browser">
286 </command>
287 </menuContribution>
288 <menuContribution
289 locationURI="toolbar:org.argeo.slc.client.ui.dist.distributionsView">
290 <command
291 commandId="org.argeo.slc.client.ui.dist.registerRepository"
292 icon="icons/addRepo.gif"
293 label="Register repository"
294 tooltip="Register a remote repository">
295 </command>
296 <command
297 commandId="org.argeo.slc.client.ui.dist.refreshDistributionsView"
298 icon="icons/refresh.png"
299 label="Refresh"
300 tooltip="Refresh distributions view">
301 </command>
302 <!--
303 <command
304 commandId="org.argeo.slc.client.ui.dist.runInOSGi"
305 icon="icons/showSize.gif"
306 label="Run in OSGi"
307 tooltip="Run in a spearate OSGi runtime">
308 </command>
309 -->
310 </menuContribution>
311 <menuContribution
312 locationURI="toolbar:org.argeo.slc.client.ui.dist.anonymousDistributionsView">
313 <command
314 commandId="org.argeo.slc.client.ui.dist.refreshDistributionsView"
315 icon="icons/refresh.png"
316 label="Refresh"
317 tooltip="Refresh distributions view">
318 </command>
319 </menuContribution>
320 <!-- Queries -->
321 <!-- <menuContribution
322 allPopups="false"
323 locationURI="menu:org.eclipse.ui.main.menu?after=edit">
324 <menu label="Queries"
325 mnemonic="Queries"
326 id="org.argeo.slc.client.ui.dist.queryMenu">
327 <command
328 commandId="org.argeo.slc.client.ui.dist.openGenericJcrQueryEditor"
329 disabledIcon="icons/saveDisabled.gif"
330 icon="icons/results.gif"
331 label="JCR Query"
332 style="push"
333 tooltip="Open JCR query editor">
334 </command>
335 </menu>
336 </menuContribution> -->
337 </extension>
338 <extension
339 point="org.eclipse.ui.activities">
340 <!-- TODO: find a way to exclude evrything -->
341 <activityPatternBinding
342 activityId="org.argeo.slc.client.ui.slcActivity"
343 isEqualityPattern="true"
344 pattern="org.argeo.slc.client.ui.dist/org.argeo.slc.client.ui.dist.distributionPerspective">
345 </activityPatternBinding>
346 <activityPatternBinding
347 activityId="org.argeo.security.ui.adminActivity"
348 isEqualityPattern="true"
349 pattern="org.argeo.slc.client.ui.dist/org.argeo.slc.client.ui.dist.distributionPerspective">
350 </activityPatternBinding>
351 </extension>
352 </plugin>