adapt master to develop
[taxeditor.git] / eu.etaxonomy.taxeditor.molecular / plugin.xml
index 749f4dedd8d5e1ff6d40b6452092fd2f4da0da42..ff56c7c4ba7664d62d4a15f022d7ed2efa1dcfca 100644 (file)
@@ -1,82 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?eclipse version="3.4"?>
 <plugin>
-   <extension
-         point="org.eclipse.ui.editors">
-      <editor
-            class="eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor"
-            default="false"
-            id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor"
-            name="Alignment Editor">
-      </editor>
-   </extension>
-      <extension
-            point="org.eclipse.ui.views">
-         <view
-               allowMultiple="true"
-               class="eu.etaxonomy.taxeditor.molecular.editor.PherogramViewPart"
-               id="eu.etaxonomy.taxeditor.molecular.PherogramView"
-               name="PherogramView"
-               restorable="true">
-         </view>
-      </extension>
-      <extension
-            point="org.eclipse.ui.commands">
-         <command
-               defaultHandler="eu.etaxonomy.taxeditor.molecular.handler.EditSequenceHandler"
-               id="eu.etaxonomy.taxeditor.molecular.editSequence"
-               name="Edit Sequence">
-         </command>
-         <command
-               defaultHandler="eu.etaxonomy.taxeditor.molecular.handler.ShowPherogramHandler"
-               id="eu.etaxonomy.taxeditor.molecular.showPherogram"
-               name="Show Pherogram">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramLeft"
-               name="Cut pherogram left">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramRight"
-               name="Cut pherogram right">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.reverseComplementRows"
-               name="Reverse complement selected rows">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.createConsensus"
-               name="(Re)create consensus sequence">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.updateConsensus"
-               name="Update consensus sequence">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowProbabilities"
-               name="Toggle show probability values">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowBaseCallLines"
-               name="Toggle show base call lines">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.pherogramComponent.changeQualityOutput"
-               name="Change quality output">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.loadPherogram"
-               name="Load Pherogram">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.toggleInsertOverwrite"
-               name="Toggle insert/overwrite">
-         </command>
-         <command
-               id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.toggleLeftRightInsertion"
-               name="Toggle left/right insertion in base call sequence">
-         </command>
-      </extension>
       <extension
             point="org.eclipse.ui.menus">
          <menuContribution
@@ -85,7 +9,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">
                </command>
             </toolbar>
          </menuContribution>
-         <menuContribution
-               allPopups="false"
-               locationURI="menu:org.eclipse.ui.main.menu">
-            <menu
-                  label="Alignment Editor">
-               <command
-                     commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.loadPherogram"
-                     style="push">
-               </command>
-               <command
-                     commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramLeft"
-                     id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramLeft"
-                     name="Cut pherogram left">
-               </command>
-               <command
-                     commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramRight"
-                     id="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramRight"
-                     style="push">
-               </command>
-               <command
-                     commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.reverseComplementRows"
-                     mnemonic="r"
-                     style="push">
-               </command>
-               <command
-                     commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.createConsensus"
-                     style="push">
-               </command>
-               <command
-                     commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.updateConsensus"
-                     style="push">
-               </command>
-               <visibleWhen
-                     checkEnabled="true">
-                  <with
-                        variable="activePartId">
-                     <equals
-                           value="eu.etaxonomy.taxeditor.molecular.AlignmentEditor">
-                     </equals>
-                  </with>
-               </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
-               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"
-                  style="push">
-               <visibleWhen
-                     checkEnabled="true">
-                  <reference
-                        definitionId="isSequence">
-                  </reference>
-               </visibleWhen>
-            </command>
-            <command
-                  commandId="eu.etaxonomy.taxeditor.molecular.showPherogram"
-                  label="Show Pherogram"
-                  style="push">
-               <visibleWhen
-                     checkEnabled="true">
-                  <reference
-                        definitionId="isSingleRead">
-                  </reference>
-               </visibleWhen>
-            </command>
-         </menuContribution>
       </extension>
       <extension
-            point="org.eclipse.ui.handlers">
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.LoadPherogramHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.loadPherogram">
-            <activeWhen>
-               <with
-                     variable="activePartId">
-                  <equals
-                        value="eu.etaxonomy.taxeditor.molecular.AlignmentEditor">
-                  </equals>
-               </with>
-            </activeWhen>
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.ToggleInsertOverwriteHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.toggleInsertOverwrite">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.ToggleLeftRightInsertionHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.toggleLeftRightInsertion">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.CutPherogramLeftHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramLeft">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.CutPherogramRightHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.cutPherogramRight">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.ReverseComplementHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.reverseComplementRows">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.CreateConsensusSequenceHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.createConsensus">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.UpdateConsensusSequenceHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.updateConsensus">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.ToggleShowPherogramProbabilitiesHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowProbabilities">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.ToggleShowPherogramBaseCallLinesHandler"
-               commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.toggleShowBaseCallLines">
-         </handler>
-         <handler
-               class="eu.etaxonomy.taxeditor.molecular.handler.ChangePherogramQualityOutputType"
-               commandId="eu.etaxonomy.taxeditor.molecular.pherogramComponent.changeQualityOutput">
-         </handler>
+            id="id1"
+            point="org.eclipse.e4.workbench.model">
+         <fragment
+               apply="always"
+               uri="fragment.e4xmi">
+         </fragment>
       </extension>
       <extension
-            point="org.eclipse.ui.bindings">
-         <scheme
-               description="%scheme.description"
-               id="eu.etaxonomy.taxeditor.bindings.scheme.default"
-               name="%scheme.name">
-         </scheme>
-         <key
-               commandId="eu.etaxonomy.taxeditor.molecular.AlignmentEditor.loadPherogram"
-               schemeId="eu.etaxonomy.taxeditor.bindings.scheme.default"
-               sequence="M1+O">
-         </key>
+            point="org.eclipse.core.expressions.definitions">
+         <definition
+               id="isAlignmentEditor">
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.molecular.editor.e4.AlignmentEditorE4">
+               </equals>
+            </with>
+         </definition>
+         <definition
+               id="isPherogramView">
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.molecular.editor.e4.PherogramPartE4">
+               </equals>
+            </with>
+         </definition>
       </extension>
       
 </plugin>