Statistics
| Revision:

root / tmp / org.txm.index.rcp / plugin.xml @ 1150

History | View | Annotate | Download (15.4 kB)

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
               tooltip="%command.tooltip">
106
            <visibleWhen
107
                  checkEnabled="false">
108
               <or>
109
                  <reference
110
                        definitionId="OneCorpusSelected">
111
                  </reference>
112
               </or>
113
            </visibleWhen>
114
         </command>
115
      </menuContribution>
116
      <menuContribution
117
            allPopups="false"
118
            locationURI="toolbar:org.txm.rcp.toolbartools?after=ComputeLexicalTableFromPartition">
119
         <command
120
               commandId="org.txm.index.rcp.handlers.ComputePartitionIndex"
121
               icon="icons/partitionindex.png"
122
               style="push">
123
            <visibleWhen
124
                  checkEnabled="false">
125
               <or>
126
                  <reference
127
                        definitionId="OnePartitionSelected">
128
                  </reference>
129
               </or>
130
            </visibleWhen>
131
         </command>
132
      </menuContribution>
133
               <menuContribution
134
                     locationURI="popup:org.txm.index.rcp.editors.DictionnaryEditor">
135
                  <command
136
                        commandId="org.txm.index.rcp.handlers.ComputeIndex"
137
                        icon="icons/index.png"
138
                        label="%command.name.2"
139
                        style="push">
140
                  </command>
141
               </menuContribution>
142
               <menuContribution
143
                     locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
144
                  <command
145
                        commandId="org.txm.index.rcp.handlers.ComputeIndex"
146
                        icon="icons/index.png"
147
                        label="%command.name.2"
148
                        style="push">
149
                  </command>
150
               </menuContribution>
151
               <menuContribution
152
                     locationURI="popup:ChartEditorContextMenuItemArea.ItemMenu">
153
                  <command
154
                        commandId="org.txm.index.rcp.handlers.ComputeIndex"
155
                        icon="icons/index.png"
156
                        label="%command.name.2"
157
                        style="push">
158
                     <visibleWhen
159
                           checkEnabled="false">
160
                        <reference
161
                              definitionId="ProgressionEditorActive">
162
                        </reference>
163
                     </visibleWhen>
164
                  </command>
165
               </menuContribution>
166
      
167
   </extension>
168
   <extension
169
         point="org.eclipse.ui.editors">
170
      <editor
171
            class="org.txm.index.rcp.editors.IndexEditor"
172
            default="false"
173
            icon="icons/index.png"
174
            id="org.txm.index.rcp.editors.IndexEditor"
175
            name="%editor.name">
176
      </editor>
177
      <editor
178
            class="org.txm.index.rcp.editors.DictionnaryEditor"
179
            default="false"
180
            icon="icons/lexicon.png"
181
            id="org.txm.index.rcp.editors.DictionnaryEditor"
182
            name="%editor.name.0">
183
      </editor>
184
      <editor
185
            class="org.txm.index.rcp.editors.PartitionIndexEditor"
186
            default="false"
187
            icon="icons/partitionindex.png"
188
            id="org.txm.index.rcp.editors.PartitionIndexEditor"
189
            name="PartitionIndex">
190
      </editor>
191
   </extension>
192
   <extension
193
         point="org.eclipse.core.runtime.adapters">
194
      <factory
195
            adaptableType="org.txm.index.core.functions.Index"
196
            class="org.txm.index.rcp.adapters.IndexAdapterFactory">
197
         <adapter
198
               type="org.eclipse.ui.model.IWorkbenchAdapter">
199
         </adapter>
200
         <adapter
201
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
202
         </adapter>
203
      </factory>
204
      <factory
205
            adaptableType="org.txm.index.core.functions.Lexicon"
206
            class="org.txm.index.rcp.adapters.LexiconAdapterFactory">
207
         <adapter
208
               type="org.eclipse.ui.model.IWorkbenchAdapter">
209
         </adapter>
210
         <adapter
211
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
212
         </adapter>
213
      </factory>
214
      <factory
215
            adaptableType="org.txm.index.core.functions.PartitionIndex"
216
            class="org.txm.index.rcp.adapters.PartitionIndexAdapterFactory">
217
         <adapter
218
               type="org.eclipse.ui.model.IWorkbenchAdapter">
219
         </adapter>
220
         <adapter
221
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
222
         </adapter>
223
      </factory>
224
   </extension>
225
   <extension
226
         point="org.eclipse.ui.commands">
227
         
228
      <command
229
            categoryId="org.txm.rcp.category.txm"
230
            defaultHandler="org.txm.index.rcp.handlers.ComputeIndex"
231
            id="org.txm.index.rcp.handlers.ComputeIndex"
232
            name="%command.name"
233
            returnTypeId="org.txm.index.core.functions.Index">
234
      </command>
235
      <command
236
            categoryId="org.txm.rcp.category.txm"
237
            defaultHandler="org.txm.index.rcp.handlers.ComputeLexicon"
238
            id="org.txm.index.rcp.handlers.ComputeLexicon"
239
            name="%command.name.0">
240
      </command>
241

    
242
      <command
243
            defaultHandler="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable"
244
            id="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable"
245
            name="%command.name.43">
246
      </command>
247
      <command
248
            categoryId="org.txm.rcp.category.txm"
249
            defaultHandler="org.txm.index.rcp.handlers.ComputePartitionIndex"
250
            id="org.txm.index.rcp.handlers.ComputePartitionIndex"
251
            name="PartitionIndex"
252
            returnTypeId="org.txm.index.core.functions.PartitionIndex">
253
      </command>
254
      
255
      
256
   </extension>
257
   <extension
258
         point="org.eclipse.core.expressions.definitions">
259
      <definition
260
            id="OneIndexSelected">
261
         <with
262
               variable="selection">
263
            <iterate
264
                  ifEmpty="false"
265
                  operator="and">
266
               <instanceof
267
                     value="org.txm.index.core.functions.Index">
268
               </instanceof>
269
            </iterate>
270
         </with>
271
      </definition>
272
      <definition
273
            id="OneLexiconSelected">
274
         <with
275
               variable="selection">
276
            <iterate
277
                  ifEmpty="false"
278
                  operator="and">
279
               <instanceof
280
                     value="org.txm.index.core.functions.Lexicon">
281
               </instanceof>
282
            </iterate>
283
         </with>
284
      </definition>
285
      <definition
286
            id="IndexEditorActive">
287
         <with
288
               variable="activePart">
289
            <instanceof
290
                  value="org.txm.index.rcp.editors.IndexEditor">
291
       
292
      <definition
293
            id="PartitionIndexEditorActive">
294
         <with
295
               variable="activePart">
296
            <instanceof
297
                  value="org.txm.index.rcp.editors.IndexEditor">
298
            </instanceof>
299
         </with>
300
      </definition>
301
      <definition
302
            id="OnePartitionIndexSelected">
303
         <with
304
               variable="selection">
305
            <iterate
306
                  ifEmpty="false"
307
                  operator="and">
308
               <instanceof
309
                     value="org.txm.index.core.functions.Index">
310
               </instanceof>
311
            </iterate>
312
         </with>
313
      </definition>     </instanceof>
314
         </with>
315
      </definition>
316
      <definition
317
            id="LexiconEditorActive">
318
         <with
319
               variable="activePart">
320
            <instanceof
321
                  value="org.txm.index.rcp.editors.DictionnaryEditor">
322
            </instanceof>
323
         </with>
324
      </definition>
325
      <definition
326
            id="PartitionIndexEditorActive">
327
         <with
328
               variable="activePart">
329
            <instanceof
330
                  value="org.txm.index.rcp.editors.IndexEditor">
331
               <definition
332
                     id="PartitionIndexEditorActive">
333
                  <with
334
                        variable="activePart">
335
                     <instanceof
336
                           value="org.txm.index.rcp.editors.IndexEditor">
337
                     </instanceof>
338
                  </with>
339
               </definition>
340
               <definition
341
                     id="OnePartitionIndexSelected">
342
                  <with
343
                        variable="selection">
344
                     <iterate
345
                           ifEmpty="false"
346
                           operator="and">
347
                        <instanceof
348
                              value="org.txm.index.core.functions.Index">
349
                        </instanceof>
350
                     </iterate>
351
                  </with>
352
               </definition>
353
            </instanceof>
354
         </with>
355
      </definition>
356
      <definition
357
            id="OnePartitionIndexSelected">
358
         <with
359
               variable="selection">
360
            <iterate
361
                  ifEmpty="false"
362
                  operator="and">
363
               <instanceof
364
                     value="org.txm.index.core.functions.PartitionIndex">
365
               </instanceof>
366
            </iterate>
367
         </with>
368
      </definition>
369
   </extension>
370
   <extension
371
         point="org.txm.statengine.r.rcp.sendtor">
372
      <sendtorcommand></sendtorcommand>
373
   </extension>
374
   <extension
375
         point="org.eclipse.ui.preferencePages">
376
      <page
377
            category="org.txm.rcp.preferences.UserPreferencePage"
378
            class="org.txm.index.rcp.preferences.IndexPreferencesPage"
379
            id="org.txm.index.rcp.preferences.IndexPreferencesPage"
380
            name="%page.name">
381
      </page>
382
   </extension>
383
   <extension
384
         point="org.eclipse.ui.handlers">
385
      <handler
386
            class="org.txm.index.rcp.handlers.SendIndexTo"
387
            commandId="org.txm.progression.rcp.handlers.ComputeProgression">
388
         <activeWhen>
389
         <and>
390
         <or>
391
           <reference
392
                 definitionId="IndexEditorActive">
393
           </reference>
394
           <reference
395
                 definitionId="LexiconEditorActive">
396
           </reference>
397
         
398
         </or>
399
         <reference
400
               definitionId="SendSelectionContextNotActive">
401
         </reference>
402
         </and>
403
         </activeWhen>
404
      </handler>
405
      <handler
406
            class="org.txm.index.rcp.handlers.SendIndexTo"
407
            commandId="org.txm.concordance.rcp.handlers.ComputeConcordance">
408
         <activeWhen>
409
         <and>
410
            <or>
411
               <reference
412
                     definitionId="IndexEditorActive">
413
               </reference>
414
               <reference
415
                     definitionId="LexiconEditorActive">
416
               </reference>
417
            </or>
418
            
419
            
420
               <reference
421
                     definitionId="SendSelectionContextNotActive">
422
               </reference>
423
            
424
            </and>
425
         </activeWhen>
426
      </handler>
427
      <handler
428
            class="org.txm.index.rcp.handlers.SendIndexTo"
429
            commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
430
         <activeWhen>
431
         <and>
432
            <or>
433
               <reference
434
                     definitionId="IndexEditorActive">
435
               </reference>
436
               <reference
437
                     definitionId="LexiconEditorActive">
438
               </reference>
439
            </or>
440
               <reference
441
                     definitionId="SendSelectionContextNotActive">
442
               </reference>
443
               </and>
444
         </activeWhen>
445
      </handler>
446
      <handler
447
            class="org.txm.index.rcp.handlers.SendIndexTo"
448
            commandId="org.txm.index.rcp.handlers.ComputeIndex">
449
         <activeWhen>
450
            <and>
451
               <reference
452
                     definitionId="LexiconEditorActive">
453
               </reference>
454
               <reference
455
                     definitionId="SendSelectionContextNotActive">
456
               </reference>
457
            </and>
458
         </activeWhen>
459
      </handler>
460
   </extension>
461

    
462
</plugin>