Revision fccd196f
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistLabelProvider.java | ||
---|---|---|
19 | 19 |
import java.util.TreeSet; |
20 | 20 |
import java.util.UUID; |
21 | 21 |
|
22 |
import org.apache.commons.lang.StringUtils; |
|
22 | 23 |
import org.eclipse.jface.preference.IPreferenceStore; |
23 | 24 |
import org.eclipse.jface.viewers.ITableLabelProvider; |
24 | 25 |
import org.eclipse.jface.viewers.LabelProvider; |
... | ... | |
128 | 129 |
distribution.getStatus().getTitleCache(); |
129 | 130 |
} |
130 | 131 |
if (PreferencesUtil.isShowSymbolInChecklistEditor()){ |
131 |
return (distribution.getStatus().getSymbol() != null)?distribution.getStatus().getSymbol():label;
|
|
132 |
return (StringUtils.isNotBlank(distribution.getStatus().getSymbol() ))?distribution.getStatus().getSymbol():label;
|
|
132 | 133 |
}else{ |
133 | 134 |
return (label != null)?label:DEFAULT_ENTRY; |
134 | 135 |
} |
Also available in: Unified diff
handle empty symbol for status in distribution editor