Project

General

Profile

« Previous | Next » 

Revision 7106e8d1

Added by Patrick Plitzner almost 6 years ago

ref #7439 Fixc initial sort of bulk editor list

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java
84 84
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
85 85
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorQuery;
86 86
import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput;
87
import eu.etaxonomy.taxeditor.bulkeditor.input.sortprovider.TitleCacheComparator;
87 88
import eu.etaxonomy.taxeditor.editor.ITaxonEditor;
88 89
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
89 90
import eu.etaxonomy.taxeditor.l10n.Messages;
......
94 95
import eu.etaxonomy.taxeditor.model.IPartContentHasMedia;
95 96
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
96 97
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
97
import eu.etaxonomy.taxeditor.ui.section.DefaultCdmBaseComparator;
98 98
import eu.etaxonomy.taxeditor.workbench.part.IE4SavablePart;
99 99

  
100 100
/**
......
183 183
        propertyToLabels.put(TYPE_PROPERTY, TYPE_PROPERTY);
184 184
        String[] propertyNames = new String[] { getEditorInput().getName(), TYPE_PROPERTY };
185 185
        //sorted list
186
        SortedList<CdmBase> sortedList = new SortedList<>(getEditorInput().getModel(), new DefaultCdmBaseComparator<CdmBase>());
186
        SortedList<CdmBase> sortedList = new SortedList<>(getEditorInput().getModel(), new TitleCacheComparator());
187 187
        //data provider
188 188
        BulkEditorPropertyAccessor columnPropertyAccessor = new BulkEditorPropertyAccessor(getEditorInput());
189 189
        bodyDataProvider = new ListDataProvider<CdmBase>(sortedList,

Also available in: Unified diff