Statistiques
| Révision :

root / tmp / org.txm.searchengine.cqp.rcp / plugin.xml @ 3151

Historique | Voir | Annoter | Télécharger (13,46 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
      </menuContribution>
190
      <menuContribution
191
            locationURI="menu:menu.file.export?after=menu.file.export.begin">
192
         <command
193
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
194
               icon="icons/functions/compress.png"
195
               label="%command.name.52"
196
               style="push">
197
            <visibleWhen
198
                  checkEnabled="false">
199
               <reference
200
                     definitionId="OneMainCorpusSelected">
201
               </reference>
202
            </visibleWhen>
203
         </command>
204
      </menuContribution>
205
      <menuContribution
206
            locationURI="menu:menu.corpus?after=menu.corpus.build">
207
         <command
208
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
209
               icon="icons/functions/subcorpus.png"
210
               style="push">
211
            <visibleWhen
212
                  checkEnabled="false">
213
               <reference
214
                     definitionId="OneCorpusSelected">
215
               </reference>
216
            </visibleWhen>
217
         </command>
218
         <command
219
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
220
               icon="icons/functions/partition.png"
221
               style="push">
222
            <visibleWhen
223
                  checkEnabled="false">
224
               <reference
225
                     definitionId="OneCorpusSelected">
226
               </reference>
227
            </visibleWhen>
228
         </command>
229
         <command
230
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Substraction"
231
               label="MINUS"
232
               style="push">
233
            <visibleWhen
234
                  checkEnabled="false">
235
               <reference
236
                     definitionId="OneSubCorpusSelected">
237
               </reference>
238
            </visibleWhen>
239
         </command>
240
         <command
241
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Intersection"
242
               label="INTER"
243
               style="push">
244
            <visibleWhen
245
                  checkEnabled="false">
246
               <reference
247
                     definitionId="OneSubCorpusSelected">
248
               </reference>
249
            </visibleWhen>
250
         </command>
251
         <command
252
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.Union"
253
               label="UNION"
254
               style="push">
255
            <visibleWhen
256
                  checkEnabled="false">
257
               <reference
258
                     definitionId="OneSubCorpusSelected">
259
               </reference>
260
            </visibleWhen>
261
         </command>
262
      </menuContribution>
263
      <menuContribution
264
            allPopups="true"
265
            locationURI="toolbar:org.txm.rcp.toolbarfile">
266
            <command
267
                  commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
268
                  icon="icons/functions/compress.png"
269
                  label="%command.name.52"
270
                  style="push">
271
               <visibleWhen
272
                     checkEnabled="false">
273
                  <reference
274
                        definitionId="OneMainCorpusSelected">
275
                  </reference>
276
               </visibleWhen>
277
            </command>
278
      </menuContribution>
279
      <menuContribution
280
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.rcp.toolbarcorpus.corpus">
281
         <command
282
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
283
               icon="icons/functions/subcorpus.png"
284
               style="push">
285
            <visibleWhen
286
                  checkEnabled="false">
287
               <reference
288
                     definitionId="OneCorpusSelected">
289
               </reference>
290
            </visibleWhen>
291
         </command>
292
                        <command
293
                  commandId="org.txm.searchengine.cqp.rcp.handlers.base.ComputePartition"
294
                  icon="icons/functions/partition.png"
295
                  style="push">
296
               <visibleWhen
297
                     checkEnabled="false">
298
                  <reference
299
                        definitionId="OneCorpusSelected">
300
                  </reference>
301
               </visibleWhen>
302
            </command>
303
      </menuContribution>
304
   </extension>
305
   <extension
306
         point="org.eclipse.core.runtime.adapters">
307
      <factory
308
            adaptableType="org.txm.searchengine.cqp.corpus.CQPCorpus"
309
            class="org.txm.searchengine.cqp.rcp.adapters.CorpusAdapterFactory">
310
         <adapter
311
               type="org.eclipse.ui.model.IWorkbenchAdapter">
312
         </adapter>
313
      </factory>
314
   </extension>
315
   <extension
316
         point="org.eclipse.core.expressions.definitions">
317
      <definition
318
            id="OneMainCorpusSelected">
319
         <with
320
               variable="selection">
321
            <iterate
322
                  ifEmpty="false"
323
                  operator="and">
324
               <instanceof
325
                     value="org.txm.searchengine.cqp.corpus.MainCorpus">
326
               </instanceof>
327
            </iterate>
328
         </with>
329
      </definition>
330
      <definition
331
            id="OneSubCorpusSelected">
332
         <with
333
               variable="selection">
334
            <iterate
335
                  ifEmpty="false"
336
                  operator="and">
337
               <instanceof
338
                     value="org.txm.searchengine.cqp.corpus.Subcorpus">
339
               </instanceof>
340
            </iterate>
341
         </with>
342
      </definition>
343
      <definition
344
            id="OneCorpusSelected">
345
         <with
346
               variable="selection">
347
            <iterate
348
                  ifEmpty="false"
349
                  operator="and">
350
               <instanceof
351
                     value="org.txm.searchengine.cqp.corpus.CQPCorpus">
352
               </instanceof>
353
            </iterate>
354
         </with>
355
      </definition>
356
   </extension>
357
   <extension
358
         point="org.eclipse.ui.editors">
359
      <editor
360
            class="org.txm.searchengine.cqp.rcp.editor.SubcorpusEditor"
361
            default="false"
362
            icon="icons/functions/subcorpus.png"
363
            id="org.txm.searchengine.cqp.rcp.editor.SubcorpusEditor"
364
            name="Subcorpus">
365
      </editor>
366
      <editor
367
            class="org.txm.searchengine.cqp.rcp.editor.PartitionEditor"
368
            default="false"
369
            icon="icons/functions/partition.png"
370
            id="org.txm.searchengine.cqp.rcp.editor.PartitionEditor"
371
            name="Partition">
372
      </editor>
373
   </extension>
374

    
375
</plugin>