Revision 23ffcd61
Added by Patrick Plitzner about 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateLabelProvider.java | ||
---|---|---|
64 | 64 |
|
65 | 65 |
private static Map<DerivedUnit, Collection<SpecimenTypeDesignation>> typeDesignations; |
66 | 66 |
|
67 |
private static Map<Class<? extends Object>, ICdmFormatter> formatterMap = new HashMap<>(); |
|
68 |
|
|
69 | 67 |
private ConversationHolder conversation; |
70 | 68 |
|
71 | 69 |
private static DefinedTerm photoTerm = null; |
... | ... | |
154 | 152 |
FormatKey.MEDIA_TITLE, FormatKey.SPACE, |
155 | 153 |
FormatKey.MEDIA_ARTIST, FormatKey.SPACE |
156 | 154 |
}; |
157 |
ICdmFormatter formatter = formatterMap.get(element.getClass()); |
|
158 |
if(formatter==null){ |
|
159 |
formatter = CdmFormatterFactory.getFormatter(element, formatKeys); |
|
160 |
formatterMap.put(element.getClass(), formatter); |
|
161 |
} |
|
162 |
return formatter.format(element); |
|
155 |
return CdmFormatterFactory.format(element, formatKeys); |
|
163 | 156 |
} |
164 | 157 |
|
165 | 158 |
/** {@inheritDoc} */ |
Also available in: Unified diff
REvert caching of cdm formatter