Fix potential NPE #5565
[taxeditor.git] / eu.etaxonomy.taxeditor.store / plugin.xml
index 8e7a4532b909d73a51bc3ac89db09839fa27f5b1..4b8b2413b5fe2fe1c7357fa102e772ee776b3752 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?eclipse version="3.2"?>
 <plugin>
-   <extension-point id="eu.etaxonomy.taxeditor.store.cdmViewer" name="%extension-point.name" schema="schema/eu.etaxonomy.taxeditor.store.cdmViewer.exsd"/>
+   <extension-point id="eu.etaxonomy.taxeditor.store.cdmViewer" name="Cdm Viewer" schema="schema/eu.etaxonomy.taxeditor.store.cdmViewer.exsd"/>
    <extension
          point="org.eclipse.ui.preferencePages">
       <page
         allowMultiple="false"
         class="eu.etaxonomy.taxeditor.view.sessions.SessionsViewPart"
         id="eu.etaxonomy.taxeditor.view.sessions.SessionsViewPart"
-        name="Sessions"
+        name="%view.name.SESSIONS"
         restorable="false">
   </view>
    </extension>
             </command>
             <command
                   commandId="org.eclipse.ui.views.showView"
-                  label="Sessions"
+                  label="%command.label.SESSION"
                   style="push">
                <parameter
                      name="org.eclipse.ui.views.showView.viewId"
             locationURI="menu:org.eclipse.ui.main.menu.file?after=eu.etaxonomy.taxeditor.application.filemenu.io">
          <command
                commandId="eu.etaxonomy.taxeditor.store.operations.showRemotingLoginWindow"
-               label="Connect"
+               label="%command.label.CONNECT"
                style="push">
          </command>
          <command
          </command>
          <command
                commandId="eu.etaxonomy.taxeditor.store.operations.reconnect"
-               label="Re-Connect"
+               label="%command.label.RE_CONNECT"
                style="push">
             <visibleWhen
                   checkEnabled="true">
       </command>
       <command
             id="eu.etaxonomy.taxeditor.store.operations.showRemotingLoginWindow"
-            name="Connect">
+            name="%command.name.CONNECT">
       </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.handler.ReconnectHandler"
             id="eu.etaxonomy.taxeditor.store.operations.reconnect"
-            name="Re-Connect">
+            name="%command.name.RE_CONNECT">
       </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.OpenDefinedTermEditorHandler"
             id="eu.etaxonomy.taxeditor.store.open"
             name="%command.name.15">
       </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.DefaultOpenClassificationWizardHandler"
+            id="eu.etaxonomy.taxeditor.command.openClassificationWizard"
+            name="%command.name.OPEN_CLASSIFICATION_WIZARD">
+         <commandParameter
+               id="eu.etaxonomy.taxeditor.command.openClassificationWizard.uuid"
+               name="Classification Uuid"
+               optional="true"
+               typeId="eu.etaxonomy.taxeditor.uuidParameterType">
+         </commandParameter>
+      </command>
+   </extension>
+   <extension
+         point="org.eclipse.ui.commands">
+      <commandParameterType
+            converter="eu.etaxonomy.taxeditor.handler.UuidsParameterTypeConverter"
+            id="eu.etaxonomy.taxeditor.uuidParameterType"
+            type="java.util.UUID">
+      </commandParameterType>
+      <commandParameterType
+            converter="eu.etaxonomy.taxeditor.handler.UuidsParameterTypeConverter"
+            id="eu.etaxonomy.taxeditor.uuidsParameterType"
+            type="java.util.List">
+      </commandParameterType>
    </extension>
    <extension
          point="org.eclipse.ui.importWizards">
       </variable>
    </sourceProvider>
 </extension>
+<extension
+      point="eu.etaxonomy.taxeditor.store.cdmViewer">
+   <viewCommandMapping
+         commandId="eu.etaxonomy.taxeditor.command.openClassificationWizard"
+         selection="eu.etaxonomy.cdm.model.taxon.Classification"
+         viewerName="Classification Wizard">
+   </viewCommandMapping>
+</extension>
 </plugin>