Statistics
| Revision:

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

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

    
301
</plugin>