Revision d7ad25d9
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/AnnotationElement.java | ||
---|---|---|
43 | 43 |
combo_annotationType = formFactory.createDefinedTermComboElement(TermType.AnnotationType, this, "Annotation Type", null, style); |
44 | 44 |
|
45 | 45 |
text = formFactory.createMultiLineTextWithLabel(this, "Annotation", 100, style); |
46 |
if (entity != null){ |
|
47 |
setEntity(entity); |
|
48 |
} |
|
46 | 49 |
} |
47 | 50 |
|
48 | 51 |
@Override |
49 | 52 |
public void setEntity(Annotation entity) { |
50 | 53 |
this.entity = entity; |
51 |
combo_annotationType.setSelection(getEntity().getAnnotationType()); |
|
52 |
text.setText(entity.getText()); |
|
54 |
if (combo_annotationType != null){ |
|
55 |
combo_annotationType.setSelection(getEntity().getAnnotationType()); |
|
56 |
text.setText(entity.getText()); |
|
57 |
} |
|
53 | 58 |
} |
54 | 59 |
|
55 | 60 |
@Override |
Also available in: Unified diff
ref #9838: change order of ui element creation and setting entity in collection elements