- implemented framework which links an input element to viewers/editors which are...
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index 134220d33e4bed4441f13e2ecb5478853db8d104..b2dc9bfa68955694681b624893deb79574441ea5 100644 (file)
                name="taxeditor-editor.separator1"
                visible="true">
          </separator>
+         <command
+               commandId="eu.etaxonomy.taxeditor.editor.handler.openDerivateView"
+               label="Open in Derivate Editor"
+               style="push">
+            <visibleWhen
+                  checkEnabled="true">
+               <with
+                     variable="selection">
+                  <count
+                        value="+">
+                  </count>
+               </with>
+            </visibleWhen>
+         </command>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.commands.description.moveDescriptionToTaxon"
                label="%command.label.28"
                label="%command.label.31"
                style="push">
          </command>
+         <separator
+               name="eu.etaxonomy.taxeditor.editor.separator1">
+         </separator>
       </menuContribution>
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
                label="Open Associated Derivates"
                style="push">
             <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isCdmStoreConnected">
-               </reference>
+                  checkEnabled="false">
+               <and>
+                  <reference
+                        definitionId="isCdmStoreConnected">
+                  </reference>
+                  <reference
+                        definitionId="isTaxonNode">
+                  </reference>
+               </and>
             </visibleWhen>
          </command>
          <separator
          </description>
       </wizard>
    </extension>
+    <extension
+          point="eu.etaxonomy.taxeditor.store.cdmViewer">
+       <cdmViewer
+             class="eu.etaxonomy.taxeditor.editor.EditorCdmViewer">
+          <input
+                class="eu.etaxonomy.cdm.model.taxon.TaxonBase">
+             <part
+                   class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
+                   name="Taxon Editor">
+             </part>
+          </input>
+       </cdmViewer>
+    </extension>
 </plugin>