Statistiques
| Révision :

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

Historique | Voir | Annoter | Télécharger (14,27 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
               </menuContribution>
141
               <menuContribution
142
                     locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
143
                  <command
144
                        commandId="org.txm.index.rcp.handlers.ComputeIndex"
145
                        icon="icons/index.png"
146
                        label="%command.name.2"
147
                        style="push">
148
                  </command>
149
               </menuContribution>
150
               <menuContribution
151
                     locationURI="popup:ChartEditorContextMenuItemArea.ItemMenu">
152
                  <command
153
                        commandId="org.txm.index.rcp.handlers.ComputeIndex"
154
                        icon="icons/index.png"
155
                        label="%command.name.2"
156
                        style="push">
157
                     <visibleWhen
158
                           checkEnabled="false">
159
                        <reference
160
                              definitionId="ProgressionEditorActive">
161
                        </reference>
162
                     </visibleWhen>
163
                  </command>
164
               </menuContribution>
165
      
166
   </extension>
167
   <extension
168
         point="org.eclipse.ui.editors">
169
      <editor
170
            class="org.txm.index.rcp.editors.IndexEditor"
171
            default="false"
172
            icon="icons/index.png"
173
            id="org.txm.index.rcp.editors.IndexEditor"
174
            name="%editor.name">
175
      </editor>
176
      <editor
177
            class="org.txm.index.rcp.editors.LexiconEditor"
178
            default="false"
179
            icon="icons/lexicon.png"
180
            id="org.txm.index.rcp.editors.LexiconEditor"
181
            name="%editor.name.0">
182
      </editor>
183
      <editor
184
            class="org.txm.index.rcp.editors.PartitionIndexEditor"
185
            default="false"
186
            icon="icons/partitionindex.png"
187
            id="org.txm.index.rcp.editors.PartitionIndexEditor"
188
            name="PartitionIndex">
189
      </editor>
190
   </extension>
191
   <extension
192
         point="org.eclipse.core.runtime.adapters">
193
      <factory
194
            adaptableType="org.txm.index.core.functions.Index"
195
            class="org.txm.index.rcp.adapters.IndexAdapterFactory">
196
         <adapter
197
               type="org.eclipse.ui.model.IWorkbenchAdapter">
198
         </adapter>
199
         <adapter
200
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
201
         </adapter>
202
      </factory>
203
      <factory
204
            adaptableType="org.txm.index.core.functions.Lexicon"
205
            class="org.txm.index.rcp.adapters.LexiconAdapterFactory">
206
         <adapter
207
               type="org.eclipse.ui.model.IWorkbenchAdapter">
208
         </adapter>
209
         <adapter
210
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
211
         </adapter>
212
      </factory>
213
      <factory
214
            adaptableType="org.txm.index.core.functions.PartitionIndex"
215
            class="org.txm.index.rcp.adapters.PartitionIndexAdapterFactory">
216
         <adapter
217
               type="org.eclipse.ui.model.IWorkbenchAdapter">
218
         </adapter>
219
         <adapter
220
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
221
         </adapter>
222
      </factory>
223
   </extension>
224
   <extension
225
         point="org.eclipse.ui.commands">
226
         
227
      <command
228
            categoryId="org.txm.rcp.category.txm"
229
            defaultHandler="org.txm.index.rcp.handlers.ComputeIndex"
230
            id="org.txm.index.rcp.handlers.ComputeIndex"
231
            name="%command.name"
232
            returnTypeId="org.txm.index.core.functions.Index">
233
      </command>
234
      <command
235
            categoryId="org.txm.rcp.category.txm"
236
            defaultHandler="org.txm.index.rcp.handlers.ComputeLexicon"
237
            id="org.txm.index.rcp.handlers.ComputeLexicon"
238
            name="%command.name.0"
239
            returnTypeId="org.txm.index.core.functions.Lexicon">
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="%command.name"
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
        </instanceof>
292
         </with>
293
      </definition>
294
      <definition
295
            id="LexiconEditorActive">
296
         <with
297
               variable="activePart">
298
            <instanceof
299
                  value="org.txm.index.rcp.editors.LexiconEditor">
300
            </instanceof>
301
         </with>
302
      </definition>
303
      <definition
304
            id="PartitionIndexEditorActive">
305
         <with
306
               variable="activePart">
307
            <instanceof
308
                  value="org.txm.index.rcp.editors.PartitionIndexEditor">
309
            </instanceof>
310
         </with>
311
      </definition>
312
      <definition
313
            id="OnePartitionIndexSelected">
314
         <with
315
               variable="selection">
316
            <iterate
317
                  ifEmpty="false"
318
                  operator="and">
319
               <instanceof
320
                     value="org.txm.index.core.functions.PartitionIndex">
321
               </instanceof>
322
            </iterate>
323
         </with>
324
      </definition>
325
   </extension>
326
   <extension
327
         point="org.txm.statengine.r.rcp.sendtor">
328
      <sendtorcommand></sendtorcommand>
329
   </extension>
330
   <extension
331
         point="org.eclipse.ui.preferencePages">
332
      <page
333
            category="org.txm.rcp.preferences.UserPreferencePage"
334
            class="org.txm.index.rcp.preferences.IndexPreferencesPage"
335
            id="org.txm.index.rcp.preferences.IndexPreferencesPage"
336
            name="%page.name">
337
      </page>
338
   </extension>
339
   <extension
340
         point="org.eclipse.ui.handlers">
341
      <handler
342
            class="org.txm.index.rcp.handlers.SendIndexTo"
343
            commandId="org.txm.progression.rcp.handlers.ComputeProgression">
344
         <activeWhen>
345
         <and>
346
         <or>
347
           <reference
348
                 definitionId="IndexEditorActive">
349
           </reference>
350
           <reference
351
                 definitionId="LexiconEditorActive">
352
           </reference>
353
           <reference
354
                 definitionId="PartitionIndexEditorActive">
355
           </reference>
356
         
357
         </or>
358
         <reference
359
               definitionId="SendSelectionContextNotActive">
360
         </reference>
361
         </and>
362
         </activeWhen>
363
      </handler>
364
      <handler
365
            class="org.txm.index.rcp.handlers.SendIndexTo"
366
            commandId="org.txm.concordance.rcp.handlers.ComputeConcordance">
367
         <activeWhen>
368
         <and>
369
            <or>
370
               <reference
371
                     definitionId="IndexEditorActive">
372
               </reference>
373
               <reference
374
                     definitionId="LexiconEditorActive">
375
               </reference>
376
               <reference
377
                     definitionId="PartitionIndexEditorActive">
378
               </reference>
379
            </or>
380
            
381
            
382
               <reference
383
                     definitionId="SendSelectionContextNotActive">
384
               </reference>
385
            
386
            </and>
387
         </activeWhen>
388
      </handler>
389
      <handler
390
            class="org.txm.index.rcp.handlers.SendIndexTo"
391
            commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
392
         <activeWhen>
393
         <and>
394
            <or>
395
               <reference
396
                     definitionId="IndexEditorActive">
397
               </reference>
398
               <reference
399
                     definitionId="LexiconEditorActive">
400
               </reference>
401
               <reference
402
                     definitionId="PartitionIndexEditorActive">
403
               </reference>
404
            </or>
405
               <reference
406
                     definitionId="SendSelectionContextNotActive">
407
               </reference>
408
               </and>
409
         </activeWhen>
410
      </handler>
411
      <handler
412
            class="org.txm.index.rcp.handlers.SendIndexTo"
413
            commandId="org.txm.index.rcp.handlers.ComputeIndex">
414
         <activeWhen>
415
            <and>
416
               <reference
417
                     definitionId="LexiconEditorActive">
418
               </reference>
419
               <reference
420
                     definitionId="SendSelectionContextNotActive">
421
               </reference>
422
            </and>
423
         </activeWhen>
424
      </handler>
425
   </extension>
426

    
427
</plugin>