Project

General

Profile

« Previous | Next » 

Revision 1c3cb06b

Added by Patrick Plitzner about 6 years ago

fix #6330 Add default sorting for all entity collections

  • default sorting is done by CdmBase.getId(). This also ensures that new elements are shown on top at first

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/derivedUnit/PreservedSpecimenCurrentDeterminationDetailSection.java
11 11

  
12 12
import java.util.Arrays;
13 13
import java.util.Collection;
14
import java.util.Comparator;
14 15
import java.util.Set;
15 16

  
16 17
import org.eclipse.jface.action.Action;
......
26 27
import eu.etaxonomy.taxeditor.model.ImageResources;
27 28
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
28 29
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
30
import eu.etaxonomy.taxeditor.ui.section.DefaultCdmBaseComparator;
29 31

  
30 32
/**
31 33
 * @author n.hoffmann
......
111 113
		return preferredDetermination != null ? Arrays.asList(new DeterminationEvent[]{preferredDetermination}) : null;
112 114
	}
113 115

  
116
	@Override
117
	public Comparator<DeterminationEvent> getComparator() {
118
        return new DefaultCdmBaseComparator<>();
119
	}
120

  
114 121
	/* (non-Javadoc)
115 122
	 * @see eu.etaxonomy.taxeditor.ui.section.occurrence.AbstractDeterminationEventDetailSection#createNewElement()
116 123
	 */

Also available in: Unified diff