Project

General

Profile

« Previous | Next » 

Revision 49e39c10

Added by Cherian Mathew over 10 years ago

replaced term editor menu with dynamic menu factory

View differences:

eu.etaxonomy.taxeditor.store/plugin.xml
304 304
               </visibleWhen>
305 305
            </command>
306 306
         </menu>
307
         <menu
308
               id="eu.etaxonomy.taxeditor.store.definedTermEditorMenu"
309
               label="Term Editor">
310
            <command
311
                  commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
312
                  label="Named Area"
313
                  style="push">
314
               <parameter
315
                     name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter"
316
                     value="eu.etaxonomy.cdm.model.location.NamedArea">
317
               </parameter>
318
            </command>
319
            <command
320
                  commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
321
                  label="Named Area Level"
322
                  style="push">
323
               <parameter
324
                     name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter"
325
                     value="eu.etaxonomy.cdm.model.location.NamedAreaLevel">
326
               </parameter>
327
            </command>
328
            <separator
329
                  name="eu.etaxonomy.taxeditor.store.definedTermEditorMenu.separator2"
330
                  visible="true">
331
            </separator>
332
            <command
333
                  commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
334
                  label="Extension Type"
335
                  style="push">
336
               <parameter
337
                     name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter"
338
                     value="eu.etaxonomy.cdm.model.common.ExtensionType">
339
               </parameter>
340
            </command>
341
            <command
342
                  commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
343
                  label="Marker Type"
344
                  style="push">
345
               <parameter
346
                     name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter"
347
                     value="eu.etaxonomy.cdm.model.common.MarkerType">
348
               </parameter>
349
            </command>
350
            <command
351
                  commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
352
                  label="State"
353
                  style="push">
354
               <parameter
355
                     name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter"
356
                     value="eu.etaxonomy.cdm.model.description.State">
357
               </parameter>
358
            </command>
359
            <separator
360
                  name="eu.etaxonomy.taxeditor.store.definedTermEditorMenu.separator3"
361
                  visible="true">
362
            </separator>
363
            <command
364
                  commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
365
                  label="Feature"
366
                  style="push">
367
               <parameter
368
                     name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter"
369
                     value="eu.etaxonomy.cdm.model.description.Feature">
370
               </parameter>
371
            </command>
372
            <command
373
                  commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
374
                  label="Modifier"
375
                  style="push">
376
               <parameter
377
                     name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter"
378
                     value="eu.etaxonomy.cdm.model.description.Modifier">
379
               </parameter>
380
            </command>
381
         </menu>
307
      </menuContribution>
308
      <menuContribution
309
            class="eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermMenuFactory"
310
            locationURI="menu:org.eclipse.ui.main.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last">
382 311
      </menuContribution>
383 312
      <menuContribution
384 313
            locationURI="menu:org.eclipse.ui.main.menu.file?after=eu.etaxonomy.taxeditor.application.filemenu.io">
......
496 425
               name="inputType"
497 426
               optional="true">
498 427
         </commandParameter>
428
         <commandParameter
429
               id="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid"
430
               name="inputType"
431
               optional="true">
432
         </commandParameter>
499 433
      </command>
500 434
   </extension>
501 435
   <extension

Also available in: Unified diff