Revision 6450c8b1
Added by Andreas Müller 6 months ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/media/MediaSpecimenGeneralDetailElement.java | ||
---|---|---|
80 | 80 |
comboKindOfUnit = formFactory.createDefinedTermComboElement(mediaSpecimenVocabulary, formElement, "Kind of Media", entity.getKindOfUnit(), style); |
81 | 81 |
textTitleLanguageString = formFactory.createLanguageStringWithLabelElement(formElement, "Subject", media.getTitle(CdmStore.getDefaultLanguage()), style); |
82 | 82 |
if (getEntity() != null && media.getAllDescriptions() != null && !media.getAllDescriptions().isEmpty() ) { |
83 |
boolean textExist = false; |
|
83 |
boolean textExists = false;
|
|
84 | 84 |
for (LanguageString lngStr: media.getAllDescriptions().values()) { |
85 | 85 |
if (StringUtils.isNotBlank(lngStr.getText())) { |
86 |
textExist = true; |
|
86 |
textExists = true; |
|
87 |
break; |
|
87 | 88 |
} |
88 | 89 |
} |
89 |
if (textExist) { |
|
90 |
if (textExists) {
|
|
90 | 91 |
text_description = formFactory.createMultiLanguageTextElement(formElement, "Description", media.getAllDescriptions(), 50, SWT.WRAP); |
91 | 92 |
} |
92 | 93 |
} |
Also available in: Unified diff
cleanup