Statistics
| Revision:

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

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

    
373
</plugin>