Statistics
| Revision:

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

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

    
312
</plugin>