Revision bb03a041
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/SpecimenColumnPropertyAccessor.java | ||
---|---|---|
95 | 95 |
if (((Collection) newValue).stream().allMatch(o->o instanceof TermDto) ){ |
96 | 96 |
dtos = (List<TermDto>)newValue; |
97 | 97 |
} |
98 |
// List<UUID> termUuids = dtos.stream().map(dto->dto.getUuid()).collect(Collectors.toList()); |
|
99 |
// List<DefinedTermBase> terms = CdmStore.getService(ITermService.class).load(termUuids, null); |
|
100 |
// List<State> states = new ArrayList<>(); |
|
101 |
// for (DefinedTermBase definedTermBase : terms) { |
|
102 |
// if(definedTermBase instanceof State){ |
|
103 |
// states.add((State) definedTermBase); |
|
104 |
// } |
|
105 |
// } |
|
98 |
|
|
106 | 99 |
rowWrapper.setDataValueForCategoricalData(feature.getUuid(), dtos); |
107 | 100 |
matrix.putRowToMerge(rowWrapper); |
108 | 101 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/handler/CreateTaxonDescriptionHandler.java | ||
---|---|---|
46 | 46 |
.createTaxonDescription(descriptiveDataSet.getUuid(), node.getUuid(), getDescriptionType()); |
47 | 47 |
matrixPart.getMatrix().getCdmEntitiySession().load(taxonRowWrapperDTO.getDescription(), true); |
48 | 48 |
matrixPart.getMatrix().getDescriptions().add(taxonRowWrapperDTO); |
49 |
matrixPart.getMatrix().redraw(); |
|
49 | 50 |
} |
50 | 51 |
|
51 | 52 |
protected abstract DescriptionType getDescriptionType(); |
Also available in: Unified diff
ref #9772: redraw after literature desc creation and code cleaning