Statistiques
| Révision :

root / TXM / trunk / org.txm.searchengine.cqp.rcp / plugin.xml @ 3628

Historique | Voir | Annoter | Télécharger (21,36 ko)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>  
4
   <extension
5
         point="org.eclipse.ui.commands">
6
         <command
7
            categoryId="org.eclipse.ui.category.navigate"
8
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.OpenBiblio"
9
            id="org.txm.searchengine.cqp.rcp.handlers.base.OpenBiblio"
10
            name="%command.name.63">
11
      </command>
12
            <command
13
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
14
            id="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
15
            name="%command.name.52">
16
      </command>
17
      <command
18
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
19
            id="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
20
            name="%command.name.2">
21
         <commandParameter
22
               id="CorpusParameter"
23
               name="%commandParameter.name.0"
24
               optional="true">
25
         </commandParameter>
26
      </command>
27
      <command
28
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.ComputeSubCorpus"
29
            id="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
30
            name="%command.name">
31
         <commandParameter
32
               id="CorpusParameter"
33
               name="%commandParameter.name.0"
34
               optional="true">
35
         </commandParameter>
36
         <commandParameter
37
               id="edit"
38
               name="%commandParameter.name"
39
               optional="true">
40
         </commandParameter>
41
      </command>
42
      <command
43
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
44
            id="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
45
            name="%command.name.0">
46
      </command>
47
      <command
48
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.Union"
49
            id="org.txm.searchengine.cqp.rcp.handlers.base.Union"
50
            name="%command.name.1">
51
      </command>
52
      <command
53
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
54
            id="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
55
            name="%command.name.3">
56
      </command>
57
      <command
58
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.EditPartition"
59
            id="org.txm.searchengine.cqp.rcp.handlers.base.EditPartition"
60
            name="Edit">
61
         <commandParameter
62
               id="CorpusParameter"
63
               name="%commandParameter.name.0"
64
               optional="true">
65
         </commandParameter>
66
      </command>
67
      <command
68
            defaultHandler="org.txm.searchengine.cqp.rcp.handlers.base.EditSubCorpus"
69
            id="org.txm.searchengine.cqp.rcp.handlers.base.EditSubCorpus"
70
            name="Edit">
71
         <commandParameter
72
               id="CorpusParameter"
73
               name="%commandParameter.name.0"
74
               optional="true">
75
         </commandParameter>
76
         <commandParameter
77
               id="edit"
78
               name="%commandParameter.name"
79
               optional="true">
80
         </commandParameter>
81
      </command>
82
   </extension>
83
   <extension
84
         point="org.eclipse.ui.preferencePages">
85
      <page
86
            category="org.txm.searchengine.rcp.preferences.SearchEnginePreferencesPage"
87
            class="org.txm.searchengine.cqp.rcp.preferences.CQPPreferencePage"
88
            id="org.txm.searchengine.cqp.rcp.preferences.CQPPreferencePage"
89
            name="%page.name">
90
      </page>
91
      <page
92
            category="org.txm.rcp.preferences.UserPreferencePage"
93
            class="org.txm.searchengine.cqp.rcp.preferences.SubcorpusPreferencePage"
94
            id="org.txm.searchengine.cqp.rcp.preferences.SubcorpusPreferencePage"
95
            name="%page.name.0">
96
      </page>
97
   </extension>
98
   <extension
99
         point="org.eclipse.ui.menus">
100
            <menuContribution
101
            locationURI="popup:org.txm.rcp.views.BasesView">
102
         <command
103
               commandId="org.txm.rcp.commands.workspace.AddProject"
104
               label="%command.label.36"
105
               style="push">
106
            <visibleWhen
107
                  checkEnabled="false">
108
               <reference
109
                     definitionId="OneProjectSelected">
110
               </reference>
111
            </visibleWhen>
112
         </command>
113
         <separator
114
               name="org.txm.rcp.separator1">
115
         </separator>
116
         <command
117
               commandId="org.txm.rcp.commands.base.DeleteObject"
118
               icon="icons/functions/delete.png"
119
               style="push"
120
               tooltip="%command.tooltip.33">
121
            <visibleWhen
122
                  checkEnabled="false">
123
               <or>
124
                  <reference
125
                        definitionId="OnePartitionSelected">
126
                  </reference>
127
                  <reference
128
                        definitionId="OneSubCorpusSelected">
129
                  </reference>
130
                  <reference
131
                        definitionId="OneBaseSelected">
132
                  </reference>
133
                  <reference
134
                        definitionId="OneIndexSelected">
135
                  </reference>
136
                  <reference
137
                        definitionId="OneLexiconSelected">
138
                  </reference>
139
                  <reference
140
                        definitionId="OneConcordanceSelected">
141
                  </reference>
142
                  <reference
143
                        definitionId="OneCASelected">
144
                  </reference>
145
                  <reference
146
                        definitionId="OneSpecificitiesResultSelected">
147
                  </reference>
148
                  <reference
149
                        definitionId="OneMainCorpusSelected">
150
                  </reference>
151
               </or>
152
            </visibleWhen>
153
         </command>
154
         <command
155
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.OpenBiblio"
156
               icon="icons/functions/biblio.png"
157
               label="%command.label.148"
158
               style="push"
159
               tooltip="%command.tooltip.91">
160
            <visibleWhen
161
                  checkEnabled="false">
162
               <or>
163
                  <reference
164
                        definitionId="OneBaseSelected">
165
                  </reference>
166
                  <reference
167
                        definitionId="OneTextSelected">
168
                  </reference>
169
               </or>
170
            </visibleWhen>
171
         </command>
172
      </menuContribution>
173
      <menuContribution
174
            locationURI="popup:org.txm.rcp.corporaview.export">
175
         <command
176
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
177
               icon="icons/functions/compress.png"
178
               label="%command.name.52"
179
               style="push">
180
            <visibleWhen
181
                  checkEnabled="false">
182
               <reference
183
                     definitionId="OneMainCorpusSelected">
184
               </reference>
185
            </visibleWhen>
186
         </command>
187
            </menuContribution>
188
      <menuContribution
189
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.manage">
190
         <command
191
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.EditSubCorpus"
192
               icon="platform:/plugin/org.txm.rcp/icons/functions/pencil.png"
193
               style="push">
194
            <visibleWhen
195
                  checkEnabled="false">
196
               <and>
197
                  <reference
198
                        definitionId="OneSubCorpusSelected">
199
                  </reference>
200
                  <reference
201
                        definitionId="ExpertEnabled">
202
                  </reference>
203
               </and>
204
            </visibleWhen>
205
         </command>
206
         <command
207
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.EditPartition"
208
               icon="platform:/plugin/org.txm.rcp/icons/functions/pencil.png"
209
               style="push">
210
            <visibleWhen
211
                  checkEnabled="false">
212
               <and>
213
                  <reference
214
                        definitionId="OnePartitionSelected">
215
                  </reference>
216
                  <reference
217
                        definitionId="ExpertEnabled">
218
                  </reference>
219
               </and>
220
            </visibleWhen>
221
         </command>
222
         <command
223
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
224
               icon="icons/functions/subcorpus.png"
225
               style="push">
226
            <visibleWhen
227
                  checkEnabled="false">
228
               <reference
229
                     definitionId="OneCorpusSelected">
230
               </reference>
231
            </visibleWhen>
232
         </command>
233
         <command
234
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
235
               icon="icons/functions/partition.png"
236
               style="push">
237
            <visibleWhen
238
                  checkEnabled="false">
239
               <or>
240
                  <reference
241
                        definitionId="OneCorpusSelected">
242
                  </reference>
243
               </or>
244
            </visibleWhen>
245
         </command>
246
         <command
247
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
248
               icon="icons/functions/minus.png"
249
               label="%command.label"
250
               style="push"
251
               tooltip="%command.tooltip">
252
            <visibleWhen
253
                  checkEnabled="false">
254
               <reference
255
                     definitionId="OneSubCorpusSelected">
256
               </reference>
257
            </visibleWhen>
258
         </command>
259
         <command
260
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Union"
261
               icon="icons/functions/union.png"
262
               label="%command.label.0"
263
               style="push">
264
            <visibleWhen
265
                  checkEnabled="false">
266
               <reference
267
                     definitionId="OneSubCorpusSelected">
268
               </reference>
269
            </visibleWhen>
270
         </command>
271
         <command
272
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
273
               icon="icons/functions/inter.png"
274
               label="%command.label.1"
275
               style="push">
276
            <visibleWhen
277
                  checkEnabled="false">
278
               <reference
279
                     definitionId="OneSubCorpusSelected">
280
               </reference>
281
            </visibleWhen>
282
         </command>
283
      </menuContribution>
284
      <menuContribution
285
            locationURI="menu:menu.file.export.corpus">
286
         <command
287
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
288
               icon="icons/functions/compress.png"
289
               label="%command.name.52"
290
               style="push">
291
            <visibleWhen
292
                  checkEnabled="false">
293
               <reference
294
                     definitionId="OneMainCorpusSelected">
295
               </reference>
296
            </visibleWhen>
297
         </command>
298
      </menuContribution>
299
      <menuContribution
300
            locationURI="menu:menu.corpus?after=menu.corpus.build">
301
         <command
302
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.EditSubCorpus"
303
               icon="platform:/plugin/org.txm.rcp/icons/functions/pencil.png"
304
               style="push">
305
            <visibleWhen
306
                  checkEnabled="false">
307
               <and>
308
                  <reference
309
                        definitionId="OneSubCorpusSelected">
310
                  </reference>
311
                  <reference
312
                        definitionId="ExpertEnabled">
313
                  </reference>
314
               </and>
315
            </visibleWhen>
316
         </command>
317
         <command
318
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.EditPartition"
319
               icon="platform:/plugin/org.txm.rcp/icons/functions/pencil.png"
320
               style="push">
321
            <visibleWhen
322
                  checkEnabled="false">
323
               <and>
324
                  <reference
325
                        definitionId="OnePartitionSelected">
326
                  </reference>
327
                  <reference
328
                        definitionId="ExpertEnabled">
329
                  </reference>
330
               </and>
331
            </visibleWhen>
332
         </command>
333
         <command
334
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
335
               icon="icons/functions/subcorpus.png"
336
               style="push">
337
            <visibleWhen
338
                  checkEnabled="false">
339
               <reference
340
                     definitionId="OneCorpusSelected">
341
               </reference>
342
            </visibleWhen>
343
         </command>
344
         <command
345
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
346
               icon="icons/functions/partition.png"
347
               style="push">
348
            <visibleWhen
349
                  checkEnabled="false">
350
               <reference
351
                     definitionId="OneCorpusSelected">
352
               </reference>
353
            </visibleWhen>
354
         </command>
355
         <command
356
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
357
               icon="icons/functions/minus.png"
358
               label="%command.label.2"
359
               style="push"
360
               tooltip="%command.tooltip.0">
361
            <visibleWhen
362
                  checkEnabled="false">
363
               <reference
364
                     definitionId="OneSubCorpusSelected">
365
               </reference>
366
            </visibleWhen>
367
         </command>
368
         <command
369
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Union"
370
               icon="icons/functions/union.png"
371
               label="%command.label.3"
372
               style="push">
373
            <visibleWhen
374
                  checkEnabled="false">
375
               <reference
376
                     definitionId="OneSubCorpusSelected">
377
               </reference>
378
            </visibleWhen>
379
         </command>
380
         <command
381
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
382
               icon="icons/functions/inter.png"
383
               label="%command.label.4"
384
               style="push">
385
            <visibleWhen
386
                  checkEnabled="false">
387
               <reference
388
                     definitionId="OneSubCorpusSelected">
389
               </reference>
390
            </visibleWhen>
391
         </command>
392
      </menuContribution>
393
      <menuContribution
394
            allPopups="true"
395
            locationURI="toolbar:org.txm.rcp.toolbarfile">
396
            <command
397
                  commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
398
                  icon="icons/functions/compress.png"
399
                  label="%command.name.52"
400
                  style="push">
401
               <visibleWhen
402
                     checkEnabled="false">
403
                  <reference
404
                        definitionId="OneMainCorpusSelected">
405
                  </reference>
406
               </visibleWhen>
407
            </command>
408
      </menuContribution>
409
      <menuContribution
410
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.rcp.toolbarcorpus.corpus">
411
         <command
412
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.EditSubCorpus"
413
               icon="platform:/plugin/org.txm.rcp/icons/functions/pencil.png"
414
               style="push">
415
            <visibleWhen
416
                  checkEnabled="false">
417
               <and>
418
                  <reference
419
                        definitionId="OneSubCorpusSelected">
420
                  </reference>
421
                  <reference
422
                        definitionId="ExpertEnabled">
423
                  </reference>
424
               </and>
425
            </visibleWhen>
426
         </command>
427
         <command
428
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.EditPartition"
429
               icon="platform:/plugin/org.txm.rcp/icons/functions/pencil.png"
430
               style="push">
431
            <visibleWhen
432
                  checkEnabled="false">
433
               <and>
434
                  <reference
435
                        definitionId="OnePartitionSelected">
436
                  </reference>
437
                  <reference
438
                        definitionId="ExpertEnabled">
439
                  </reference>
440
               </and>
441
            </visibleWhen>
442
         </command>
443
         <command
444
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
445
               icon="icons/functions/subcorpus.png"
446
               style="push">
447
            <visibleWhen
448
                  checkEnabled="false">
449
               <reference
450
                     definitionId="OneCorpusSelected">
451
               </reference>
452
            </visibleWhen>
453
         </command>
454
                        <command
455
                  commandId="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
456
                  icon="icons/functions/partition.png"
457
                  style="push">
458
               <visibleWhen
459
                     checkEnabled="false">
460
                  <reference
461
                        definitionId="OneCorpusSelected">
462
                  </reference>
463
               </visibleWhen>
464
            </command>
465
                        <command
466
                              commandId="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
467
                              icon="icons/functions/minus.png"
468
                              style="push"
469
                              tooltip="%command.tooltip.1">
470
                           <visibleWhen
471
                                 checkEnabled="false">
472
                              <reference
473
                                    definitionId="OneSubCorpusSelected">
474
                              </reference>
475
                           </visibleWhen>
476
                        </command>
477
                        <command
478
                              commandId="org.txm.searchengine.cqp.rcp.handlers.base.Union"
479
                              icon="icons/functions/union.png"
480
                              style="push">
481
                           <visibleWhen
482
                                 checkEnabled="false">
483
                              <reference
484
                                    definitionId="OneSubCorpusSelected">
485
                              </reference>
486
                           </visibleWhen>
487
                        </command>
488
                        <command
489
                              commandId="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
490
                              icon="icons/functions/inter.png"
491
                              style="push">
492
                           <visibleWhen
493
                                 checkEnabled="false">
494
                              <reference
495
                                    definitionId="OneSubCorpusSelected">
496
                              </reference>
497
                           </visibleWhen>
498
                        </command>
499
      </menuContribution>
500
   </extension>
501
   <extension
502
         point="org.eclipse.core.runtime.adapters">
503
      <factory
504
            adaptableType="org.txm.searchengine.cqp.corpus.CQPCorpus"
505
            class="org.txm.searchengine.cqp.rcp.adapters.CorpusAdapterFactory">
506
         <adapter
507
               type="org.eclipse.ui.model.IWorkbenchAdapter">
508
         </adapter>
509
      </factory>
510
   </extension>
511
   <extension
512
         point="org.eclipse.core.expressions.definitions">
513
      <definition
514
            id="OneMainCorpusSelected">
515
         <with
516
               variable="corporaSelection">
517
            <iterate
518
                  ifEmpty="false"
519
                  operator="and">
520
               <instanceof
521
                     value="org.txm.searchengine.cqp.corpus.MainCorpus">
522
               </instanceof>
523
            </iterate>
524
            <count
525
                  value="1">
526
            </count>
527
         </with>
528
      </definition>
529
      <definition
530
            id="OneSubCorpusSelected">
531
         <with
532
               variable="corporaSelection">
533
            <iterate
534
                  operator="and">
535
               <instanceof
536
                     value="org.txm.searchengine.cqp.corpus.Subcorpus">
537
               </instanceof>
538
            </iterate>
539
            <count
540
                  value="1">
541
            </count>
542
         </with>
543
      </definition>
544
      <definition
545
            id="OneCorpusSelected">
546
         <with
547
               variable="corporaSelection">
548
            <iterate
549
                  ifEmpty="false"
550
                  operator="and">
551
               <instanceof
552
                     value="org.txm.searchengine.cqp.corpus.CQPCorpus">
553
               </instanceof>
554
            </iterate>
555
            <count
556
                  value="1">
557
            </count>
558
         </with>
559
      </definition>
560
   </extension>
561
   <extension
562
         point="org.eclipse.ui.editors">
563
      <editor
564
            class="org.txm.searchengine.cqp.rcp.editor.SubcorpusEditor"
565
            default="false"
566
            icon="icons/functions/subcorpus.png"
567
            id="org.txm.searchengine.cqp.rcp.editor.SubcorpusEditor"
568
            name="%editor.name">
569
      </editor>
570
      <editor
571
            class="org.txm.searchengine.cqp.rcp.editor.PartitionEditor"
572
            default="false"
573
            icon="icons/functions/partition.png"
574
            id="org.txm.searchengine.cqp.rcp.editor.PartitionEditor"
575
            name="%editor.name.0">
576
      </editor>
577
   </extension>
578

    
579
</plugin>