Project

General

Profile

« Previous | Next » 

Revision c97430d7

Added by Patrick Plitzner over 8 years ago

Fix label type info

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateLabelProvider.java
230 230
            DerivedUnit derivedUnit = (DerivedUnit)derivate;
231 231
            if(derivedUnit.getRecordBasis()==SpecimenOrObservationType.PreservedSpecimen){
232 232
                //check for type designation
233
                if(typeDesignations.isEmpty()){
233
                if(typeDesignations.get(derivedUnit)==null){
234 234
                    for (SpecimenTypeDesignation specimenTypeDesignation : CdmStore.getService(IOccurrenceService.class).listTypeDesignations(derivedUnit, null, null, null, null)) {
235 235
                        addTypeDesignation(derivedUnit, specimenTypeDesignation);
236 236
                    }
......
414 414
     * @param multiLinkSingleReads
415 415
     */
416 416
    public void refresh() {
417
        this.multiLinkSingleReads = new HashSet<SingleRead>();
417
        DerivateLabelProvider.multiLinkSingleReads = new HashSet<SingleRead>();
418 418
        for(Entry<SingleRead, Collection<Sequence>> entry:CdmStore.getService(ISequenceService.class).getSingleReadSequencesMap().entrySet()){
419 419
            if(entry.getValue().size()>1){
420 420
                multiLinkSingleReads.add(entry.getKey());
421 421
            }
422 422
        }
423
        this.typeDesignations = new HashMap<DerivedUnit, List<SpecimenTypeDesignation>>();
423
        DerivateLabelProvider.typeDesignations = new HashMap<DerivedUnit, List<SpecimenTypeDesignation>>();
424 424
    }
425 425

  
426 426
    private static void addTypeDesignation(DerivedUnit derivedUnit, SpecimenTypeDesignation typeDesignation){

Also available in: Unified diff