Revision 53627082
Added by Patrick Plitzner over 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java | ||
---|---|---|
577 | 577 |
propertyToLabelMap.put(property, label); |
578 | 578 |
} |
579 | 579 |
|
580 |
public void loadDescriptions(DescriptiveDataSet descriptiveDataSet) {
|
|
581 |
UUID monitorUuid = CdmApplicationState.getLongRunningTasksService().monitGetRowWrapper(descriptiveDataSet); |
|
580 |
public void loadDescriptions(UUID descriptiveDataSetUuid) {
|
|
581 |
UUID monitorUuid = CdmApplicationState.getLongRunningTasksService().monitGetRowWrapper(descriptiveDataSetUuid);
|
|
582 | 582 |
|
583 | 583 |
final Collection<RowWrapperDTO> wrappers = new ArrayList<>(); |
584 | 584 |
String jobLabel = Messages.CharacterMatrix_LOAD_CHARACTER_DATA; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixBottomToolbar.java | ||
---|---|---|
220 | 220 |
MessagingUtils.errorDialog("Aggregation failed", this, "Aggregation was not successfull", TaxeditorEditorPlugin.PLUGIN_ID, (Exception)resultObject, true, true); |
221 | 221 |
} |
222 | 222 |
else if(resultObject instanceof UpdateResult){ |
223 |
// UpdateResult result = (UpdateResult) resultObject; |
|
224 |
// IDescriptiveDataSetService dataSetService = CdmStore.getService(IDescriptiveDataSetService.class);dataSetService.load(matrix.getDescriptiveDataSet().getUuid()) |
|
225 |
// result.getUpdatedObjects().stream() |
|
226 |
// .filter(o -> o instanceof TaxonDescription) |
|
227 |
// .map(o -> HibernateProxyHelper.deproxy(o, TaxonDescription.class)) |
|
228 |
// .forEach(taxonDescription -> matrix.getDescriptions() |
|
229 |
// .add(dataSetService.createTaxonRowWrapper( |
|
230 |
// taxonDescription.getUuid(), |
|
231 |
// matrix.getDescriptiveDataSet().getUuid()))); |
|
223 |
matrix.loadDescriptions(descriptiveDataSetUuid); |
|
232 | 224 |
} |
233 | 225 |
} catch (InterruptedException e) { |
234 | 226 |
return; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixPart.java | ||
---|---|---|
140 | 140 |
matrix.initDescriptiveDataSet(descriptiveDataSet); |
141 | 141 |
matrix.createTable(treeView, true); |
142 | 142 |
thisPart.setLabel(descriptiveDataSet.getLabel()); |
143 |
matrix.loadDescriptions(descriptiveDataSet); |
|
143 |
matrix.loadDescriptions(descriptiveDataSetUuid);
|
|
144 | 144 |
} |
145 | 145 |
} |
146 | 146 |
|
Also available in: Unified diff
ref #7597 Re-load dataset descriptions after aggregation