Revision d7ad25d9
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/RecommendedModifierDtoVocabulariesElement.java | ||
---|---|---|
50 | 50 |
@Override |
51 | 51 |
public void createControls(ICdmFormElement element, int style) { |
52 | 52 |
comboStateVocabulary = formFactory.createVocabularyComboElement(TermType.Modifier, "Modifier Vocabulary", null, element, style); |
53 |
if (entity != null){ |
|
54 |
setEntity(entity); |
|
55 |
} |
|
53 | 56 |
} |
54 | 57 |
|
55 | 58 |
@Override |
56 | 59 |
public void setEntity(TermVocabularyDto entity) { |
57 | 60 |
this.entity = entity; |
58 |
// if(entity.getId()!=0){
|
|
61 |
if(comboStateVocabulary != null){
|
|
59 | 62 |
comboStateVocabulary.setSelectionDto(entity); |
60 | 63 |
comboStateVocabulary.removeEmptyElement(); |
61 |
// }
|
|
64 |
} |
|
62 | 65 |
} |
63 | 66 |
|
64 | 67 |
|
Also available in: Unified diff
ref #9838: change order of ui element creation and setting entity in collection elements