Fix renamed TaxonNodeComparator
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 17 Jul 2015 08:18:03 +0000 (10:18 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 17 Jul 2015 08:18:03 +0000 (10:18 +0200)
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNodeNavigatorComparator.java

index 813701c91f55f4c041d29d407b69d3f6bd54f40e..273d9ad36383f11750f991bcafab80a3f7fcc5aa 100644 (file)
@@ -32,9 +32,9 @@ import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
 import eu.etaxonomy.cdm.api.service.IClassificationService;
 import eu.etaxonomy.cdm.model.common.CdmBase;
-
 import eu.etaxonomy.cdm.model.taxon.TaxonNaturalComparator;
-import eu.etaxonomy.cdm.model.taxon.TaxonNodeComparator;
+import eu.etaxonomy.cdm.model.taxon.TaxonNode;
+import eu.etaxonomy.cdm.model.taxon.TaxonNodeByRankAndNameComparator;
 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
 import eu.etaxonomy.taxeditor.model.DataChangeBridge;
 import eu.etaxonomy.taxeditor.model.IDataChangeBehavior;
@@ -80,11 +80,11 @@ public class TaxonNavigator extends CommonNavigator implements
        /** {@inheritDoc} */
        @Override
        protected IAdaptable getInitialInput() {
-               Comparator comparator;
+               Comparator<TaxonNode> comparator;
                if (PreferencesUtil.getSortNodesNaturally()){
                        comparator = new TaxonNaturalComparator();
                } else{
-                       comparator = new TaxonNodeComparator();
+                       comparator = new TaxonNodeByRankAndNameComparator();
                }
                TaxonNodeNavigatorComparator viewerComparator = new TaxonNodeNavigatorComparator(comparator);
                this.getCommonViewer().setComparator(viewerComparator);
index 2e5da6688054bdff7871e99b02d146814ee2a024..ee6ecbc03c8dfab5e81fbae3fa36a4409fcfcf66 100644 (file)
@@ -1,25 +1,18 @@
 package eu.etaxonomy.taxeditor.navigation.navigator;
 
-import java.util.Arrays;
 import java.util.Comparator;
 
-
 import org.eclipse.jface.viewers.Viewer;
 import org.eclipse.jface.viewers.ViewerComparator;
 
-
-import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
 import eu.etaxonomy.cdm.model.taxon.Classification;
-import eu.etaxonomy.cdm.model.taxon.TaxonBase;
-
 import eu.etaxonomy.cdm.model.taxon.TaxonNaturalComparator;
 import eu.etaxonomy.cdm.model.taxon.TaxonNode;
-import eu.etaxonomy.taxeditor.ui.section.supplemental.IdentifiableSourceElement;
 
 public class TaxonNodeNavigatorComparator extends ViewerComparator{
 
        
-       public TaxonNodeNavigatorComparator(Comparator<TaxonBase> comparator){
+       public TaxonNodeNavigatorComparator(Comparator<TaxonNode> comparator){
                super(comparator);
        }