Project

General

Profile

Revision 7106e8d1

ID7106e8d16066736a236ff8367fc76925e20b0206
Parent 0acc65d5
Child 31a9124b

Added by Patrick Plitzner over 1 year 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

Add picture from clipboard (Maximum size: 40 MB)