Add ReferencingObjects view to "Show View" menu
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / plugin.xml
index 7c4d0d26851e78f3a5f88b421a40f7602e91035c..698fd5d9ccbc84857cdcc70b227b780655cfc553 100644 (file)
                </reference>
             </visibleWhen>
          </dynamic>
-         <!--command
-               commandId="taxeditor-nameeditor.commands.open"
-               label="Open Name Editor"
-               style="push">
-            <visibleWhen
-                  checkEnabled="false">
-               <reference
-                     definitionId="pigsFly">
-               </reference>
-            </visibleWhen>
-         </command-->
       </menuContribution>
       <menuContribution
             locationURI="popup:#BulkEditorContext">
-         <command
-               commandId="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
-               label="%command.label"
-               style="push">
-            <visibleWhen>
-               <reference
-                     definitionId="isTaxonBulkEditorInput">
-               </reference>
-            </visibleWhen>
-         </command>
+         <dynamic
+               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
+               id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
+         </dynamic>
          <separator
                name="taxeditor-bulkeditor.separator1"
                visible="true">
             </visibleWhen>
          </menu>
          <separator
-               name="eu.etaxonomy.taxeditor.bulkeditor.separator1">
+               name="taxeditor-bulkeditor.separator4"\r
+               visible="true">\r
          </separator>
          <command
                commandId="bulkeditor.commands.setmergetarget"
                </reference>
             </visibleWhen>
          </command>
+         <separator\r
+               name="eu.etaxonomy.taxeditor.bulkeditor.separator1"\r
+               visible="true">\r
+         </separator>\r
          <command
                commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
                label="%command.label.5"
             </visibleWhen>
          </command>
       </menuContribution>
+      <menuContribution
+            allPopups="false"
+            locationURI="popup:eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects">
+         <dynamic
+               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
+               id="eu.etaxonomy.taxeditor.referencingObjectsView.cdmViewerContextMenu">
+         </dynamic>
+      </menuContribution>
+      <menuContribution
+            allPopups="false"
+            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?after=org.eclipse.ui.views.showView.supplemental">
+         <command
+               commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
+               label="Referencing Objects View"
+               style="push">
+         </command>
+      </menuContribution>
    </extension>
    <extension
          point="org.eclipse.ui.commands">
             name="%command.name.10">
       </command>
       <command
+            defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
             id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
             name="Open Referencing Objects View">
       </command>
             name="%page.name.0">
       </page>
    </extension>
-   <extension
-         point="org.eclipse.ui.perspectiveExtensions">
-      <perspectiveExtension
-            targetID="*">
-         <showInPart
-               id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>
-         <showInPart
-               id="eu.etaxonomy.taxeditor.view.detail">
-         </showInPart>
-      </perspectiveExtension>
-   </extension>
    <extension
          point="eu.etaxonomy.taxeditor.store.cdmViewer">
       <viewCommandMapping