Project

General

Profile

Revision 6dc61e91

ID6dc61e9186aa6d2657c56d87e6a394c306330dfd
Parent ffcad03f
Child 9b792c34

Added by Katja Luther 9 months ago

fix #8861: sort terms in state combo

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/StateDataElement.java
21 21
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
22 22
import eu.etaxonomy.cdm.model.term.TermType;
23 23
import eu.etaxonomy.cdm.model.term.TermVocabulary;
24
import eu.etaxonomy.taxeditor.model.DefaultTermComparator;
24 25
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
25 26
import eu.etaxonomy.taxeditor.store.CdmStore;
26 27
import eu.etaxonomy.taxeditor.store.StoreUtil;
......
87 88
	@Override
88 89
	public void createControls(ICdmFormElement element, int style) {
89 90
		combo_state = formFactory.createDefinedTermComboElement(TermType.State, element, "State", null, style);
91
		combo_state.setTermComparator(new DefaultTermComparator<State>());
90 92
		if (PreferencesUtil.getBooleanValue(PreferencePredicate.ShowModifier.getKey())){
91 93
		    section_modifiers = formFactory.createModifierSection(getConversationHolder(), element, StoreUtil.getSectionStyle(ModifierSection.class, StateData.class.getCanonicalName(), true));
92 94
		    section_modifiers.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)