From 1c215f0d27e5aec133606bf36f0c6f23bda84ad2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20M=C3=BCller?= Date: Fri, 8 Aug 2014 21:30:09 +0000 Subject: [PATCH] adapt to new return type for name authors --- .../ui/section/name/AuthorshipDetailElement.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailElement.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailElement.java index cfd70066a..6fc520ea9 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailElement.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailElement.java @@ -12,7 +12,6 @@ package eu.etaxonomy.taxeditor.ui.section.name; import java.util.Arrays; -import eu.etaxonomy.cdm.model.agent.INomenclaturalAuthor; import eu.etaxonomy.cdm.model.name.NonViralName; import eu.etaxonomy.taxeditor.model.AuthorHelper; import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; @@ -117,25 +116,22 @@ public class AuthorshipDetailElement extends if (eventSource == toggleable_cache) { getEntity().setAuthorshipCache(toggleable_cache.getText(), toggleable_cache.getState()); - if (!isIrrelevant()) + if (!isIrrelevant()){ setIrrelevant(toggleable_cache.getState(), Arrays.asList(new Object[] { toggleable_cache })); + } } else if (eventSource == selection_combinationAuthorTeam) { getEntity().setCombinationAuthorTeam( - (INomenclaturalAuthor) selection_combinationAuthorTeam - .getSelection()); + selection_combinationAuthorTeam.getSelection()); } else if (eventSource == selection_exCombinationAuthorTeam) { getEntity().setExCombinationAuthorTeam( - (INomenclaturalAuthor) selection_exCombinationAuthorTeam - .getSelection()); + selection_exCombinationAuthorTeam.getSelection()); } else if (eventSource == selection_basionymAuthorTeam) { getEntity().setBasionymAuthorTeam( - (INomenclaturalAuthor) selection_basionymAuthorTeam - .getSelection()); + selection_basionymAuthorTeam.getSelection()); } else if (eventSource == selection_exBasionymAuthorTeam) { getEntity().setExBasionymAuthorTeam( - (INomenclaturalAuthor) selection_exBasionymAuthorTeam - .getSelection()); + selection_exBasionymAuthorTeam.getSelection()); } // if (eventSource != toggleable_cache) { -- 2.34.1