Generalize extension point for opening object in taxeditor
[taxeditor.git] / eu.etaxonomy.taxeditor.store / plugin.xml
index a19528f9bf10ed2cb2c507eb74a2888920b6d161..8e7a4532b909d73a51bc3ac89db09839fa27f5b1 100644 (file)
         id="eu.etaxonomy.taxeditor.view.sessions.SessionsViewPart"
         name="Sessions"
         restorable="false">
-  </view>
-  <view
-        class="eu.etaxonomy.taxeditor.view.derivative.OccurrenceView"
-        id="eu.etaxonomy.taxeditor.view.derivative.OccurrenceView"
-        name="Derivative Editor (taxon-based)"
-        restorable="true">
   </view>
    </extension>
    <extension
          <menu
                id="eu.etaxonomy.taxeditor.menu.showView"
                label="%menu.label">
-            <separator
-                  name="eu.etaxonomy.taxeditor.store.showViewMenu.details"
-                  visible="true">
-            </separator>
-            <command
-                  commandId="org.eclipse.ui.views.showView"
-                  id="org.eclipse.ui.views.showView.occurenceView"
-                  label="Derivative Editor (taxon-based)"
-                  style="push">
-               <parameter
-                     name="org.eclipse.ui.views.showView.viewId"
-                     value="eu.etaxonomy.taxeditor.view.derivative.OccurrenceView">
-               </parameter>
-               <visibleWhen
-                     checkEnabled="true">
-                  <reference
-                        definitionId="isCdmStoreConnected">
-                  </reference>
-               </visibleWhen>
-            </command>
-            <separator
-                  name="eu.etaxonomy.taxeditor.store.separator_derivative_end"
-                  visible="true">
-            </separator>
             <command
                   commandId="org.eclipse.ui.views.showView"
+                  id="eu.etaxonomy.taxeditor.store.showViewMenu.details"
                   label="%command.label.0"
                   style="push">
                <parameter
             </command>
          </menu>
       </menuContribution>
-      <menuContribution
-            class="eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermMenuFactory"
-            locationURI="menu:org.eclipse.ui.main.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last">
+      <menuContribution 
+         allPopups="false" 
+                 locationURI="menu:org.eclipse.ui.main.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last"> 
+           <dynamic 
+                    class="eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermMenu" 
+                   id="eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermMenu"> 
+              <visibleWhen 
+                      checkEnabled="true"> 
+                  <reference 
+                        definitionId="isCdmStoreConnected"> 
+                  </reference> 
+             </visibleWhen> 
+        </dynamic> 
       </menuContribution>
       <menuContribution
             locationURI="menu:org.eclipse.ui.main.menu.file?after=eu.etaxonomy.taxeditor.application.filemenu.io">