Fix typo
[taxeditor.git] / eu.etaxonomy.taxeditor.store / plugin.xml
index fb44e4eda1880887a311e3d276d9501cad7760e3..6f285567dc0e396e8f6d2da0bb687e0c86b575dd 100644 (file)
         name="%view.name.5"
         restorable="true">
   </view>
-  <view
-        class="eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView"
-        icon="icons/derivate_search_view-16x16-32.png"
-        id="eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView"
-        name="%view.name.6"
-        restorable="true">
-  </view>
   <view
         allowMultiple="false"
         class="eu.etaxonomy.taxeditor.view.sessions.SessionsViewPart"
         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="Occurrence View"
+        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"
-                  label="%command.label"
+                  id="org.eclipse.ui.views.showView.occurenceView"
+                  label="OccurenceView"
                   style="push">
                <parameter
                      name="org.eclipse.ui.views.showView.viewId"
-                     value="eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView">
+                     value="eu.etaxonomy.taxeditor.view.derivative.OccurrenceView">
                </parameter>
+               <visibleWhen
+                     checkEnabled="true">
+                  <reference
+                        definitionId="isCdmStoreConnected">
+                  </reference>
+               </visibleWhen>
             </command>
             <separator
-                  name="eu.etaxonomy.taxeditor.store.showViewMenu.details"
+                  name="eu.etaxonomy.taxeditor.store.separator_derivative_end"
                   visible="true">
             </separator>
             <command
                      name="org.eclipse.ui.views.showView.viewId"
                      value="eu.etaxonomy.taxeditor.view.detail">
                </parameter>
+               <visibleWhen
+                     checkEnabled="true">
+                  <reference
+                        definitionId="isCdmStoreConnected">
+                  </reference>
+               </visibleWhen>
             </command>
             <command
                   commandId="org.eclipse.ui.views.showView"
                      name="org.eclipse.ui.views.showView.viewId"
                      value="eu.etaxonomy.taxeditor.view.supplementalData">
                </parameter>
+               <visibleWhen
+                     checkEnabled="true">
+                  <reference
+                        definitionId="isCdmStoreConnected">
+                  </reference>
+               </visibleWhen>
             </command>
             <!-- Originally used by validation framework, currently not in use -->
        <!--        <command
                </parameter>
                <visibleWhen
                      checkEnabled="true">
-                  <reference
-                        definitionId="isShowExperimentalFeatures">
-                  </reference>
+                  <and>
+                     <reference
+                           definitionId="isShowExperimentalFeatures">
+                     </reference>
+                     <reference
+                           definitionId="isCdmStoreConnected">
+                     </reference>
+                  </and>
                </visibleWhen>
             </command>
             <command
                      name="org.eclipse.ui.views.showView.viewId"
                      value="eu.etaxonomy.taxeditor.view.sessions.SessionsViewPart">
                </parameter>
+               <visibleWhen
+                     checkEnabled="true">
+                  <reference
+                        definitionId="isCdmStoreConnected">
+                  </reference>
+               </visibleWhen>
             </command>
          </menu>
       </menuContribution>
             </visibleWhen>
          </command>
       </menuContribution>
-      <menuContribution
-            allPopups="false"
-            locationURI="popup:eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView">
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.handler.openDerivateView"
-               label="%command.label.openInSpecimenEditor"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <with
-                     variable="selection">
-                  <count
-                        value="+">
-                  </count>
-               </with>
-            </visibleWhen>
-         </command>
-      </menuContribution>
    </extension>
    <extension
          point="org.eclipse.ui.handlers">