Merge branch 'develop' into derivateView
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index e04dadc0c2e06f17d1b7930450dec646d948c561..4c12d83c90fddde31587e2bfdb1e61eda771fd8e 100644 (file)
             id="eu.etaxonomy.taxeditor.editor.view.checklist.ChecklistEditor"
             name="%editor.name.8">
       </editor>
-         <editor
-               class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
-               default="false"
-               icon="icons/derivate_view-16x16-32.png"
-               id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
-               name="%editor.name.DERIVATIVE_EDITOR">
-         </editor>
    </extension>
       <extension
             point="org.eclipse.ui.views">
                name="eu.etaxonomy.taxeditor.editor.separator1">
          </separator>
       </menuContribution>
-      <menuContribution
-            locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.derivative.toggleLinkWithTaxonSelection"
-               label="%command.label.LINK_WITH_TAXON_SELECTION"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <not>
-                  <reference
-                        definitionId="isDerivativeEditorLinkedToTaxonSelection">
-                  </reference>
-               </not>
-            </visibleWhen>
-         </command>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.derivative.toggleLinkWithTaxonSelection"
-               label="%command.label.UNLINK_FROM_TAXON_SELECTION"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isDerivativeEditorLinkedToTaxonSelection">
-               </reference>
-            </visibleWhen>
-         </command>
-         <separator
-               name="eu.etaxonomy.taxeditor.editor.separator3"
-               visible="true">
-         </separator>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleRead"
-               id="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleReadMenuItem"
-               label="%command.label.REUSE_SINGLE_READ_HERE"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isSingleReadReusableHere">
-               </reference>
-            </visibleWhen>
-         </command>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.derivative.copySingleReadToClipBoard"
-               label="%command.label.REUSE_SINGLE_READ_FOR_OTHER_SEQUENCE"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isSingleRead">
-               </reference>
-            </visibleWhen>
-         </command>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.derivative.removeSingleReadFromSequence"
-               label="%command.label.REMOVE_SINGLE_READ_FROM_THIS_SEQUENCE"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isSingleReadReused">
-               </reference>
-            </visibleWhen>
-         </command>
-         <separator
-               name="eu.etaxonomy.taxeditor.editor.separator7"
-               visible="true">
-         </separator>
-         <command
-               commandId="org.eclipse.ui.edit.delete"
-               label="%command.label.52"
-               style="push">
-         </command>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.derivate.deepDelete"
-               icon="icons/deep-delete-16x16-32.png"
-               label="%command.label.54"
-               style="push">
-         </command>
-         <separator
-               name="eu.etaxonomy.taxeditor.editor.separator1"
-               visible="true">
-         </separator>
-         <dynamic
-               class="eu.etaxonomy.taxeditor.editor.view.derivate.contextMenu.DerivateViewContextMenu"
-               id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateContextMenu">
-         </dynamic>
-         <separator
-               name="eu.etaxonomy.taxeditor.editor.separator1"
-               visible="true">
-         </separator>
-         <dynamic
-               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
-               id="eu.etaxonomy.taxeditor.editor.derivativeEditor.CdmViewerContextMenu">
-         </dynamic>
-      </menuContribution>
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor">
          <dynamic
          </dynamic>
       </menuContribution>
       
-      
-      
-      
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.uses">
          <command
             </with>
          </activeWhen>
       </handler>
-      <handler
-            class="eu.etaxonomy.taxeditor.editor.view.derivate.handler.DeleteDerivateHandler"
-            commandId="org.eclipse.ui.edit.delete">
-         <activeWhen>
-            <with
-                  variable="activePartId">
-               <equals
-                     value="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
-               </equals>
-            </with>
-         </activeWhen>
-      </handler>
       <handler
             class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.ToggleShowOnlyIndividualAssociationsHandler"
             commandId="eu.etaxonomy.taxeditor.editor.handler.showOnlyIndividualAssociations">
                typeId="eu.etaxonomy.taxeditor.uuidParameterType">
          </commandParameter>
       </command>
-      <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.DeleteDerivateHandler"
-            id="eu.etaxonomy.taxeditor.editor.derivate.deepDelete"
-            name="%command.name.44">
-      </command>
       <command
             categoryId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
             defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.MoveDescriptionToOtherTaxonHandler"
             id="eu.etaxonomy.taxeditor.editor.openSpecimenEditorFromMenu"
             name="%command.name.OPEN_DERIVATIVE_EDITOR">
       </command>
-      <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.ListenToSelectionChangeHandler"
-            id="eu.etaxonomy.taxeditor.editor.derivative.listenToSelectionChange"
-            name="%command.name.LINK_WITH_TAXON_SELECTION">
-      </command>
-      <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
-            id="eu.etaxonomy.taxeditor.editor.derivative.copySingleReadToClipBoard"
-            name="%command.name.COPY_SINGLE_READ_TO_CLIPBOARD">
-      </command>
-      <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
-            id="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleRead"
-            name="%command.name.REUSE_SINGLE_READ">
-      </command>
-      <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
-            id="eu.etaxonomy.taxeditor.editor.derivative.removeSingleReadFromSequence"
-            name="%command.name.REMOVE_SINGLE_READ">
-      </command>
-      <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.ToggleLinkWithTaxonSelectionHandler"
-            id="eu.etaxonomy.taxeditor.editor.derivative.toggleLinkWithTaxonSelection"
-            name="%command.name.TOGGLE_LINK_WITH_TAXON_SELECTION">
-      </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenSpecimenEditorForTypeSpecimenHandler"
             id="eu.etaxonomy.taxeditor.openSpecimenEditorForTypeSpecimen"
          </with>
       </definition>
       <definition
-            id="isSingleReadReusableHere">
+            id="isSpecimenOrObservationBase">
          <with
                variable="selection">
             <test
-                  property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSingleReadReusableHere">
+                  property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSpecimenOrObservationBase">
+            </test>
+         </with>
+      </definition>
+      <definition
+            id="isDerivativeEditorLinkedToTaxonSelection">
+         <with
+               variable="activeEditor">
+            <test
+                  property="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester.isLinkedWithTaxonSelection">
             </test>
          </with>
       </definition>
       <definition
-            id="isSingleReadReused">
+            id="isOrphanedTaxon">
          <with
                variable="selection">
             <test
-                  property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSingleReadReused">
+                  forcePluginActivation="true"
+                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isOrphaned">
             </test>
          </with>
       </definition>
       <definition
-            id="isDerivativeEditorLinkedToTaxonSelection">
+            id="isAddDerivateAllowed">
          <with
-               variable="activeEditor">
+               variable="selection">
             <test
-                  property="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester.isLinkedWithTaxonSelection">
+                  property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isAddDerivateAllowed">
             </test>
          </with>
       </definition>
       <definition
-            id="isOrphanedTaxon">
+            id="isAddMediaAllowed">
          <with
                variable="selection">
             <test
-                  forcePluginActivation="true"
-                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isOrphaned">
+                  property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isAddMediaAllowed">
             </test>
          </with>
       </definition>
             class="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
             id="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
             namespace="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
-            properties="isSequence,isSingleRead,isSingleReadReusableHere,isSingleReadReused"
+            properties="isSequence,isSingleRead,isSpecimenOrObservationBase,isAddDerivateAllowed,isAddMediaAllowed"
             type="org.eclipse.jface.viewers.IStructuredSelection">
       </propertyTester>
       <propertyTester
             viewerName="Specimen Editor">
       </viewCommandMapping>
     </extension>
+   <extension
+         id="id1"
+         point="org.eclipse.e4.workbench.model">
+      <fragment
+            apply="initial"
+            uri="fragment.e4xmi">
+      </fragment>
+   </extension>
 </plugin>