Statistics
| Revision:

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

History | View | Annotate | Download (9.9 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="Subcorpus">
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="menu:menu.file.export">
142
         <command
143
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
144
               icon="icons/functions/compress.png"
145
               label="%command.name.52"
146
               style="push"
147
               tooltip="%command.tooltip.67">
148
            <visibleWhen
149
                  checkEnabled="false">
150
               <reference
151
                     definitionId="OneMainCorpusSelected">
152
               </reference>
153
            </visibleWhen>
154
         </command>
155
      </menuContribution>
156
      <menuContribution
157
            allPopups="true"
158
            locationURI="toolbar:org.txm.rcp.toolbarfile">
159
            <command
160
                  commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus"
161
                  icon="icons/functions/compress.png"
162
                  label="%command.name.52"
163
                  style="push"
164
                  tooltip="%command.tooltip.71">
165
               <visibleWhen
166
                     checkEnabled="false">
167
                  <reference
168
                        definitionId="OneMainCorpusSelected">
169
                  </reference>
170
               </visibleWhen>
171
            </command>
172
      </menuContribution>
173
      <menuContribution
174
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.synopticedition.rcp.handlers.OpenEdition">
175
         <command
176
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
177
               icon="icons/functions/subcorpus.png"
178
               style="push">
179
            <visibleWhen
180
                  checkEnabled="false">
181
               <reference
182
                     definitionId="OneCorpusSelected">
183
               </reference>
184
            </visibleWhen>
185
         </command>
186
                        <command
187
                  commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreatePartition"
188
                  icon="icons/functions/partition.png"
189
                  style="push"
190
                  tooltip="%command.tooltip.4">
191
               <visibleWhen
192
                     checkEnabled="false">
193
                  <reference
194
                        definitionId="OneCorpusSelected">
195
                  </reference>
196
               </visibleWhen>
197
            </command>
198
      </menuContribution>
199
      <menuContribution
200
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.manage">
201
         <command
202
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
203
               icon="icons/functions/subcorpus.png"
204
               style="push">
205
            <visibleWhen
206
                  checkEnabled="false">
207
               <reference
208
                     definitionId="OneCorpusSelected">
209
               </reference>
210
            </visibleWhen>
211
         </command>
212
         <command
213
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreatePartition"
214
               icon="icons/functions/partition.png"
215
               style="push">
216
            <visibleWhen
217
                  checkEnabled="false">
218
               <reference
219
                     definitionId="OneCorpusSelected">
220
               </reference>
221
            </visibleWhen>
222
         </command>
223
      </menuContribution>
224
      <menuContribution
225
            locationURI="menu:menu.corpus?after=menu.corpus.build">
226
         <command
227
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus"
228
               icon="icons/functions/subcorpus.png"
229
               style="push">
230
            <visibleWhen
231
                  checkEnabled="false">
232
               <reference
233
                     definitionId="OneCorpusSelected">
234
               </reference>
235
            </visibleWhen>
236
         </command>
237
         <command
238
               commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreatePartition"
239
               icon="icons/functions/partition.png"
240
               style="push">
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.Corpus"
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

    
270
</plugin>