Revision 859 tmp/org.txm.index.rcp/plugin.xml

plugin.xml (revision 859)
115 115
               <menuContribution
116 116
                     locationURI="popup:org.txm.index.rcp.editors.DictionnaryEditor">
117 117
                  <command
118
                        commandId="org.txm.index.rcp.commands.SendToIndex"
118
                        commandId="org.txm.index.rcp.handlers.ComputeIndex"
119 119
                        icon="icons/index.png"
120 120
                        label="%command.name.2"
121 121
                        style="push">
122
                     <parameter
123
                           name="sendToTargetCommandId"
124
                           value="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
125
                     </parameter>
126 122
                  </command>
127 123
               </menuContribution>
128 124
               <menuContribution
129 125
                     locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
130 126
                  <command
131
                        commandId="org.txm.index.rcp.commands.SendToIndex"
127
                        commandId="org.txm.index.rcp.handlers.ComputeIndex"
132 128
                        icon="icons/index.png"
133 129
                        label="%command.name.2"
134 130
                        style="push">
135
                     <parameter
136
                           name="sendToTargetCommandId"
137
                           value="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
138
                     </parameter>
139 131
                  </command>
140 132
               </menuContribution>
133
               <menuContribution
134
                     locationURI="popup:ChartEditorContextMenuItemArea.ItemMenu">
135
                  <command
136
                        commandId="org.txm.index.rcp.handlers.ComputeIndex"
137
                        icon="icons/index.png"
138
                        label="%command.name.2"
139
                        style="push">
140
                     <visibleWhen
141
                           checkEnabled="false">
142
                        <reference
143
                              definitionId="ProgressionEditorActive">
144
                        </reference>
145
                     </visibleWhen>
146
                  </command>
147
               </menuContribution>
141 148
      
142 149
   </extension>
143 150
   <extension
......
190 197
            id="org.txm.index.rcp.handlers.ComputeLexicon"
191 198
            name="%command.name.0">
192 199
      </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 200

  
203 201
      <command
204 202
            defaultHandler="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable"
......
272 270
         point="org.eclipse.ui.handlers">
273 271
      <handler
274 272
            class="org.txm.index.rcp.handlers.SendIndexTo"
275
            commandId="org.txm.progression.rcp.commands.SendToProgression">
273
            commandId="org.txm.progression.rcp.handlers.ComputeProgression">
276 274
         <activeWhen>
277 275
         <and>
278 276
         <or>
......
285 283
         
286 284
         </or>
287 285
         <reference
288
               definitionId="OneOrMoreElementSelected">
286
               definitionId="SendSelectionContextNotActive">
289 287
         </reference>
290 288
         </and>
291 289
         </activeWhen>
292 290
      </handler>
293 291
      <handler
294 292
            class="org.txm.index.rcp.handlers.SendIndexTo"
295
            commandId="org.txm.concordance.rcp.commands.SendToConcordance">
293
            commandId="org.txm.concordance.rcp.handlers.ComputeConcordance">
296 294
         <activeWhen>
297 295
         <and>
298 296
            <or>
......
303 301
                     definitionId="LexiconEditorActive">
304 302
               </reference>
305 303
            </or>
306
            <reference
307
                  definitionId="OneOrMoreElementSelected">
308
            </reference>
304
            
305
            
306
               <reference
307
                     definitionId="SendSelectionContextNotActive">
308
               </reference>
309
            
309 310
            </and>
310 311
         </activeWhen>
311 312
      </handler>
312 313
      <handler
313 314
            class="org.txm.index.rcp.handlers.SendIndexTo"
314
            commandId="org.txm.cooccurrence.rcp.commands.SendToCooccurrence">
315
            commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
315 316
         <activeWhen>
316 317
         <and>
317 318
               <reference
318 319
                     definitionId="IndexEditorActive">
319 320
               </reference>
320 321
               <reference
321
                     definitionId="OneOrMoreElementSelected">
322
                     definitionId="SendSelectionContextNotActive">
322 323
               </reference>
323 324
               </and>
324 325
         </activeWhen>
325 326
      </handler>
326 327
      <handler
327 328
            class="org.txm.index.rcp.handlers.SendIndexTo"
328
            commandId="org.txm.index.rcp.commands.SendToIndex">
329
            commandId="org.txm.index.rcp.handlers.ComputeIndex">
329 330
         <activeWhen>
330 331
         <and>
331 332
               <reference
332 333
                     definitionId="LexiconEditorActive">
333 334
               </reference>
334 335
               <reference
335
                     definitionId="OneOrMoreElementSelected">
336
                     definitionId="SendSelectionContextNotActive">
336 337
               </reference>
337 338
               </and>
338 339
         </activeWhen>

Also available in: Unified diff