minor
authorn.hoffmann <n.hoffmann@localhost>
Tue, 6 Sep 2011 13:29:33 +0000 (13:29 +0000)
committern.hoffmann <n.hoffmann@localhost>
Tue, 6 Sep 2011 13:29:33 +0000 (13:29 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/AbstractHomotypicalGroupContainer.java
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/IterableSynonymyList.java

index 0b2f2cc4088d150f4943c5d64e712d1f8ae538e2..6c1869d8763b1402b4aa18d3f8d7e2fb1e87cb50 100644 (file)
@@ -42,7 +42,6 @@ public abstract class AbstractHomotypicalGroupContainer extends AbstractGroup {
        protected List<Synonym> getSynonyms(){
                Taxon taxon = getEditor().getTaxon();
                return taxon.getSynonymsInGroup(getGroup());
-//             return getGroup().getSynonymsInGroup(getEditor().getTaxon().getSec());
        }
        
        /**
@@ -65,8 +64,6 @@ public abstract class AbstractHomotypicalGroupContainer extends AbstractGroup {
         * @return
         */
        protected boolean redrawNeeded(HomotypicalGroup homotypicalGroup) {
-               //List<Synonym> synonyms = homotypicalGroup.getSynonymsInGroup(getEditor().getTaxon().getSec());
-                               
                Taxon taxon = getEditor().getTaxon();
                List<Synonym> synonyms = taxon.getSynonymsInGroup(homotypicalGroup);
                
index 86ab8ee23b3be0e0f821b9f9c3d89d85e5643329..93d10e7bd5a80f15ac6e2133c2cb1d9e35052b7c 100644 (file)
@@ -62,7 +62,7 @@ public class IterableSynonymyList implements Iterable<TaxonBase> {
                        HomotypicalGroup homotypicGroup = taxon.getHomotypicGroup();
                        
                        if (homotypicGroup != null) {
-                               List<Synonym> homotypicSynonyms = taxon.getSynonymsInGroup(homotypicGroup);//homotypicGroup.getSynonymsInGroup(taxon.getSec());
+                               List<Synonym> homotypicSynonyms = taxon.getSynonymsInGroup(homotypicGroup);
                                for (Synonym synonym : homotypicSynonyms) {
 
                                        // Make sure synonym belongs to the taxon
@@ -78,8 +78,7 @@ public class IterableSynonymyList implements Iterable<TaxonBase> {
                                // Make sure this is not the taxon's homotypic group
                                if (!heterotypicGroup.equals(homotypicGroup)) {
                                                                
-                                       List<Synonym> heterotypicSynonyms = taxon.getSynonymsInGroup(heterotypicGroup);//heterotypicGroup.
-                                                       //getSynonymsInGroup(taxon.getSec());
+                                       List<Synonym> heterotypicSynonyms = taxon.getSynonymsInGroup(heterotypicGroup);
                                        for (Synonym synonym : heterotypicSynonyms) {
 
                                                // Make sure synonym belongs to the taxon