Project

General

Profile

« Previous | Next » 

Revision 707b6237

Added by Niels Hoffmann over 12 years ago

Merged with trunk

View differences:

eu.etaxonomy.taxeditor.editor/plugin.xml
116 116
         </command>
117 117
      </menuContribution>
118 118
      <menuContribution
119
            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView">
119
            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.store.showViewMenu.details">
120
         <separator
121
               name="eu.etaxonomy.taxeditor.editor.showViewMenu"
122
               visible="true">
123
         </separator>
120 124
         <command
121 125
               commandId="org.eclipse.ui.views.showView"
122 126
               label="Descriptive"
......
465 469
               commandId="taxeditor-editor.newimage"
466 470
               label="New Image"
467 471
               style="push">
472
            <visibleWhen>
473
               <reference
474
                     definitionId="isImageGallery">
475
               </reference>
476
            </visibleWhen>
468 477
         </command>
469 478
         <command
470 479
               commandId="taxeditor-editor.command.moveimgdown"
......
579 588
          <activeWhen>
580 589
             <with
581 590
                   variable="activePartId">
582
                <equals
583
                      value="eu.etaxonomy.taxeditor.editor.view.descriptive">
584
                </equals>
591
                <or>
592
                   <equals
593
                         value="eu.etaxonomy.taxeditor.editor.view.descriptive">
594
                   </equals>
595
                   <equals
596
                         value="eu.etaxonomy.taxeditor.editor.view.media">
597
                   </equals>
598
                </or>
585 599
             </with>
586 600
          </activeWhen>
587 601
      </handler>
......
918 932
            </test>
919 933
         </with>
920 934
      </definition>
935
      <definition
936
            id="isImageGallery">
937
         <with
938
               variable="selection">
939
            <test
940
                  property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isImageGallery">
941
            </test>
942
         </with>
943
      </definition>
921 944
   </extension>
922 945
   <extension
923 946
         point="org.eclipse.core.expressions.propertyTesters">
......
932 955
            class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DescriptionsMenuPropertyTester"
933 956
            id="eu.etaxonomy.taxeditor.descriptions.PropertyTester"
934 957
            namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
935
            properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer"
958
            properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery"
936 959
            type="org.eclipse.jface.viewers.TreeSelection">
937 960
      </propertyTester>
938 961
   </extension>

Also available in: Unified diff