Fix menu contributions
authorPatric Plitzner <p.plitzner@bgbm.org>
Wed, 15 Jul 2015 12:09:21 +0000 (12:09 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Wed, 15 Jul 2015 12:09:21 +0000 (12:09 +0000)
eu.etaxonomy.taxeditor.molecular/plugin.xml

index 14d770ace9553dcadb1c3aa11755d864de7bbaf6..20e8acae07575ffcc7db6bcccae830f87b360c9b 100644 (file)
          <menuContribution
                allPopups="false"
                locationURI="menu:org.eclipse.ui.main.menu">
-            <menu
-                  label="View">
-               <menu
-                     label="Pherogram">
-                  <command
-                        commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.changeQualityOutput"
-                        style="push">
-                  </command>
-                  <command
-                        commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowProbabilities"
-                        style="push">
-                  </command>
-                  <command
-                        commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowBaseCallLines"
-                        style="push">
-                  </command>
-                  <visibleWhen
-                        checkEnabled="true">
-                     <with
-                           variable="activePartId">
-                        <or>
-                           <equals
-                                 value="eu.etaxonomy.taxeditor.molecular.AlignmentEditor">
-                           </equals>
-                           <equals
-                                 value="eu.etaxonomy.taxeditor.molecular.PherogramView">
-                           </equals>
-                        </or>
-                     </with>
-                  </visibleWhen>
-               </menu>
-            </menu>
             <menu
                   label="Alignment Editor">
                <command
                      commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.updateConsensus"
                      style="push">
                </command>
-               <!--visibleWhen
+               <visibleWhen
                      checkEnabled="true">
                   <with
                         variable="activePartId">
                            value="eu.etaxonomy.taxeditor.molecular.AlignmentEditor">
                      </equals>
                   </with>
-               </visibleWhen-->
+               </visibleWhen>
+            </menu>
+            <menu
+                  label="Pherogram View">
+               <command
+                     commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.changeQualityOutput"
+                     style="push">
+               </command>
+               <command
+                     commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowProbabilities"
+                     style="push">
+               </command>
+               <command
+                     commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowBaseCallLines"
+                     style="push">
+               </command>
+               <visibleWhen
+                     checkEnabled="true">
+                  <with
+                        variable="activePartId">
+                     <equals
+                           value="eu.etaxonomy.taxeditor.molecular.PherogramView">
+                     </equals>
+                  </with>
+               </visibleWhen>
             </menu>
          </menuContribution>
          <menuContribution