Revision d7ad25d9
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ScopeElement.java | ||
---|---|---|
52 | 52 |
@Override |
53 | 53 |
public void setEntity(DefinedTerm entity) { |
54 | 54 |
this.entity = entity; |
55 |
if(entity!=null && entity.getId()!=0){ |
|
55 |
if(entity!=null && entity.getId()!=0 && combo_scope != null){
|
|
56 | 56 |
combo_scope.setSelection(entity); |
57 | 57 |
combo_scope.removeEmptyElement(); |
58 | 58 |
} |
... | ... | |
62 | 62 |
@Override |
63 | 63 |
public void createControls(ICdmFormElement element, int style) { |
64 | 64 |
combo_scope = formFactory.createDefinedTermComboElement(TermType.Scope, element, "Scope", null, style); |
65 |
if (entity != null){ |
|
66 |
setEntity(entity); |
|
67 |
} |
|
65 | 68 |
} |
66 | 69 |
|
67 | 70 |
/** {@inheritDoc} */ |
Also available in: Unified diff
ref #9838: change order of ui element creation and setting entity in collection elements