From 905038e23071023bb2adb1c0909f6591e759642c Mon Sep 17 00:00:00 2001
From: Patrick Plitzner
Date: Tue, 27 Oct 2015 14:27:00 +0100
Subject: [PATCH] Removed "New Specimen" option from main menu
---
.../OSGI-INF/l10n/plugin.properties | 1 -
.../OSGI-INF/l10n/plugin_de.properties | 1 -
.../OSGI-INF/l10n/plugin_en.properties | 1 -
eu.etaxonomy.taxeditor.editor/plugin.xml | 17 ------
.../handler/create/NewSpecimenHandler.java | 59 -------------------
5 files changed, 79 deletions(-)
delete mode 100644 eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/create/NewSpecimenHandler.java
diff --git a/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin.properties b/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin.properties
index 8281fca55..8247b5d6c 100644
--- a/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin.properties
+++ b/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin.properties
@@ -101,7 +101,6 @@ command.name.23 = New Reference
command.name.24 = New Name
command.name.25 = New Team
command.name.26 = New Person
-command.name.27 = New Specimen
category.name.5 = -- Polytomous Keys
command.name.28 = New Child Node
command.name.29 = New Sibling Node
diff --git a/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_de.properties b/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_de.properties
index a4d096a11..c571435e1 100644
--- a/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_de.properties
+++ b/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_de.properties
@@ -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
diff --git a/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_en.properties b/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_en.properties
index 17a5b0490..80f1ca7e6 100644
--- a/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_en.properties
+++ b/eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_en.properties
@@ -100,7 +100,6 @@ command.name.23 = New Reference
command.name.24 = New Name
command.name.25 = New Team
command.name.26 = New Person
-command.name.27 = New Specimen
category.name.5 = -- Polytomous Keys
command.name.28 = New Child Node
command.name.29 = New Sibling Node
diff --git a/eu.etaxonomy.taxeditor.editor/plugin.xml b/eu.etaxonomy.taxeditor.editor/plugin.xml
index e2a53ba3e..e27ca38db 100644
--- a/eu.etaxonomy.taxeditor.editor/plugin.xml
+++ b/eu.etaxonomy.taxeditor.editor/plugin.xml
@@ -286,17 +286,6 @@
name="eu.etaxonomy.navigation.menu.new.separator2"
visible="true">
-
-
-
-
-
-
@@ -1408,12 +1397,6 @@
id="eu.etaxonomy.taxeditor.editor.command.new.person"
name="%command.name.26">
-
-
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
index dbd335370..000000000
--- a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/create/NewSpecimenHandler.java
+++ /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;
- }
-}
--
2.34.1