Revision 15a1b2cd
Added by Patrick Plitzner about 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateLabelProvider.java | ||
---|---|---|
27 | 27 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
28 | 28 |
import eu.etaxonomy.cdm.api.service.IOccurrenceService; |
29 | 29 |
import eu.etaxonomy.cdm.api.service.molecular.ISequenceService; |
30 |
import eu.etaxonomy.cdm.format.CdmFormatter; |
|
30 |
import eu.etaxonomy.cdm.format.CdmFormatterFactory;
|
|
31 | 31 |
import eu.etaxonomy.cdm.format.ICdmFormatter.FormatKey; |
32 | 32 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
33 | 33 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
... | ... | |
135 | 135 |
if(element instanceof TreeNode){ |
136 | 136 |
element = ((TreeNode) element).getValue(); |
137 | 137 |
} |
138 |
CdmFormatter formatter = new CdmFormatter(
|
|
138 |
return CdmFormatterFactory.format(element,
|
|
139 | 139 |
FormatKey.GATHERING_COUNTRY, FormatKey.SPACE, |
140 | 140 |
FormatKey.GATHERING_LOCALITY_TEXT, FormatKey.SPACE, |
141 | 141 |
FormatKey.GATHERING_DATE, FormatKey.SPACE, |
... | ... | |
151 | 151 |
FormatKey.MEDIA_TITLE, FormatKey.SPACE, |
152 | 152 |
FormatKey.MEDIA_ARTIST, FormatKey.SPACE |
153 | 153 |
); |
154 |
return formatter.format(element); |
|
155 | 154 |
} |
156 | 155 |
|
157 | 156 |
/** {@inheritDoc} */ |
Also available in: Unified diff
Adapt to cdmlib formatter interface change