Revision e29e2ebd
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaMetaElement.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.ui.section.media; |
5 | 5 |
|
6 |
import java.util.Map; |
|
7 |
|
|
6 | 8 |
import org.apache.commons.lang.StringUtils; |
7 | 9 |
import org.eclipse.jface.action.IAction; |
8 | 10 |
import org.eclipse.swt.SWT; |
... | ... | |
15 | 17 |
|
16 | 18 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
17 | 19 |
import eu.etaxonomy.cdm.model.agent.AgentBase; |
20 |
import eu.etaxonomy.cdm.model.common.Language; |
|
18 | 21 |
import eu.etaxonomy.cdm.model.common.LanguageString; |
19 | 22 |
import eu.etaxonomy.cdm.model.media.Media; |
20 | 23 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
... | ... | |
89 | 92 |
|
90 | 93 |
text_description.setLanguageString(element.getDescription(CdmStore |
91 | 94 |
.getDefaultLanguage())); |
95 |
if (text_description.getText().isEmpty()){ |
|
96 |
Map<Language, LanguageString> allDescriptions = element.getAllDescriptions(); |
|
97 |
if (!allDescriptions.isEmpty()){ |
|
98 |
text_description.setLanguageString(allDescriptions.get(Language.ENGLISH())); |
|
99 |
} |
|
100 |
} |
|
92 | 101 |
|
93 | 102 |
LanguageString title = element.getTitle(CdmStore.getDefaultLanguage()); |
94 | 103 |
|
Also available in: Unified diff
smaller changes for specimen import and others