Statistics
| Revision:

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

History | View | Annotate | Download (13.6 kB)

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

    
379
</plugin>