Statistics
| Revision:

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

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

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

    
458
</plugin>