Statistics
| Revision:

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

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

    
349
</plugin>