Statistiques
| Révision :

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

Historique | Voir | Annoter | Télécharger (14,59 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
      </menuContribution>
337
   </extension>
338
   <extension
339
         point="org.eclipse.core.runtime.adapters">
340
      <factory
341
            adaptableType="org.txm.searchengine.cqp.corpus.CQPCorpus"
342
            class="org.txm.searchengine.cqp.rcp.adapters.CorpusAdapterFactory">
343
         <adapter
344
               type="org.eclipse.ui.model.IWorkbenchAdapter">
345
         </adapter>
346
      </factory>
347
   </extension>
348
   <extension
349
         point="org.eclipse.core.expressions.definitions">
350
      <definition
351
            id="OneMainCorpusSelected">
352
         <with
353
               variable="selection">
354
            <iterate
355
                  ifEmpty="false"
356
                  operator="and">
357
               <instanceof
358
                     value="org.txm.searchengine.cqp.corpus.MainCorpus">
359
               </instanceof>
360
            </iterate>
361
         </with>
362
      </definition>
363
      <definition
364
            id="OneSubCorpusSelected">
365
         <with
366
               variable="selection">
367
            <iterate
368
                  ifEmpty="false"
369
                  operator="and">
370
               <instanceof
371
                     value="org.txm.searchengine.cqp.corpus.Subcorpus">
372
               </instanceof>
373
            </iterate>
374
         </with>
375
      </definition>
376
      <definition
377
            id="OneCorpusSelected">
378
         <with
379
               variable="selection">
380
            <iterate
381
                  ifEmpty="false"
382
                  operator="and">
383
               <instanceof
384
                     value="org.txm.searchengine.cqp.corpus.CQPCorpus">
385
               </instanceof>
386
            </iterate>
387
         </with>
388
      </definition>
389
   </extension>
390
   <extension
391
         point="org.eclipse.ui.editors">
392
      <editor
393
            class="org.txm.searchengine.cqp.rcp.editor.SubcorpusEditor"
394
            default="false"
395
            icon="icons/functions/subcorpus.png"
396
            id="org.txm.searchengine.cqp.rcp.editor.SubcorpusEditor"
397
            name="Subcorpus">
398
      </editor>
399
      <editor
400
            class="org.txm.searchengine.cqp.rcp.editor.PartitionEditor"
401
            default="false"
402
            icon="icons/functions/partition.png"
403
            id="org.txm.searchengine.cqp.rcp.editor.PartitionEditor"
404
            name="Partition">
405
      </editor>
406
   </extension>
407

    
408
</plugin>