Project

General

Profile

Revision f3fb72fd

IDf3fb72fdaf40e993eeec1f606bfd88caeba06898
Parent 75271240
Child 6ac3c9c1

Added by Patrick Plitzner over 3 years ago

fix #6062 Add property tester for "Open in..." bulk editor menu items

  • moved isGroupEditor property test to bulk editor plugin

View differences:

eu.etaxonomy.taxeditor.bulkeditor/plugin.xml
310 310
            name="%command.name.OPEN_BULK_EDITOR_FOR_TAXON_NODE">
311 311
      </command>
312 312
      <command
313
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForIdentifiableEntity"
314 313
            id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
315 314
            name="Open bulk editor for identifiable entity">
316 315
         <commandParameter
......
435 434
            </test>
436 435
         </with>
437 436
      </definition>
437
      <definition
438
            id="isBulkEditorSupported">
439
         <with
440
               variable="selection">
441
            <test
442
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester.isBulkEditorSupported">
443
            </test>
444
         </with>
445
      </definition>
446
      <definition
447
            id="isGroupEditor">
448
         <with
449
               variable="activeEditor">
450
            <test
451
                  property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
452
            </test>
453
         </with>
454
      </definition>
438 455
   </extension>
439 456
   <extension
440 457
         point="org.eclipse.core.expressions.propertyTesters">
......
452 469
            properties="isTeam, isPerson"
453 470
            type="java.lang.Object">
454 471
      </propertyTester>
472
      <propertyTester
473
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
474
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
475
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
476
            properties="isBulkEditorSupported"
477
            type="org.eclipse.jface.viewers.IStructuredSelection">
478
      </propertyTester>
455 479
   </extension>
456 480
   <extension
457 481
         point="org.eclipse.ui.handlers">
......
511 535
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
512 536
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
513 537
      </handler>
538
      <handler
539
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForIdentifiableEntity"
540
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity">
541
         <activeWhen>
542
            <reference
543
                  definitionId="isBulkEditorSupported">
544
            </reference>
545
         </activeWhen>
546
      </handler>
514 547
      
515 548
   </extension>
516 549
   <extension

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)