Statistics
| Revision:

root / tmp / org.txm.index.rcp / plugin.xml @ 845

History | View | Annotate | Download (11.4 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.menus">
6
         
7
      <menuContribution
8
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.doc">
9
                    <command
10
               commandId="org.txm.index.rcp.handlers.ComputeLexicon"
11
               icon="icons/lexicon.png"
12
               style="push">
13
            <visibleWhen
14
                  checkEnabled="false">
15
               <reference
16
                     definitionId="OneCorpusSelected">
17
               </reference>
18
            </visibleWhen>
19
         </command>
20
         <command
21
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
22
               icon="icons/index.png"
23
               style="push">
24
            <visibleWhen
25
                  checkEnabled="false">
26
               <or>
27
                  <reference
28
                        definitionId="OnePartitionSelected">
29
                  </reference>
30
                  <reference
31
                        definitionId="OneCorpusSelected">
32
                  </reference>
33
               </or>
34
            </visibleWhen>
35
         </command>
36
      </menuContribution>
37
      <menuContribution
38
            locationURI="menu:menu.tools?after=menu.tools.separator.doc">
39
                    <command
40
               commandId="org.txm.index.rcp.handlers.ComputeLexicon"
41
               icon="icons/lexicon.png"
42
               style="push">
43
            <visibleWhen
44
                  checkEnabled="false">
45
               <reference
46
                     definitionId="OneCorpusSelected">
47
               </reference>
48
            </visibleWhen>
49
         </command>
50
         <command
51
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
52
               icon="icons/index.png"
53
               style="push">
54
            <visibleWhen
55
                  checkEnabled="false">
56
               <or>
57
                  <reference
58
                        definitionId="OnePartitionSelected">
59
                  </reference>
60
                  <reference
61
                        definitionId="OneCorpusSelected">
62
                  </reference>
63
               </or>
64
            </visibleWhen>
65
         </command>
66
      </menuContribution>
67
      <menuContribution
68
            allPopups="false"
69
            locationURI="toolbar:org.txm.rcp.toolbartools">
70
                    <command
71
               commandId="org.txm.index.rcp.handlers.ComputeLexicon"
72
               icon="icons/lexicon.png"
73
               style="push">
74
            <visibleWhen
75
                  checkEnabled="false">
76
               <reference
77
                     definitionId="OneCorpusSelected">
78
               </reference>
79
            </visibleWhen>
80
         </command>
81
         <command
82
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
83
               icon="icons/index.png"
84
               style="push"
85
               tooltip="%command.tooltip">
86
            <visibleWhen
87
                  checkEnabled="false">
88
               <or>
89
                  <reference
90
                        definitionId="OneCorpusSelected">
91
                  </reference>
92
               </or>
93
            </visibleWhen>
94
         </command>
95
      </menuContribution>
96
      <menuContribution
97
            allPopups="false"
98
            locationURI="toolbar:org.txm.rcp.toolbartools?after=ComputeLexicalTableFromPartition">
99
         <command
100
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
101
               icon="icons/index.png"
102
               id="ComputeIndexFromPartition"
103
               style="push"
104
               tooltip="%command.tooltip">
105
            <visibleWhen
106
                  checkEnabled="false">
107
               <or>
108
                  <reference
109
                        definitionId="OnePartitionSelected">
110
                  </reference>
111
               </or>
112
            </visibleWhen>
113
         </command>
114
      </menuContribution>
115
               <menuContribution
116
                     locationURI="popup:org.txm.index.rcp.editors.DictionnaryEditor">
117
                  <command
118
                        commandId="org.txm.index.rcp.commands.SendToIndex"
119
                        icon="icons/index.png"
120
                        label="%command.name.2"
121
                        style="push">
122
                     <parameter
123
                           name="sendToTargetCommandId"
124
                           value="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
125
                     </parameter>
126
                  </command>
127
               </menuContribution>
128
               <menuContribution
129
                     locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
130
                  <command
131
                        commandId="org.txm.index.rcp.commands.SendToIndex"
132
                        icon="icons/index.png"
133
                        label="%command.name.2"
134
                        style="push">
135
                     <parameter
136
                           name="sendToTargetCommandId"
137
                           value="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
138
                     </parameter>
139
                  </command>
140
               </menuContribution>
141
      
142
   </extension>
143
   <extension
144
         point="org.eclipse.ui.editors">
145
      <editor
146
            class="org.txm.index.rcp.editors.IndexEditor"
147
            default="false"
148
            icon="icons/index.png"
149
            id="org.txm.index.rcp.editors.IndexEditor"
150
            name="%editor.name">
151
      </editor>
152
      <editor
153
            class="org.txm.index.rcp.editors.DictionnaryEditor"
154
            default="false"
155
            icon="icons/lexicon.png"
156
            id="org.txm.index.rcp.editors.DictionnaryEditor"
157
            name="%editor.name.0">
158
      </editor>
159
   </extension>
160
   <extension
161
         point="org.eclipse.core.runtime.adapters">
162
      <factory
163
            adaptableType="org.txm.index.core.functions.Index"
164
            class="org.txm.index.rcp.adapters.IndexAdapterFactory">
165
         <adapter
166
               type="org.eclipse.ui.model.IWorkbenchAdapter">
167
         </adapter>
168
      </factory>
169
      <factory
170
            adaptableType="org.txm.index.core.functions.Lexicon"
171
            class="org.txm.index.rcp.adapters.LexiconAdapterFactory">
172
         <adapter
173
               type="org.eclipse.ui.model.IWorkbenchAdapter">
174
         </adapter>
175
      </factory>
176
   </extension>
177
   <extension
178
         point="org.eclipse.ui.commands">
179
         
180
      <command
181
            categoryId="org.txm.rcp.category.txm"
182
            defaultHandler="org.txm.index.rcp.handlers.ComputeIndex"
183
            id="org.txm.index.rcp.handlers.ComputeIndex"
184
            name="%command.name"
185
            returnTypeId="org.txm.index.core.functions.Index">
186
      </command>
187
      <command
188
            categoryId="org.txm.rcp.category.txm"
189
            defaultHandler="org.txm.index.rcp.handlers.ComputeLexicon"
190
            id="org.txm.index.rcp.handlers.ComputeLexicon"
191
            name="%command.name.0">
192
      </command>
193
      <command
194
            id="org.txm.index.rcp.commands.SendToIndex"
195
            name="%command.name.2">
196
         <commandParameter
197
               id="sendToTargetCommandId"
198
               name="sendToTargetCommandId"
199
               optional="true">
200
         </commandParameter>
201
      </command>
202

    
203
      <command
204
            defaultHandler="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable"
205
            id="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable"
206
            name="%command.name.43">
207
      </command>
208
      
209
      
210
   </extension>
211
   <extension
212
         point="org.eclipse.core.expressions.definitions">
213
      <definition
214
            id="OneIndexSelected">
215
         <with
216
               variable="selection">
217
            <iterate
218
                  ifEmpty="false"
219
                  operator="and">
220
               <instanceof
221
                     value="org.txm.index.core.functions.Index">
222
               </instanceof>
223
            </iterate>
224
         </with>
225
      </definition>
226
      <definition
227
            id="OneLexiconSelected">
228
         <with
229
               variable="selection">
230
            <iterate
231
                  ifEmpty="false"
232
                  operator="and">
233
               <instanceof
234
                     value="org.txm.index.core.functions.Lexicon">
235
               </instanceof>
236
            </iterate>
237
         </with>
238
      </definition>
239
      <definition
240
            id="IndexEditorActive">
241
         <with
242
               variable="activePart">
243
            <instanceof
244
                  value="org.txm.index.rcp.editors.IndexEditor">
245
            </instanceof>
246
         </with>
247
      </definition>
248
      <definition
249
            id="LexiconEditorActive">
250
         <with
251
               variable="activePart">
252
            <instanceof
253
                  value="org.txm.index.rcp.editors.DictionnaryEditor">
254
            </instanceof>
255
         </with>
256
      </definition>
257
   </extension>
258
   <extension
259
         point="org.txm.statengine.r.rcp.sendtor">
260
      <sendtorcommand></sendtorcommand>
261
   </extension>
262
   <extension
263
         point="org.eclipse.ui.preferencePages">
264
      <page
265
            category="org.txm.rcp.preferences.UserPreferencePage"
266
            class="org.txm.index.rcp.preferences.IndexPreferencesPage"
267
            id="org.txm.index.rcp.preferences.IndexPreferencesPage"
268
            name="%page.name">
269
      </page>
270
   </extension>
271
   <extension
272
         point="org.eclipse.ui.handlers">
273
      <handler
274
            class="org.txm.index.rcp.handlers.SendIndexTo"
275
            commandId="org.txm.progression.rcp.commands.SendToProgression">
276
         <activeWhen>
277
         <and>
278
         <or>
279
           <reference
280
                 definitionId="IndexEditorActive">
281
           </reference>
282
           <reference
283
                 definitionId="LexiconEditorActive">
284
           </reference>
285
         
286
         </or>
287
         <reference
288
               definitionId="OneOrMoreElementSelected">
289
         </reference>
290
         </and>
291
         </activeWhen>
292
      </handler>
293
      <handler
294
            class="org.txm.index.rcp.handlers.SendIndexTo"
295
            commandId="org.txm.concordance.rcp.commands.SendToConcordance">
296
         <activeWhen>
297
         <and>
298
            <or>
299
               <reference
300
                     definitionId="IndexEditorActive">
301
               </reference>
302
               <reference
303
                     definitionId="LexiconEditorActive">
304
               </reference>
305
            </or>
306
            <reference
307
                  definitionId="OneOrMoreElementSelected">
308
            </reference>
309
            </and>
310
         </activeWhen>
311
      </handler>
312
      <handler
313
            class="org.txm.index.rcp.handlers.SendIndexTo"
314
            commandId="org.txm.cooccurrence.rcp.commands.SendToCooccurrence">
315
         <activeWhen>
316
         <and>
317
               <reference
318
                     definitionId="IndexEditorActive">
319
               </reference>
320
               <reference
321
                     definitionId="OneOrMoreElementSelected">
322
               </reference>
323
               </and>
324
         </activeWhen>
325
      </handler>
326
      <handler
327
            class="org.txm.index.rcp.handlers.SendIndexTo"
328
            commandId="org.txm.index.rcp.commands.SendToIndex">
329
         <activeWhen>
330
         <and>
331
               <reference
332
                     definitionId="LexiconEditorActive">
333
               </reference>
334
               <reference
335
                     definitionId="OneOrMoreElementSelected">
336
               </reference>
337
               </and>
338
         </activeWhen>
339
      </handler>
340
   </extension>
341

    
342
</plugin>