adapt to new return type for name authors
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 8 Aug 2014 21:30:09 +0000 (21:30 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 8 Aug 2014 21:30:09 +0000 (21:30 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailElement.java

index cfd70066a4ffa5c39c7627534276a3ebd5580523..6fc520ea963882ae3f10b200e5e4e4a14a77b411 100644 (file)
@@ -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) {