Revision 1b7f25fe
Added by pplitzner about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateLabelProvider.java | ||
---|---|---|
262 | 262 |
if(derivedUnit.getRecordBasis()==SpecimenOrObservationType.PreservedSpecimen){ |
263 | 263 |
//check for type designation |
264 | 264 |
if(typeDesignations.get(derivedUnit)==null){ |
265 |
for (SpecimenTypeDesignation specimenTypeDesignation : CdmStore.getService(IOccurrenceService.class).listTypeDesignations(derivedUnit, null, null, null, null)) {
|
|
265 |
for (SpecimenTypeDesignation specimenTypeDesignation : derivedUnit.getSpecimenTypeDesignations()) {
|
|
266 | 266 |
addTypeDesignation(derivedUnit, specimenTypeDesignation); |
267 | 267 |
} |
268 | 268 |
} |
... | ... | |
460 | 460 |
derivedUnits.add(HibernateProxyHelper.deproxy(specimenOrObservationBase, DerivedUnit.class)); |
461 | 461 |
} |
462 | 462 |
} |
463 |
typeDesignations = CdmStore.getService(IOccurrenceService.class).listTypeDesignations(derivedUnits, null, null, null, null); |
|
463 |
for (DerivedUnit derivedUnit : derivedUnits) { |
|
464 |
if(!derivedUnit.getSpecimenTypeDesignations().isEmpty()){ |
|
465 |
typeDesignations.put(derivedUnit, derivedUnit.getSpecimenTypeDesignations()); |
|
466 |
} |
|
467 |
} |
|
464 | 468 |
} |
465 | 469 |
} |
466 | 470 |
|
Also available in: Unified diff
ref #6389 avoid service call for icon determination (performance)