Fix label type info
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / view / derivateSearch / DerivateLabelProvider.java
index 06116c3f3156d6e04dd715443c4ea606aca67177..ad1ec3cf1198e5ad65c0372b6fdbb11960bd8355 100644 (file)
@@ -230,7 +230,7 @@ public class DerivateLabelProvider extends ColumnLabelProvider {
             DerivedUnit derivedUnit = (DerivedUnit)derivate;
             if(derivedUnit.getRecordBasis()==SpecimenOrObservationType.PreservedSpecimen){
                 //check for type designation
-                if(typeDesignations.isEmpty()){
+                if(typeDesignations.get(derivedUnit)==null){
                     for (SpecimenTypeDesignation specimenTypeDesignation : CdmStore.getService(IOccurrenceService.class).listTypeDesignations(derivedUnit, null, null, null, null)) {
                         addTypeDesignation(derivedUnit, specimenTypeDesignation);
                     }
@@ -414,13 +414,13 @@ public class DerivateLabelProvider extends ColumnLabelProvider {
      * @param multiLinkSingleReads
      */
     public void refresh() {
-        this.multiLinkSingleReads = new HashSet<SingleRead>();
+        DerivateLabelProvider.multiLinkSingleReads = new HashSet<SingleRead>();
         for(Entry<SingleRead, Collection<Sequence>> entry:CdmStore.getService(ISequenceService.class).getSingleReadSequencesMap().entrySet()){
             if(entry.getValue().size()>1){
                 multiLinkSingleReads.add(entry.getKey());
             }
         }
-        this.typeDesignations = new HashMap<DerivedUnit, List<SpecimenTypeDesignation>>();
+        DerivateLabelProvider.typeDesignations = new HashMap<DerivedUnit, List<SpecimenTypeDesignation>>();
     }
 
     private static void addTypeDesignation(DerivedUnit derivedUnit, SpecimenTypeDesignation typeDesignation){