Revision 12cd46ae
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java | ||
---|---|---|
11 | 11 |
import java.io.File; |
12 | 12 |
import java.util.ArrayList; |
13 | 13 |
import java.util.Collection; |
14 |
import java.util.Collections; |
|
14 | 15 |
import java.util.HashMap; |
15 | 16 |
import java.util.List; |
16 | 17 |
import java.util.Map; |
... | ... | |
300 | 301 |
} |
301 | 302 |
|
302 | 303 |
private void createLayers(boolean treeView) { |
303 |
// use the SortedList constructor with 'null' for the Comparator |
|
304 |
// because the Comparator will be set by configuration |
|
305 | 304 |
SortedList<Object> sortedList = new SortedList<>(descriptions, new MatrixRowComparator()); |
306 | 305 |
// wrap the SortedList with the TreeList |
307 | 306 |
TreeList<Object> treeList = new TreeList(sortedList, new DescriptionTreeFormat(descriptiveDataSet), TreeList.NODES_START_EXPANDED); |
... | ... | |
639 | 638 |
|
640 | 639 |
private void loadingDone() { |
641 | 640 |
this.part.loadingDone(); |
641 |
createTable(isTreeView, freezeLayer.isFrozen()); |
|
642 |
Collections.sort(descriptions, new MatrixRowComparator()); |
|
642 | 643 |
} |
643 | 644 |
|
644 | 645 |
public List<State> getSupportedStatesForCategoricalFeature(Feature feature){ |
Also available in: Unified diff
ref #7589 Fix order of parent taxon nodes