Add condition to handler for referencing objects view to bulk editor
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / plugin.xml
index a329fe597e178592737edd3ee8a5cc1023cec424..e2f9c5fb2e852f8268d88fa37b480bac72b251c9 100644 (file)
       <handler
             class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
             commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
+         <activeWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="bulkeditor.editor">
+               </equals>
+            </with>
+         </activeWhen>
       </handler>
       
    </extension>
             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