Merge branch 'hotfix/4.8.1'
[taxeditor.git] / eu.etaxonomy.taxeditor.molecular / plugin.xml
index 7b968c499f5d2c6dde1e7d9f8d58b811cd7fd4ea..7df2be1afbbc52fb9c3a097839186d5dbee532e1 100644 (file)
@@ -7,7 +7,7 @@
             class="eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor"
             default="false"
             id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor"
-            name="Alignment Editor">
+            name="%editor.ALIGNMENT_EDITOR">
       </editor>
    </extension>
       <extension
@@ -16,7 +16,7 @@
                allowMultiple="true"
                class="eu.etaxonomy.taxeditor.molecular.editor.PherogramViewPart"
                id="eu.etaxonomy.taxeditor.molecular.PherogramView"
-               name="PherogramView"
+               name="%view.PHEROGRAM_VIEW"
                restorable="true">
          </view>
       </extension>
          <command
                defaultHandler="eu.etaxonomy.taxeditor.molecular.handler.EditSequenceHandler"
                id="eu.etaxonomy.taxeditor.molecular.editSequence"
-               name="Edit Sequence">
+               name="%command.EDIT_SEQUENCE">
          </command>
          <command
                defaultHandler="eu.etaxonomy.taxeditor.molecular.handler.ShowPherogramHandler"
                id="eu.etaxonomy.taxeditor.molecular.showPherogram"
-               name="Show Pherogram">
+               name="%command.name.SHOW_PHEROGRAM">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramLeft"
-               name="Cut pherogram left">
+               name="%command.name.CUT_PHEROGRAM_LEFT">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramRight"
-               name="Cut pherogram right">
+               name="%command.name.CUT_PHEROGRAM_RIGHT">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.reverseComplementRows"
-               name="Reverse complement selected rows">
+               name="%command.name.REVERSE_COMPLEMENT_SELECTED_ROWS">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.createConsensus"
-               name="(Re)create consensus sequence">
+               name="%command.name.CREATE_CONSENUS_SEQUENCE">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.updateConsensus"
-               name="Update consensus sequence">
+               name="%command.name.UPDATE_CONSENSUS_SEQUENCE">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowProbabilities"
-               name="Toggle show probability values">
+               name="%command.name.TOGGLE_SHOW_PROBABILITY_VALUES">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowBaseCallLines"
-               name="Toggle show base call lines">
+               name="%command.name.TOGGLE_SHOW_BASE_CALL_LINES">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.pherogramComponent.changeQualityOutput"
-               name="Change quality output">
+               name="%command.name.CHANGE_QUALITY_OUTPUT">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.loadPherogram"
-               name="Load Pherogram">
+               name="%command.name.LOAD_PHEROGRAM">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.toggleInsertOverwrite"
-               name="Toggle insert/overwrite">
+               name="%command.name.TOGGLE_INSERT_OVERWRITE">
          </command>
          <command
                id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.toggleLeftRightInsertion"
-               name="Toggle left/right insertion in base call sequence">
+               name="%command.name.TOGGLE_LEFT_RIGHT_INSERTION">
+         </command>
+         <command
+               defaultHandler="eu.etaxonomy.taxeditor.molecular.handler.ExportSequenceToFileHandler"
+               id="eu.etaxonomy.taxeditor.molecular.exportSequenceToFile"
+               name="%command.name.EXPORT_SEQUENCE_TO_FILE">
          </command>
       </extension>
       <extension
@@ -85,7 +90,7 @@
                   id="eu.etaxonomy.taxeditor.molecular.alignmentToolbar">
                <command
                      commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.toggleInsertOverwrite"
-                     label="Toggle insert/overwrite"
+                     label="%command.TOGGLE_INSERT_OVERWRITE"
                      style="push">
                   <visibleWhen
                         checkEnabled="true">
                allPopups="false"
                locationURI="menu:org.eclipse.ui.main.menu">
             <menu
-                  label="Alignment Editor">
+                  label="%menu.ALIGNMENT_EDITOR">
                <command
                      commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.loadPherogram"
                      style="push">
                </visibleWhen>
             </menu>
             <menu
-                  label="Pherogram View">
+                  label="%menu.label.PHEROGRAM_VIEW">
                <command
                      commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.changeQualityOutput"
                      style="push">
             </menu>
          </menuContribution>
          <menuContribution
-               locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView?before=eu.etaxonomy.taxeditor.editor.view.derivate.DerivateContextMenu">
+               locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView?before=eu.etaxonomy.taxeditor.editor.derivative.reuseSingleReadMenuItem">
+            <separator
+                  name="eu.etaxonomy.taxeditor.molecular.separator5"
+                  visible="true">
+            </separator>
             <command
                   commandId="eu.etaxonomy.taxeditor.molecular.editSequence"
-                  label="Edit Sequence"
+                  label="%command.label.EDIT_SEQUENCE"
+                  style="push">
+               <visibleWhen
+                     checkEnabled="true">
+                  <reference
+                        definitionId="isSequence">
+                  </reference>
+               </visibleWhen>
+            </command>
+            <command
+                  commandId="eu.etaxonomy.taxeditor.molecular.exportSequenceToFile"
+                  label="%command.label.EXPORT_SEQUENCE_TO_FILE"
                   style="push">
                <visibleWhen
                      checkEnabled="true">
             </command>
             <command
                   commandId="eu.etaxonomy.taxeditor.molecular.showPherogram"
-                  label="Show Pherogram"
+                  label="%command.label.SHOW_PHEROGRAM"
                   style="push">
                <visibleWhen
                      checkEnabled="true">
                class="eu.etaxonomy.taxeditor.molecular.handler.ChangePherogramQualityOutputType"
                commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.changeQualityOutput">
          </handler>
+         <handler
+               class="eu.etaxonomy.taxeditor.molecular.handler.AlignmentEditorCopyHandler"
+               commandId="org.eclipse.ui.edit.copy">
+            <activeWhen>
+               <with
+                     variable="activePartId">
+                  <equals
+                        value="eu.etaxonomy.taxeditor.molecular.AlignmentEditor">
+                  </equals>
+               </with>
+            </activeWhen>
+         </handler>
+         <handler
+               class="eu.etaxonomy.taxeditor.molecular.handler.AlignmentEditorCutHandler"
+               commandId="org.eclipse.ui.edit.cut">
+            <activeWhen>
+               <with
+                     variable="activePartId">
+                  <equals
+                        value="eu.etaxonomy.taxeditor.molecular.AlignmentEditor">
+                  </equals>
+               </with>
+            </activeWhen>
+         </handler>
+         <handler
+               class="eu.etaxonomy.taxeditor.molecular.handler.AlignmentEditorPasteHandler"
+               commandId="org.eclipse.ui.edit.paste">
+            <activeWhen>
+               <with
+                     variable="activePartId">
+                  <equals
+                        value="eu.etaxonomy.taxeditor.molecular.AlignmentEditor">
+                  </equals>
+               </with>
+            </activeWhen>
+         </handler>
       </extension>
       <extension
             point="org.eclipse.ui.bindings">