]> git.argeo.org Git - gpl/argeo-slc.git/blob - plugin.xml
8521a2271b1414fb251e7346c5b5d43f900d0da2
[gpl/argeo-slc.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 name="SLC Distribution"
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 </extension>
14 <!-- Views -->
15 <extension
16 point="org.eclipse.ui.views">
17 <view
18 class="org.argeo.eclipse.spring.SpringExtensionFactory"
19 id="org.argeo.slc.client.ui.dist.artifactsBrowser"
20 icon="icons/packageBrowser.gif"
21 name="Artifacts browser">
22 </view>
23 <view
24 class="org.argeo.eclipse.spring.SpringExtensionFactory"
25 id="org.argeo.slc.client.ui.dist.queryArtifactsForm"
26 icon="icons/searchForm.gif"
27 name="Artifacts Form">
28 </view>
29 <view
30 class="org.argeo.eclipse.spring.SpringExtensionFactory"
31 id="org.argeo.slc.client.ui.dist.queryBundlesForm"
32 icon="icons/searchForm.gif"
33 name="Bundles Form">
34 </view>
35 <view
36 class="org.argeo.eclipse.spring.SpringExtensionFactory"
37 id="org.argeo.slc.client.ui.dist.queryArtifactsText"
38 icon="icons/search.gif"
39 name="Query builder">
40 </view>
41 <view
42 class="org.argeo.eclipse.spring.SpringExtensionFactory"
43 id="org.argeo.slc.client.ui.dist.distributionsView"
44 icon="icons/search.gif"
45 name="Distributions">
46 </view>
47 <view
48 name="Progress View"
49 icon="icons/pview.gif"
50 category="org.eclipse.ui"
51 class="org.eclipse.ui.ExtensionFactory:progressView"
52 id="org.eclipse.ui.views.ProgressView">
53 </view>
54 </extension>
55 <!-- Editors -->
56 <extension
57 point="org.eclipse.ui.editors">
58 <editor
59 class="org.argeo.slc.client.ui.dist.editors.GenericBundleEditor"
60 id="org.argeo.slc.client.ui.dist.genericBundleEditor"
61 name="Bundle editor"
62 icon="icons/artifactVersionBase.gif"
63 default="false">
64 </editor>
65 <editor
66 class="org.argeo.slc.client.ui.dist.editors.DistributionEditor"
67 id="org.argeo.slc.client.ui.dist.distributionEditor"
68 name="Distribution editor"
69 icon="icons/distribution_perspective.gif"
70 default="false">
71 </editor>
72 </extension>
73 <!-- Commands -->
74 <extension
75 point="org.eclipse.ui.commands">
76 <!-- Command which do not need dependency injection -->
77 <command
78 defaultHandler="org.argeo.slc.client.ui.dist.commands.RefreshArtifactBrowser"
79 id="org.argeo.slc.client.ui.dist.refreshArtifactBrowser"
80 name="Refresh Artifact Browser">
81 </command>
82 <command
83 defaultHandler="org.argeo.slc.client.ui.dist.commands.DisplayRepoInformation"
84 id="org.argeo.slc.client.ui.dist.displayRepoInformation"
85 name="Display repo info">
86 </command>
87 <!-- Workspaces CRUD -->
88 <command
89 defaultHandler="org.argeo.slc.client.ui.dist.commands.PublishWorkspace"
90 id="org.argeo.slc.client.ui.dist.publishWorkspace"
91 name="Publish selected workspace">
92 </command>
93 <command
94 id="org.argeo.slc.client.ui.dist.createWorkspace"
95 defaultHandler="org.argeo.slc.client.ui.dist.commands.CreateWorkspace"
96 name="Create Workspace">
97 </command>
98 <command
99 id="org.argeo.slc.client.ui.dist.deleteWorkspace"
100 defaultHandler="org.argeo.slc.client.ui.dist.commands.DeleteWorkspace"
101 name="Delete chosen Workspace">
102 </command>
103 <command
104 defaultHandler="org.argeo.slc.client.ui.dist.commands.ShowSizeColumn"
105 id="org.argeo.slc.client.ui.dist.showSizeColumn"
106 name="Show size column">
107 <state
108 id="org.argeo.slc.client.ui.dist.showSizeColumn.toggleState">
109 <class class="org.eclipse.jface.commands.ToggleState">
110 <parameter
111 name="default"
112 value="true" />
113 </class>
114 </state>
115 </command>
116
117
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
130 <command
131 id="org.argeo.slc.client.ui.dist.runInOSGi"
132 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
133 name="Run in OSGi">
134 <commandParameter
135 id="workspace"
136 name="Workspace Name">
137 </commandParameter>
138 </command>
139 <command
140 id="org.argeo.slc.client.ui.dist.normalizeDistribution"
141 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
142 name="Normalize Distribution">
143 <commandParameter
144 id="workspace"
145 name="Workspace Name">
146 </commandParameter>
147 </command>
148 <command
149 id="org.argeo.slc.client.ui.dist.registerRepository"
150 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
151 name="Add Repository">
152 </command>
153
154 <command
155 id="org.argeo.slc.client.ui.dist.fetch"
156 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
157 name="Fetch repository">
158 <commandParameter
159 id="targetRepoPath"
160 name="Target repo path">
161 </commandParameter>
162 </command>
163
164 <!-- TO MANIPULATE WORKSPACES -->
165 <command
166 id="org.argeo.slc.client.ui.dist.copyWorkspace"
167 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
168 name="Copy chosen Workspace">
169 <commandParameter
170 id="org.argeo.slc.client.ui.dist.workspaceName"
171 name="Workspace Name">
172 </commandParameter>
173 </command>
174 <command
175 id="org.argeo.slc.client.ui.dist.manageWorkspaceAuth"
176 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
177 name="Manage workspace authorizations">
178 <commandParameter
179 id="org.argeo.slc.client.ui.dist.workspaceName"
180 name="Workspace Name">
181 </commandParameter>
182 </command>
183 <command
184 id="org.argeo.slc.client.ui.dist.refreshDistributionsView"
185 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
186 name="Refresh Distributions View">
187 </command>
188 <command
189 id="org.argeo.slc.client.ui.dist.refreshDistributionOverviewPage"
190 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
191 name="Refresh distribution overview page">
192 </command>
193 <command
194 id="org.argeo.slc.client.ui.dist.deleteArtifacts"
195 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
196 name="Remove selected artifacts">
197 </command>
198 </extension>
199 <extension
200 id="menu:org.eclipse.ui.main.menu"
201 point="org.eclipse.ui.menus">
202
203 <!-- View Specific Menus -->
204 <menuContribution
205 locationURI="toolbar:org.argeo.slc.client.ui.dist.artifactsBrowser">
206 <command
207 commandId="org.argeo.slc.client.ui.dist.showSizeColumn"
208 icon="icons/showSize.gif"
209 style="toggle"
210 label="Show sizes"
211 tooltip="Warning: showing size column might reduce overall browser reactivity">
212 </command>
213 <command
214 commandId="org.argeo.slc.client.ui.dist.refreshArtifactBrowser"
215 icon="icons/refresh.png"
216 label="Refresh"
217 tooltip="Refresh the whole browser">
218 </command>
219 </menuContribution>
220 <menuContribution
221 locationURI="toolbar:org.argeo.slc.client.ui.dist.distributionsView">
222 <command
223 commandId="org.argeo.slc.client.ui.dist.registerRepository"
224 icon="icons/addRepo.gif"
225 label="Register repository"
226 tooltip="Register a remote repository">
227 </command>
228 <command
229 commandId="org.argeo.slc.client.ui.dist.refreshDistributionsView"
230 icon="icons/refresh.png"
231 label="Refresh"
232 tooltip="Refresh distributions view">
233 </command>
234 <!--
235 <command
236 commandId="org.argeo.slc.client.ui.dist.runInOSGi"
237 icon="icons/showSize.gif"
238 label="Run in OSGi"
239 tooltip="Run in a spearate OSGi runtime">
240 </command>
241 -->
242 </menuContribution>
243 <!-- Queries -->
244 <!-- <menuContribution
245 allPopups="false"
246 locationURI="menu:org.eclipse.ui.main.menu?after=edit">
247 <menu label="Queries"
248 mnemonic="Queries"
249 id="org.argeo.slc.client.ui.dist.queryMenu">
250 <command
251 commandId="org.argeo.slc.client.ui.dist.openGenericJcrQueryEditor"
252 disabledIcon="icons/saveDisabled.gif"
253 icon="icons/results.gif"
254 label="JCR Query"
255 style="push"
256 tooltip="Open JCR query editor">
257 </command>
258 </menu>
259 </menuContribution> -->
260 </extension>
261 <extension
262 point="org.eclipse.ui.activities">
263 <!-- TODO: find a way to exclude evrything -->
264 <activityPatternBinding
265 activityId="org.argeo.slc.client.ui.slcActivity"
266 isEqualityPattern="true"
267 pattern="org.argeo.slc.client.ui.dist/org.argeo.slc.client.ui.dist.distributionPerspective">
268 </activityPatternBinding>
269 <activityPatternBinding
270 activityId="org.argeo.security.ui.adminActivity"
271 isEqualityPattern="true"
272 pattern="org.argeo.slc.client.ui.dist/org.argeo.slc.client.ui.dist.distributionPerspective">
273 </activityPatternBinding>
274 </extension>
275 </plugin>