Removed "New Specimen" option from main menu
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 27 Oct 2015 13:27:00 +0000 (14:27 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 27 Oct 2015 13:27:00 +0000 (14:27 +0100)
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin.properties
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_de.properties
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_en.properties
eu.etaxonomy.taxeditor.editor/plugin.xml
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/create/NewSpecimenHandler.java [deleted file]

index 8281fca55730c8e4d81a2fa766ff092f498fea7d..8247b5d6c70d0e34a7581e3cc808932ae08c8a4c 100644 (file)
@@ -101,7 +101,6 @@ command.name.23 = New Reference
 command.name.24 = New Name\r
 command.name.25 = New Team\r
 command.name.26 = New Person\r
-command.name.27 = New Specimen\r
 category.name.5 = -- Polytomous Keys\r
 command.name.28 = New Child Node\r
 command.name.29 = New Sibling Node\r
index a4d096a11d103606e828005e75ba6cb461142e33..c571435e16f208ab3c24daf53eec7b592b672210 100644 (file)
@@ -101,7 +101,6 @@ command.name.23 = Neue Referenz
 command.name.24 = Neuer Name
 command.name.25 = Neues Team
 command.name.26 = Neue Person
-command.name.27 = Neuer Beleg
 category.name.5 = -- Polytomer Bestimmungsschl\u00fcssel
 command.name.28 = Neue Kinderknoten
 command.name.29 = Neuer Geschwisterknoten
index 17a5b049048252c4a6b4c41bee895d67cbf1b017..80f1ca7e6793865ed51fa89e5fdfc299675244c1 100644 (file)
@@ -100,7 +100,6 @@ command.name.23 = New Reference
 command.name.24 = New Name\r
 command.name.25 = New Team\r
 command.name.26 = New Person\r
-command.name.27 = New Specimen\r
 category.name.5 = -- Polytomous Keys\r
 command.name.28 = New Child Node\r
 command.name.29 = New Sibling Node\r
index e2a53ba3ef6b73fdd90d769ee097ffe3a2eb3c2e..e27ca38dbe2c520bc14282ee84d4dbddf612d114 100644 (file)
                name="eu.etaxonomy.navigation.menu.new.separator2"
                visible="true">
          </separator>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.new.specimen"
-               label="%command.label.3"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isCdmStoreConnected">
-               </reference>
-            </visibleWhen>
-         </command>
          <separator
                name="eu.etaxonomy.navigation.menu.new.separator3"
                visible="true">
             id="eu.etaxonomy.taxeditor.editor.command.new.person"
             name="%command.name.26">
       </command>
-      <command
-            categoryId="eu.etaxonomy.taxeditor.editor.new.category"
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewSpecimenHandler"
-            id="eu.etaxonomy.taxeditor.editor.command.new.specimen"
-            name="%command.name.27">
-      </command>
       <category
             id="eu.etaxonomy.taxeditor.editor.key.category"
             name="%category.name.5">
diff --git a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/create/NewSpecimenHandler.java b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/create/NewSpecimenHandler.java
deleted file mode 100644 (file)
index dbd3353..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-// $Id$
-/**
-* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
-* http://www.e-taxonomy.eu
-*
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
-
-package eu.etaxonomy.taxeditor.editor.handler.create;
-
-import org.apache.log4j.Logger;
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.ui.handlers.HandlerUtil;
-
-import eu.etaxonomy.taxeditor.newWizard.NewDerivedUnitBaseWizard;
-
-/**
- * @author n.hoffmann
- * @created Jun 16, 2010
- * @version 1.0
- */
-public class NewSpecimenHandler extends AbstractHandler {
-       private static final Logger logger = Logger
-                       .getLogger(NewSpecimenHandler.class);
-
-       /** {@inheritDoc} */
-       @Override
-    public Object execute(ExecutionEvent event) throws ExecutionException {
-
-           //TODO: we need to discuss how specimens should be created and handled #5244
-//         ConversationHolder conversation = CdmStore.createConversation();
-//         conversation.bind();
-//         FieldUnit fieldUnit = FieldUnit.NewInstance();
-//         DerivedUnit derivedUnit = DerivedUnit.NewInstance(SpecimenOrObservationType.PreservedSpecimen);
-//         DerivationEvent.NewSimpleInstance(fieldUnit, derivedUnit, DerivationEventType.GATHERING_IN_SITU());
-//         fieldUnit.setCacheStrategy(new DerivedUnitFacadeFieldUnitCacheStrategy());
-//         derivedUnit.setCacheStrategy(new DerivedUnitFacadeCacheStrategy());
-//        CdmStore.getService(IOccurrenceService.class).save(fieldUnit);
-//        CdmStore.getService(IOccurrenceService.class).save(derivedUnit);
-//        conversation.commit();
-//        DerivateViewEditorInput input = new DerivateViewEditorInput(Collections.singleton(fieldUnit.getUuid()));
-//        try {
-//            EditorUtil.open(input);
-//        } catch (PartInitException e) {
-//            // TODO Auto-generated catch block
-//            e.printStackTrace();
-//        }
-               NewDerivedUnitBaseWizard wizard = new NewDerivedUnitBaseWizard();
-               wizard.init(null, null);
-               WizardDialog dialog = new WizardDialog(HandlerUtil.getActiveShell(event), wizard);
-               dialog.open();
-               return null;
-       }
-}