Statistiques
| Révision :

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

Historique | Voir | Annoter | Télécharger (16,19 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="edit"
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="Substraction">
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="Union">
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="Intersection">
56
      </command>
57
   </extension>
58
   <extension
59
         point="org.eclipse.ui.preferencePages">
60
      <page
61
            category="org.txm.searchengine.rcp.preferences.SearchEnginePreferencesPage"
62
            class="org.txm.searchengine.cqp.rcp.preferences.CQPPreferencePage"
63
            id="org.txm.searchengine.cqp.rcp.preferences.CQPPreferencePage"
64
            name="CQP">
65
      </page>
66
      <page
67
            category="org.txm.rcp.preferences.UserPreferencePage"
68
            class="org.txm.searchengine.cqp.rcp.preferences.SubcorpusPreferencePage"
69
            id="org.txm.searchengine.cqp.rcp.preferences.SubcorpusPreferencePage"
70
            name="Subcorpus">
71
      </page>
72
   </extension>
73
   <extension
74
         point="org.eclipse.ui.menus">
75
            <menuContribution
76
            locationURI="popup:org.txm.rcp.views.BasesView">
77
         <command
78
               commandId="org.txm.rcp.commands.workspace.AddProject"
79
               label="%command.label.36"
80
               style="push">
81
            <visibleWhen
82
                  checkEnabled="false">
83
               <reference
84
                     definitionId="OneProjectSelected">
85
               </reference>
86
            </visibleWhen>
87
         </command>
88
         <separator
89
               name="org.txm.rcp.separator1">
90
         </separator>
91
         <command
92
               commandId="org.txm.rcp.commands.base.DeleteObject"
93
               icon="icons/functions/delete.png"
94
               style="push"
95
               tooltip="%command.tooltip.33">
96
            <visibleWhen
97
                  checkEnabled="false">
98
               <or>
99
                  <reference
100
                        definitionId="OnePartitionSelected">
101
                  </reference>
102
                  <reference
103
                        definitionId="OneSubCorpusSelected">
104
                  </reference>
105
                  <reference
106
                        definitionId="OneBaseSelected">
107
                  </reference>
108
                  <reference
109
                        definitionId="OneIndexSelected">
110
                  </reference>
111
                  <reference
112
                        definitionId="OneLexiconSelected">
113
                  </reference>
114
                  <reference
115
                        definitionId="OneConcordanceSelected">
116
                  </reference>
117
                  <reference
118
                        definitionId="OneCASelected">
119
                  </reference>
120
                  <reference
121
                        definitionId="OneSpecificitiesResultSelected">
122
                  </reference>
123
                  <reference
124
                        definitionId="OneMainCorpusSelected">
125
                  </reference>
126
               </or>
127
            </visibleWhen>
128
         </command>
129
         <command
130
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.OpenBiblio"
131
               icon="icons/functions/biblio.png"
132
               label="%command.label.148"
133
               style="push"
134
               tooltip="%command.tooltip.91">
135
            <visibleWhen
136
                  checkEnabled="false">
137
               <or>
138
                  <reference
139
                        definitionId="OneBaseSelected">
140
                  </reference>
141
                  <reference
142
                        definitionId="OneTextSelected">
143
                  </reference>
144
               </or>
145
            </visibleWhen>
146
         </command>
147
      </menuContribution>
148
      <menuContribution
149
            locationURI="popup:org.txm.rcp.corporaview.export">
150
         <command
151
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
152
               icon="icons/functions/compress.png"
153
               label="%command.name.52"
154
               style="push">
155
            <visibleWhen
156
                  checkEnabled="false">
157
               <reference
158
                     definitionId="OneMainCorpusSelected">
159
               </reference>
160
            </visibleWhen>
161
         </command>
162
            </menuContribution>
163
      <menuContribution
164
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.manage">
165
         <command
166
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
167
               icon="icons/functions/subcorpus.png"
168
               style="push">
169
            <visibleWhen
170
                  checkEnabled="false">
171
               <reference
172
                     definitionId="OneCorpusSelected">
173
               </reference>
174
            </visibleWhen>
175
         </command>
176
         <command
177
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
178
               icon="icons/functions/partition.png"
179
               style="push">
180
            <visibleWhen
181
                  checkEnabled="false">
182
               <or>
183
                  <reference
184
                        definitionId="OneCorpusSelected">
185
                  </reference>
186
               </or>
187
            </visibleWhen>
188
         </command>
189
         <command
190
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
191
               label="Substract"
192
               style="push">
193
            <visibleWhen
194
                  checkEnabled="false">
195
               <reference
196
                     definitionId="OneSubCorpusSelected">
197
               </reference>
198
            </visibleWhen>
199
         </command>
200
         <command
201
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
202
               label="Intersect"
203
               style="push">
204
            <visibleWhen
205
                  checkEnabled="false">
206
               <reference
207
                     definitionId="OneSubCorpusSelected">
208
               </reference>
209
            </visibleWhen>
210
         </command>
211
         <command
212
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Union"
213
               label="Add"
214
               style="push">
215
            <visibleWhen
216
                  checkEnabled="false">
217
               <reference
218
                     definitionId="OneSubCorpusSelected">
219
               </reference>
220
            </visibleWhen>
221
         </command>
222
      </menuContribution>
223
      <menuContribution
224
            locationURI="menu:menu.file.export?after=menu.file.export.begin">
225
         <command
226
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
227
               icon="icons/functions/compress.png"
228
               label="%command.name.52"
229
               style="push">
230
            <visibleWhen
231
                  checkEnabled="false">
232
               <reference
233
                     definitionId="OneMainCorpusSelected">
234
               </reference>
235
            </visibleWhen>
236
         </command>
237
      </menuContribution>
238
      <menuContribution
239
            locationURI="menu:menu.corpus?after=menu.corpus.build">
240
         <command
241
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
242
               icon="icons/functions/subcorpus.png"
243
               style="push">
244
            <visibleWhen
245
                  checkEnabled="false">
246
               <reference
247
                     definitionId="OneCorpusSelected">
248
               </reference>
249
            </visibleWhen>
250
         </command>
251
         <command
252
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
253
               icon="icons/functions/partition.png"
254
               style="push">
255
            <visibleWhen
256
                  checkEnabled="false">
257
               <reference
258
                     definitionId="OneCorpusSelected">
259
               </reference>
260
            </visibleWhen>
261
         </command>
262
         <command
263
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
264
               label="Substract"
265
               style="push">
266
            <visibleWhen
267
                  checkEnabled="false">
268
               <reference
269
                     definitionId="OneSubCorpusSelected">
270
               </reference>
271
            </visibleWhen>
272
         </command>
273
         <command
274
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
275
               label="Intersect"
276
               style="push">
277
            <visibleWhen
278
                  checkEnabled="false">
279
               <reference
280
                     definitionId="OneSubCorpusSelected">
281
               </reference>
282
            </visibleWhen>
283
         </command>
284
         <command
285
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Union"
286
               label="Add"
287
               style="push">
288
            <visibleWhen
289
                  checkEnabled="false">
290
               <reference
291
                     definitionId="OneSubCorpusSelected">
292
               </reference>
293
            </visibleWhen>
294
         </command>
295
      </menuContribution>
296
      <menuContribution
297
            allPopups="true"
298
            locationURI="toolbar:org.txm.rcp.toolbarfile">
299
            <command
300
                  commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
301
                  icon="icons/functions/compress.png"
302
                  label="%command.name.52"
303
                  style="push">
304
               <visibleWhen
305
                     checkEnabled="false">
306
                  <reference
307
                        definitionId="OneMainCorpusSelected">
308
                  </reference>
309
               </visibleWhen>
310
            </command>
311
      </menuContribution>
312
      <menuContribution
313
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.rcp.toolbarcorpus.corpus">
314
         <command
315
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
316
               icon="icons/functions/subcorpus.png"
317
               style="push">
318
            <visibleWhen
319
                  checkEnabled="false">
320
               <reference
321
                     definitionId="OneCorpusSelected">
322
               </reference>
323
            </visibleWhen>
324
         </command>
325
                        <command
326
                  commandId="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
327
                  icon="icons/functions/partition.png"
328
                  style="push">
329
               <visibleWhen
330
                     checkEnabled="false">
331
                  <reference
332
                        definitionId="OneCorpusSelected">
333
                  </reference>
334
               </visibleWhen>
335
            </command>
336
                        <command
337
                              commandId="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
338
                              label="Substract"
339
                              style="push">
340
                           <visibleWhen
341
                                 checkEnabled="false">
342
                              <reference
343
                                    definitionId="OneSubCorpusSelected">
344
                              </reference>
345
                           </visibleWhen>
346
                        </command>
347
                        <command
348
                              commandId="org.txm.searchengine.cqp.rcp.handlers.base.Union"
349
                              label=""
350
                              style="push">
351
                           <visibleWhen
352
                                 checkEnabled="false">
353
                              <reference
354
                                    definitionId="OneSubCorpusSelected">
355
                              </reference>
356
                           </visibleWhen>
357
                        </command>
358
                        <command
359
                              commandId="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
360
                              label=""
361
                              style="push">
362
                           <visibleWhen
363
                                 checkEnabled="false">
364
                              <reference
365
                                    definitionId="OneSubCorpusSelected">
366
                              </reference>
367
                           </visibleWhen>
368
                        </command>
369
      </menuContribution>
370
   </extension>
371
   <extension
372
         point="org.eclipse.core.runtime.adapters">
373
      <factory
374
            adaptableType="org.txm.searchengine.cqp.corpus.CQPCorpus"
375
            class="org.txm.searchengine.cqp.rcp.adapters.CorpusAdapterFactory">
376
         <adapter
377
               type="org.eclipse.ui.model.IWorkbenchAdapter">
378
         </adapter>
379
      </factory>
380
   </extension>
381
   <extension
382
         point="org.eclipse.core.expressions.definitions">
383
      <definition
384
            id="OneMainCorpusSelected">
385
         <with
386
               variable="selection">
387
            <iterate
388
                  ifEmpty="false"
389
                  operator="and">
390
               <instanceof
391
                     value="org.txm.searchengine.cqp.corpus.MainCorpus">
392
               </instanceof>
393
            </iterate>
394
         </with>
395
      </definition>
396
      <definition
397
            id="OneSubCorpusSelected">
398
         <with
399
               variable="selection">
400
            <iterate
401
                  ifEmpty="false"
402
                  operator="and">
403
               <instanceof
404
                     value="org.txm.searchengine.cqp.corpus.Subcorpus">
405
               </instanceof>
406
            </iterate>
407
         </with>
408
      </definition>
409
      <definition
410
            id="OneCorpusSelected">
411
         <with
412
               variable="selection">
413
            <iterate
414
                  ifEmpty="false"
415
                  operator="and">
416
               <instanceof
417
                     value="org.txm.searchengine.cqp.corpus.CQPCorpus">
418
               </instanceof>
419
            </iterate>
420
         </with>
421
      </definition>
422
   </extension>
423
   <extension
424
         point="org.eclipse.ui.editors">
425
      <editor
426
            class="org.txm.searchengine.cqp.rcp.editor.SubcorpusEditor"
427
            default="false"
428
            icon="icons/functions/subcorpus.png"
429
            id="org.txm.searchengine.cqp.rcp.editor.SubcorpusEditor"
430
            name="Subcorpus">
431
      </editor>
432
      <editor
433
            class="org.txm.searchengine.cqp.rcp.editor.PartitionEditor"
434
            default="false"
435
            icon="icons/functions/partition.png"
436
            id="org.txm.searchengine.cqp.rcp.editor.PartitionEditor"
437
            name="Partition">
438
      </editor>
439
   </extension>
440

    
441
</plugin>