Revision 80379c19
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/TermComboElement.java | ||
---|---|---|
9 | 9 |
import java.util.Comparator; |
10 | 10 |
import java.util.List; |
11 | 11 |
|
12 |
import org.apache.commons.lang.StringUtils; |
|
12 | 13 |
import org.eclipse.jface.util.PropertyChangeEvent; |
13 | 14 |
import org.eclipse.swt.SWT; |
14 | 15 |
import org.eclipse.swt.events.SelectionEvent; |
... | ... | |
257 | 258 |
}else{ |
258 | 259 |
String termLabel = null; |
259 | 260 |
if (useAbbrevLabel){ |
260 |
termLabel = term.getIdInVocabulary(); |
|
261 |
}else{ |
|
261 |
if (!StringUtils.isBlank(term.getIdInVocabulary())){ |
|
262 |
termLabel = term.getIdInVocabulary(); |
|
263 |
} |
|
264 |
} |
|
265 |
if (termLabel == null){ |
|
262 | 266 |
termLabel = term.getLabel(CdmStore.getDefaultLanguage()); |
263 | 267 |
} |
264 | 268 |
if (termLabel == null){ |
Also available in: Unified diff
mend
display of status in drop down according to preference