From: Andreas Müller Date: Fri, 8 Aug 2014 21:30:09 +0000 (+0000) Subject: adapt to new return type for name authors X-Git-Tag: 3.6.0~510 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/1c215f0d27e5aec133606bf36f0c6f23bda84ad2 adapt to new return type for name authors --- 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) {