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

plugin.xml (revision 845)
113 113
         </command>
114 114
      </menuContribution>
115 115
               <menuContribution
116
            locationURI="popup:org.txm.index.rcp.editors.IndexEditor">
117
         <command
118
               commandId="org.txm.links.rcp.commands.SendToConcordance"
119
               style="push">
120
         </command>
121
         <command
122
               commandId="org.txm.links.rcp.commands.SendToCooccurrence"
123
               style="push">
124
         </command>
125
         <command
126
               commandId="org.txm.links.rcp.commands.SendToProgression"
127
               style="push">
128
         </command>
129
      </menuContribution>
130
               <menuContribution
131 116
                     locationURI="popup:org.txm.index.rcp.editors.DictionnaryEditor">
132 117
                  <command
133
                        commandId="org.txm.links.rcp.commands.SendToConcordance"
118
                        commandId="org.txm.index.rcp.commands.SendToIndex"
119
                        icon="icons/index.png"
120
                        label="%command.name.2"
134 121
                        style="push">
122
                     <parameter
123
                           name="sendToTargetCommandId"
124
                           value="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
125
                     </parameter>
135 126
                  </command>
127
               </menuContribution>
128
               <menuContribution
129
                     locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
136 130
                  <command
137
                        commandId="org.txm.links.rcp.commands.SendToIndex"
131
                        commandId="org.txm.index.rcp.commands.SendToIndex"
132
                        icon="icons/index.png"
133
                        label="%command.name.2"
138 134
                        style="push">
135
                     <parameter
136
                           name="sendToTargetCommandId"
137
                           value="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
138
                     </parameter>
139 139
                  </command>
140
                  <command
141
                        commandId="org.txm.links.rcp.commands.SendToProgression"
142
                        style="push">
143
                  </command>
144 140
               </menuContribution>
145 141
      
146 142
   </extension>
......
194 190
            id="org.txm.index.rcp.handlers.ComputeLexicon"
195 191
            name="%command.name.0">
196 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>
197 202

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

Also available in: Unified diff