root / TXM / trunk / org.txm.index.rcp / plugin.xml @ 3368
Historique | Voir | Annoter | Télécharger (15,17 ko)
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<?eclipse version="3.4"?>
|
3 |
<plugin>
|
4 |
<extension
|
5 |
point="org.eclipse.ui.menus"> |
6 |
|
7 |
<menuContribution
|
8 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.doc"> |
9 |
<command
|
10 |
commandId="org.txm.index.rcp.handlers.ComputeLexicon" |
11 |
icon="icons/lexicon.png" |
12 |
style="push"> |
13 |
<visibleWhen
|
14 |
checkEnabled="false"> |
15 |
<reference
|
16 |
definitionId="OneCorpusSelected"> |
17 |
</reference>
|
18 |
</visibleWhen>
|
19 |
</command>
|
20 |
<command
|
21 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
22 |
icon="icons/index.png" |
23 |
style="push"> |
24 |
<visibleWhen
|
25 |
checkEnabled="false"> |
26 |
<or>
|
27 |
<reference
|
28 |
definitionId="OneCorpusSelected"> |
29 |
</reference>
|
30 |
</or>
|
31 |
</visibleWhen>
|
32 |
</command>
|
33 |
<command
|
34 |
commandId="org.txm.index.rcp.handlers.ComputePartitionIndex" |
35 |
icon="icons/partitionindex.png" |
36 |
style="push"> |
37 |
<visibleWhen
|
38 |
checkEnabled="false"> |
39 |
<or>
|
40 |
<reference
|
41 |
definitionId="OnePartitionSelected"> |
42 |
</reference>
|
43 |
</or>
|
44 |
</visibleWhen>
|
45 |
</command>
|
46 |
</menuContribution>
|
47 |
<menuContribution
|
48 |
locationURI="menu:menu.tools?after=menu.tools.separator.doc"> |
49 |
<command
|
50 |
commandId="org.txm.index.rcp.handlers.ComputeLexicon" |
51 |
icon="icons/lexicon.png" |
52 |
style="push"> |
53 |
<visibleWhen
|
54 |
checkEnabled="false"> |
55 |
<reference
|
56 |
definitionId="OneCorpusSelected"> |
57 |
</reference>
|
58 |
</visibleWhen>
|
59 |
</command>
|
60 |
<command
|
61 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
62 |
icon="icons/index.png" |
63 |
style="push"> |
64 |
<visibleWhen
|
65 |
checkEnabled="false"> |
66 |
<or>
|
67 |
<reference
|
68 |
definitionId="OneCorpusSelected"> |
69 |
</reference>
|
70 |
</or>
|
71 |
</visibleWhen>
|
72 |
</command>
|
73 |
<command
|
74 |
commandId="org.txm.index.rcp.handlers.ComputePartitionIndex" |
75 |
icon="icons/partitionindex.png" |
76 |
style="push"> |
77 |
<visibleWhen
|
78 |
checkEnabled="false"> |
79 |
<or>
|
80 |
<reference
|
81 |
definitionId="OnePartitionSelected"> |
82 |
</reference>
|
83 |
</or>
|
84 |
</visibleWhen>
|
85 |
</command>
|
86 |
</menuContribution>
|
87 |
<menuContribution
|
88 |
allPopups="false" |
89 |
locationURI="toolbar:org.txm.rcp.toolbartools"> |
90 |
<command
|
91 |
commandId="org.txm.index.rcp.handlers.ComputeLexicon" |
92 |
icon="icons/lexicon.png" |
93 |
style="push"> |
94 |
<visibleWhen
|
95 |
checkEnabled="false"> |
96 |
<reference
|
97 |
definitionId="OneCorpusSelected"> |
98 |
</reference>
|
99 |
</visibleWhen>
|
100 |
</command>
|
101 |
<command
|
102 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
103 |
icon="icons/index.png" |
104 |
style="push"> |
105 |
<visibleWhen
|
106 |
checkEnabled="false"> |
107 |
<or>
|
108 |
<reference
|
109 |
definitionId="OneCorpusSelected"> |
110 |
</reference>
|
111 |
</or>
|
112 |
</visibleWhen>
|
113 |
</command>
|
114 |
</menuContribution>
|
115 |
<menuContribution
|
116 |
allPopups="false" |
117 |
locationURI="toolbar:org.txm.rcp.toolbartools?after=ComputeLexicalTableFromPartition"> |
118 |
<command
|
119 |
commandId="org.txm.index.rcp.handlers.ComputePartitionIndex" |
120 |
icon="icons/partitionindex.png" |
121 |
style="push"> |
122 |
<visibleWhen
|
123 |
checkEnabled="false"> |
124 |
<or>
|
125 |
<reference
|
126 |
definitionId="OnePartitionSelected"> |
127 |
</reference>
|
128 |
</or>
|
129 |
</visibleWhen>
|
130 |
</command>
|
131 |
</menuContribution>
|
132 |
<menuContribution
|
133 |
locationURI="popup:org.txm.index.rcp.editors.LexiconEditor"> |
134 |
<command
|
135 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
136 |
icon="icons/index.png" |
137 |
label="%command.name.2" |
138 |
style="push"> |
139 |
</command>
|
140 |
<command
|
141 |
commandId="org.txm.index.rcp.handlers.CopyLines" |
142 |
icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/copy_edit.png" |
143 |
label="Copy" |
144 |
style="push"> |
145 |
</command>
|
146 |
</menuContribution>
|
147 |
<menuContribution
|
148 |
locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor"> |
149 |
<command
|
150 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
151 |
icon="icons/index.png" |
152 |
label="%command.name.2" |
153 |
style="push"> |
154 |
</command>
|
155 |
</menuContribution>
|
156 |
<menuContribution
|
157 |
locationURI="popup:ChartEditorContextMenuItemArea.ItemMenu"> |
158 |
<command
|
159 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
160 |
icon="icons/index.png" |
161 |
label="%command.name.2" |
162 |
style="push"> |
163 |
<visibleWhen
|
164 |
checkEnabled="false"> |
165 |
<reference
|
166 |
definitionId="ProgressionEditorActive"> |
167 |
</reference>
|
168 |
</visibleWhen>
|
169 |
</command>
|
170 |
</menuContribution>
|
171 |
<menuContribution
|
172 |
locationURI="popup:org.txm.index.rcp.editors.IndexEditor"> |
173 |
<command
|
174 |
commandId="org.txm.index.rcp.handlers.CopyLines" |
175 |
icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/copy_edit.png" |
176 |
label="Copy" |
177 |
style="push"> |
178 |
</command>
|
179 |
</menuContribution>
|
180 |
|
181 |
</extension>
|
182 |
<extension
|
183 |
point="org.eclipse.ui.editors"> |
184 |
<editor
|
185 |
class="org.txm.index.rcp.editors.IndexEditor" |
186 |
default="false" |
187 |
icon="icons/index.png" |
188 |
id="org.txm.index.rcp.editors.IndexEditor" |
189 |
name="%editor.name"> |
190 |
</editor>
|
191 |
<editor
|
192 |
class="org.txm.index.rcp.editors.LexiconEditor" |
193 |
default="false" |
194 |
icon="icons/lexicon.png" |
195 |
id="org.txm.index.rcp.editors.LexiconEditor" |
196 |
name="%editor.name.0"> |
197 |
</editor>
|
198 |
<editor
|
199 |
class="org.txm.index.rcp.editors.PartitionIndexEditor" |
200 |
default="false" |
201 |
icon="icons/partitionindex.png" |
202 |
id="org.txm.index.rcp.editors.PartitionIndexEditor" |
203 |
name="PartitionIndex"> |
204 |
</editor>
|
205 |
</extension>
|
206 |
<extension
|
207 |
point="org.eclipse.core.runtime.adapters"> |
208 |
<factory
|
209 |
adaptableType="org.txm.index.core.functions.Index" |
210 |
class="org.txm.index.rcp.adapters.IndexAdapterFactory"> |
211 |
<adapter
|
212 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
213 |
</adapter>
|
214 |
<adapter
|
215 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
216 |
</adapter>
|
217 |
</factory>
|
218 |
<factory
|
219 |
adaptableType="org.txm.index.core.functions.Lexicon" |
220 |
class="org.txm.index.rcp.adapters.LexiconAdapterFactory"> |
221 |
<adapter
|
222 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
223 |
</adapter>
|
224 |
<adapter
|
225 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
226 |
</adapter>
|
227 |
</factory>
|
228 |
<factory
|
229 |
adaptableType="org.txm.index.core.functions.PartitionIndex" |
230 |
class="org.txm.index.rcp.adapters.PartitionIndexAdapterFactory"> |
231 |
<adapter
|
232 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
233 |
</adapter>
|
234 |
<adapter
|
235 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
236 |
</adapter>
|
237 |
</factory>
|
238 |
</extension>
|
239 |
<extension
|
240 |
point="org.eclipse.ui.commands"> |
241 |
|
242 |
<command
|
243 |
categoryId="org.txm.rcp.category.txm" |
244 |
defaultHandler="org.txm.index.rcp.handlers.ComputeIndex" |
245 |
id="org.txm.index.rcp.handlers.ComputeIndex" |
246 |
name="%command.name" |
247 |
returnTypeId="org.txm.index.core.functions.Index"> |
248 |
</command>
|
249 |
<command
|
250 |
categoryId="org.txm.rcp.category.txm" |
251 |
defaultHandler="org.txm.index.rcp.handlers.ComputeLexicon" |
252 |
id="org.txm.index.rcp.handlers.ComputeLexicon" |
253 |
name="%command.name.0" |
254 |
returnTypeId="org.txm.index.core.functions.Lexicon"> |
255 |
</command>
|
256 |
|
257 |
<command
|
258 |
defaultHandler="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable" |
259 |
id="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable" |
260 |
name="%command.name.43"> |
261 |
</command>
|
262 |
<command
|
263 |
categoryId="org.txm.rcp.category.txm" |
264 |
defaultHandler="org.txm.index.rcp.handlers.ComputePartitionIndex" |
265 |
id="org.txm.index.rcp.handlers.ComputePartitionIndex" |
266 |
name="%command.name" |
267 |
returnTypeId="org.txm.index.core.functions.PartitionIndex"> |
268 |
</command>
|
269 |
<command
|
270 |
defaultHandler="org.txm.index.rcp.handlers.CopyLines" |
271 |
id="org.txm.index.rcp.handlers.CopyLines" |
272 |
name="Copy"> |
273 |
</command>
|
274 |
|
275 |
|
276 |
</extension>
|
277 |
<extension
|
278 |
point="org.eclipse.core.expressions.definitions"> |
279 |
<definition
|
280 |
id="OneIndexSelected"> |
281 |
<with
|
282 |
variable="selection"> |
283 |
<iterate
|
284 |
ifEmpty="false" |
285 |
operator="and"> |
286 |
<instanceof
|
287 |
value="org.txm.index.core.functions.Index"> |
288 |
</instanceof>
|
289 |
</iterate>
|
290 |
</with>
|
291 |
</definition>
|
292 |
<definition
|
293 |
id="OneLexiconSelected"> |
294 |
<with
|
295 |
variable="selection"> |
296 |
<iterate
|
297 |
ifEmpty="false" |
298 |
operator="and"> |
299 |
<instanceof
|
300 |
value="org.txm.index.core.functions.Lexicon"> |
301 |
</instanceof>
|
302 |
</iterate>
|
303 |
</with>
|
304 |
</definition>
|
305 |
<definition
|
306 |
id="IndexEditorActive"> |
307 |
<with
|
308 |
variable="activePart"> |
309 |
<instanceof
|
310 |
value="org.txm.index.rcp.editors.IndexEditor"> |
311 |
</instanceof>
|
312 |
</with>
|
313 |
</definition>
|
314 |
<definition
|
315 |
id="LexiconEditorActive"> |
316 |
<with
|
317 |
variable="activePart"> |
318 |
<instanceof
|
319 |
value="org.txm.index.rcp.editors.LexiconEditor"> |
320 |
</instanceof>
|
321 |
</with>
|
322 |
</definition>
|
323 |
<definition
|
324 |
id="PartitionIndexEditorActive"> |
325 |
<with
|
326 |
variable="activePart"> |
327 |
<instanceof
|
328 |
value="org.txm.index.rcp.editors.PartitionIndexEditor"> |
329 |
</instanceof>
|
330 |
</with>
|
331 |
</definition>
|
332 |
<definition
|
333 |
id="OnePartitionIndexSelected"> |
334 |
<with
|
335 |
variable="selection"> |
336 |
<iterate
|
337 |
ifEmpty="false" |
338 |
operator="and"> |
339 |
<instanceof
|
340 |
value="org.txm.index.core.functions.PartitionIndex"> |
341 |
</instanceof>
|
342 |
</iterate>
|
343 |
</with>
|
344 |
</definition>
|
345 |
</extension>
|
346 |
<extension
|
347 |
point="org.txm.statengine.r.rcp.sendtor"> |
348 |
<sendtorcommand></sendtorcommand> |
349 |
</extension>
|
350 |
<extension
|
351 |
point="org.eclipse.ui.preferencePages"> |
352 |
<page
|
353 |
category="org.txm.rcp.preferences.UserPreferencePage" |
354 |
class="org.txm.index.rcp.preferences.IndexPreferencesPage" |
355 |
id="org.txm.index.rcp.preferences.IndexPreferencesPage" |
356 |
name="%page.name"> |
357 |
</page>
|
358 |
</extension>
|
359 |
<extension
|
360 |
point="org.eclipse.ui.handlers"> |
361 |
<handler
|
362 |
class="org.txm.index.rcp.handlers.SendIndexTo" |
363 |
commandId="org.txm.progression.rcp.handlers.ComputeProgression"> |
364 |
<activeWhen>
|
365 |
<and>
|
366 |
<or>
|
367 |
<reference
|
368 |
definitionId="IndexEditorActive"> |
369 |
</reference>
|
370 |
<reference
|
371 |
definitionId="LexiconEditorActive"> |
372 |
</reference>
|
373 |
<reference
|
374 |
definitionId="PartitionIndexEditorActive"> |
375 |
</reference>
|
376 |
|
377 |
</or>
|
378 |
<reference
|
379 |
definitionId="SendSelectionContextNotActive"> |
380 |
</reference>
|
381 |
</and>
|
382 |
</activeWhen>
|
383 |
</handler>
|
384 |
<handler
|
385 |
class="org.txm.index.rcp.handlers.SendIndexTo" |
386 |
commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"> |
387 |
<activeWhen>
|
388 |
<and>
|
389 |
<or>
|
390 |
<reference
|
391 |
definitionId="IndexEditorActive"> |
392 |
</reference>
|
393 |
<reference
|
394 |
definitionId="LexiconEditorActive"> |
395 |
</reference>
|
396 |
<reference
|
397 |
definitionId="PartitionIndexEditorActive"> |
398 |
</reference>
|
399 |
</or>
|
400 |
|
401 |
|
402 |
<reference
|
403 |
definitionId="SendSelectionContextNotActive"> |
404 |
</reference>
|
405 |
|
406 |
</and>
|
407 |
</activeWhen>
|
408 |
</handler>
|
409 |
<handler
|
410 |
class="org.txm.index.rcp.handlers.SendIndexTo" |
411 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences"> |
412 |
<activeWhen>
|
413 |
<and>
|
414 |
<or>
|
415 |
<reference
|
416 |
definitionId="IndexEditorActive"> |
417 |
</reference>
|
418 |
<reference
|
419 |
definitionId="LexiconEditorActive"> |
420 |
</reference>
|
421 |
<reference
|
422 |
definitionId="PartitionIndexEditorActive"> |
423 |
</reference>
|
424 |
</or>
|
425 |
<reference
|
426 |
definitionId="SendSelectionContextNotActive"> |
427 |
</reference>
|
428 |
</and>
|
429 |
</activeWhen>
|
430 |
</handler>
|
431 |
<handler
|
432 |
class="org.txm.index.rcp.handlers.SendIndexTo" |
433 |
commandId="org.txm.index.rcp.handlers.ComputeIndex"> |
434 |
<activeWhen>
|
435 |
<and>
|
436 |
<reference
|
437 |
definitionId="LexiconEditorActive"> |
438 |
</reference>
|
439 |
<reference
|
440 |
definitionId="SendSelectionContextNotActive"> |
441 |
</reference>
|
442 |
</and>
|
443 |
</activeWhen>
|
444 |
</handler>
|
445 |
</extension>
|
446 |
|
447 |
</plugin>
|