ref #9772: redraw after literature desc creation and code cleaning
authorKatja Luther <k.luther@bgbm.org>
Thu, 30 Sep 2021 08:51:41 +0000 (10:51 +0200)
committerKatja Luther <k.luther@bgbm.org>
Thu, 30 Sep 2021 08:51:41 +0000 (10:51 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/SpecimenColumnPropertyAccessor.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/handler/CreateTaxonDescriptionHandler.java

index 22969c9d628a259543b9bb05cbdd95dab21f4494..c81035031063f51f60d967e5db52fa93a54b5169 100644 (file)
@@ -95,14 +95,7 @@ public class SpecimenColumnPropertyAccessor implements IColumnPropertyAccessor<O
                if (((Collection) newValue).stream().allMatch(o->o instanceof TermDto) ){
                        dtos = (List<TermDto>)newValue;
                }
-//                List<UUID> termUuids = dtos.stream().map(dto->dto.getUuid()).collect(Collectors.toList());
-//                List<DefinedTermBase> terms = CdmStore.getService(ITermService.class).load(termUuids, null);
-//                List<State> states = new ArrayList<>();
-//                for (DefinedTermBase definedTermBase : terms) {
-//                    if(definedTermBase instanceof State){
-//                        states.add((State) definedTermBase);
-//                    }
-//                }
+
                 rowWrapper.setDataValueForCategoricalData(feature.getUuid(), dtos);
                 matrix.putRowToMerge(rowWrapper);
             }
index c743eb58d230511dce771971511458e2289c1b95..5dcc54cc5fafaa758bd1577100ea5768bf3234ef 100644 (file)
@@ -46,6 +46,7 @@ public abstract class CreateTaxonDescriptionHandler {
                 .createTaxonDescription(descriptiveDataSet.getUuid(), node.getUuid(), getDescriptionType());
         matrixPart.getMatrix().getCdmEntitiySession().load(taxonRowWrapperDTO.getDescription(), true);
         matrixPart.getMatrix().getDescriptions().add(taxonRowWrapperDTO);
+        matrixPart.getMatrix().redraw();
     }
 
     protected abstract DescriptionType getDescriptionType();