fixes #727
[taxeditor.git] / taxeditor-editor / plugin.xml
index f04831350e8739d9fe9b63b0ba50cf9f7be82d66..18080d84aeedb0100fa90b18db64056d4ec1f04d 100644 (file)
    </extension-->
    <extension
          point="org.eclipse.ui.editors">
+      <editor
+           class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
+           icon="icons/edit_16x16.gif"
+           id="eu.etaxonomy.taxeditor.editor.multipagetaxonview"
+           name="Multitabbed Taxon Editor">
+         </editor>
       <editor
             class="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor"
             default="false"
             </command>
             <command
                   commandId="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
-                  label="Swap Synonym And Accepted"
+                  label="Swap Synonym With Accepted"
                   style="push">
                <visibleWhen>
                   <reference
                label="Property Sheet"
                style="push">
          </command>
+         <command
+               commandId="eu.etaxonomy.taxeditor.editor.commands.showTabbedPropertiesView"
+               label="Tabbed Properties"
+               style="push">
+         </command>
+      </menuContribution>
+      <menuContribution
+            locationURI="menu:org.eclipse.ui.main.menu.navigate">
+         <menu
+               id="menu:org.eclipse.ui.main.menu.navigate.goto"
+               label="Go To">
+            <command
+                  commandId="eu.etaxonomy.taxeditor.editor.command.previousMember"
+                  label="Previous Member"
+                  style="push">
+            </command>
+            <command
+                  commandId="eu.etaxonomy.taxeditor.editor.command.nextMember"
+                  label="Next Member"
+                  style="push">
+            </command>
+         </menu>
+         <separator
+               name="taxeditor-editor.separator1"
+               visible="true">
+         </separator>
+         <command
+               commandId="eu.etaxonomy.taxeditor.editor.command.openParent"
+               label="Open Parent"
+               style="push">
+         </command>
       </menuContribution>
    </extension>
    <extension
             </not>
          </with>
       </definition>
+      <definition
+            id="isCdmObject">
+         <with
+               variable="activeMenuSelection">
+            <iterate>
+               <instanceof
+                     value="eu.etaxonomy.taxeditor.propertysheet.ICdmBasePropertySource">
+               </instanceof>
+            </iterate>
+         </with>
+      </definition>
    </extension>
    <extension
          name="Name Commands"
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SwapSynonymAndAcceptedHandler"
             id="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
-            name="Swap Synonym And Accepted">
+            name="Swap Synonym With Accepted">
       </command>
       <command
             id="eu.etaxonomy.taxeditor.editor.name.setBasionym"
             name="Show Property Sheet">
       </command>
    </extension>
+   <extension
+         point="org.eclipse.ui.commands">
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.PreviousMemberHandler"
+            id="eu.etaxonomy.taxeditor.editor.command.previousMember"
+            name="Previous Member">
+      </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.NextMemberHandler"
+            id="eu.etaxonomy.taxeditor.editor.command.nextMember"
+            name="Next Member">
+      </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenParentHandler"
+            id="eu.etaxonomy.taxeditor.editor.command.openParent"
+            name="Open Parent">
+      </command>
+   </extension>
+   <extension
+         point="org.eclipse.ui.commands">
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.ShowTabbedPropertiesViewHandler"
+            id="eu.etaxonomy.taxeditor.editor.commands.showTabbedPropertiesView"
+            name="Tabbed Properties">
+      </command>
+   </extension>
    <extension
          point="org.eclipse.ui.elementFactories">
       <factory
          </view>
       </perspectiveExtension>
    </extension>
+   <extension
+         point="org.eclipse.ui.bindings">   
+      <key
+            commandId="eu.etaxonomy.taxeditor.editor.command.nextMember"
+            contextId="org.eclipse.ui.contexts.window"
+            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+            sequence="M2+M3+ARROW_DOWN">
+      </key>
+      <key
+            commandId="eu.etaxonomy.taxeditor.editor.command.previousMember"
+            contextId="org.eclipse.ui.contexts.window"
+            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+            sequence="M2+M3+ARROW_UP">
+      </key>
+      <scheme
+            description="The default key binding scheme for the Taxonomic Editor"
+            id="eu.etaxonomy.taxeditor.bindings.scheme.default"
+            name="Taxonomic Editor Default Key Bindings">
+      </scheme>
+   </extension>
+   <extension
+         point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
+      <propertyContributor
+            contributorId="eu.etaxonomy.taxeditor.taxonNameEditor"
+            labelProvider="eu.etaxonomy.taxeditor.propertysheet.tabbed.TabbedPropertyPageLabelProvider"
+            typeMapper="eu.etaxonomy.taxeditor.propertysheet.tabbed.TaxonTypeMapper">
+         <propertyCategory
+               category="taxonBase"></propertyCategory>
+      </propertyContributor>
+   </extension>
+   <extension
+         point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
+      <propertyTabs
+            contributorId="eu.etaxonomy.taxeditor.taxonNameEditor">
+         <propertyTab
+               category="taxonBase"
+               id="taxonNameEditor.nameTab"
+               label="Name">
+         </propertyTab>
+         <propertyTab
+               afterTab="taxonNameEditor.nomRefTab"
+               category="taxonBase"
+               id="taxonNameEditor.nameRelationsTab"
+               label="Name Relations">
+         </propertyTab>
+         <propertyTab
+               afterTab="taxonNameEditor.nameRelationsfTab"
+               category="taxonBase"
+               id="taxonNameEditor.secundumTab"
+               label="Secundum">
+         </propertyTab>
+         <propertyTab
+               afterTab="taxonNameEditor.secundumTab"
+               category="taxonBase"
+               id="taxonNameEditor.annotationsTab"
+               label="Annotations">
+         </propertyTab>
+         <propertyTab
+               afterTab="taxonNameEditor.annotationsTab"
+               category="taxonBase"
+               id="taxonNameEditor.generalTab"
+               label="General">
+         </propertyTab>
+      </propertyTabs>
+   </extension>
+   <extension
+         point="org.eclipse.ui.views.properties.tabbed.propertySections">
+      <propertySections
+            contributorId="eu.etaxonomy.taxeditor.taxonNameEditor">
+         <propertySection
+               class="eu.etaxonomy.taxeditor.propertysheet.tabbed.NameOverviewSection"
+               id="taxonNameEditor.overview.name"
+               tab="taxonNameEditor.nameTab">
+            <input
+                  type="eu.etaxonomy.taxeditor.editor.name.AcceptedNameComposite">
+            </input>
+            <input
+                  type="eu.etaxonomy.taxeditor.editor.name.SynonymComposite">
+            </input>
+         </propertySection>
+         <propertySection
+               afterSection="taxonNameEditor.overview.name"
+               class="eu.etaxonomy.taxeditor.propertysheet.tabbed.NamePropertySection"
+               id="taxonNameEditor.nameSection"
+               tab="taxonNameEditor.nameTab">
+            <input
+                  type="eu.etaxonomy.taxeditor.editor.name.AcceptedNameComposite">
+            </input>
+            <input
+                  type="eu.etaxonomy.taxeditor.editor.name.SynonymComposite">
+            </input>
+         </propertySection>
+         <!--propertySection
+               afterSection="taxonNameEditor.nameSection"
+               class="eu.etaxonomy.taxeditor.propertysheet.tabbed.AuthorSection"
+               id="taxonNameEditor.authorSection"
+               tab="taxonNameEditor.nameTab">
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Taxon">
+            </input>
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Synonym">
+            </input>
+         </propertySection>
+         <propertySection
+               afterSection="taxonNameEditor.authorSection"
+               class="eu.etaxonomy.taxeditor.propertysheet.tabbed.NomRefPropertySection"
+               id="taxonNameEditor.nomRefSection"
+               tab="taxonNameEditor.nameTab">
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Taxon">
+            </input>
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Synonym">
+            </input>
+         </propertySection-->
+         <propertySection
+               class="eu.etaxonomy.taxeditor.propertysheet.tabbed.CreatedSection"
+               id="taxonNameEditor.createdSection"
+               tab="taxonNameEditor.generalTab">
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Taxon">
+            </input>
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Synonym">
+            </input>
+         </propertySection>
+         <propertySection
+               class="eu.etaxonomy.taxeditor.propertysheet.tabbed.AnnotationSection"
+               id="taxonNameEditor.annotationSection"
+               tab="taxonNameEditor.annotationsTab">
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Taxon">
+            </input>
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Synonym">
+            </input>
+         </propertySection>
+         <propertySection
+               class="eu.etaxonomy.taxeditor.propertysheet.tabbed.NameRelationsSection"
+               id="taxonNameEditor.nameRelationSection"
+               tab="taxonNameEditor.nameRelationsTab">
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Taxon">
+            </input>
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Synonym">
+            </input>
+         </propertySection>
+         <propertySection
+               class="eu.etaxonomy.taxeditor.propertysheet.tabbed.SecundumSection"
+               id="taxonNameEditor.secundumSection"
+               tab="taxonNameEditor.secundumTab">
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Taxon">
+            </input>
+            <input
+                  type="eu.etaxonomy.cdm.model.taxon.Synonym">
+            </input>
+         </propertySection>
+      </propertySections>
+   </extension>
 </plugin>