Revision d6f9e690
Added by Katja Luther almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NomenclaturalStatusElement.java | ||
---|---|---|
52 | 52 |
public void createControls(ICdmFormElement element, int style) { |
53 | 53 |
TermVocabulary vocabulary = CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.NomenclaturalStatusType.getUuid()); |
54 | 54 |
|
55 |
Comparator<NomenclaturalStatusType> termComparator= (NomenclaturalStatusType t1, NomenclaturalStatusType t2) -> t1.getIdInVocabulary().compareTo(t2.getIdInVocabulary());
|
|
55 |
Comparator<NomenclaturalStatusType> termComparator= (NomenclaturalStatusType t1, NomenclaturalStatusType t2) -> t1.getTitleCache().compareTo(t2.getTitleCache());
|
|
56 | 56 |
nomenclaturalStatusTypeCombo = formFactory.createDefinedTermComboElement(vocabulary, this, "Status", null,true, style, true); |
57 | 57 |
nomenclaturalStatusTypeCombo.setTermComparator(termComparator); |
58 | 58 |
ruleConsideredText = formFactory.createTextWithLabelElement(this, "Rule Considered", "", style); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NomenclaturalStatusSection.java | ||
---|---|---|
15 | 15 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
16 | 16 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
17 | 17 |
import eu.etaxonomy.cdm.model.name.NomenclaturalStatus; |
18 |
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType; |
|
19 | 18 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
20 | 19 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
21 | 20 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
66 | 65 |
/** {@inheritDoc} */ |
67 | 66 |
@Override |
68 | 67 |
public NomenclaturalStatus createNewElement() { |
69 |
return NomenclaturalStatus.NewInstance(NomenclaturalStatusType.ILLEGITIMATE());
|
|
68 |
return NomenclaturalStatus.NewInstance(null);
|
|
70 | 69 |
} |
71 | 70 |
|
72 | 71 |
/** {@inheritDoc} */ |
Also available in: Unified diff
nomenclaturalStatus is created without status type