Revision e980623e
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java | ||
---|---|---|
49 | 49 |
|
50 | 50 |
private boolean createNew = false; |
51 | 51 |
|
52 |
private EntitySelectionElement<Classification> selection_classification; |
|
52 |
// private EntitySelectionElement<Classification> selection_classification;
|
|
53 | 53 |
|
54 | 54 |
private Classification classification; |
55 | 55 |
|
... | ... | |
274 | 274 |
textNewTaxonName.setEnabled(enabled); |
275 | 275 |
complete = !textNewTaxonName.getText().isEmpty(); |
276 | 276 |
} |
277 |
if (!isCreateNew()){ |
|
278 |
if (eventSource == selection_Ref) {
|
|
279 |
getEntity().setReference(selection_Ref.getEntity());
|
|
280 |
}else if (eventSource == selection_SecRef) {
|
|
281 |
taxon.setSec(selection_SecRef.getEntity());
|
|
282 |
}else if (eventSource == microReference) {
|
|
283 |
getEntity().setMicroReference(microReference.getText());
|
|
284 |
} else if (eventSource == checkbox_publish) {
|
|
285 |
taxon.setPublish(checkbox_publish.getSelection());
|
|
286 |
}
|
|
287 |
} |
|
277 |
|
|
278 |
if (eventSource == selection_Ref) { |
|
279 |
getEntity().setReference(selection_Ref.getEntity()); |
|
280 |
}else if (eventSource == selection_SecRef) { |
|
281 |
taxon.setSec(selection_SecRef.getEntity()); |
|
282 |
}else if (eventSource == microReference) { |
|
283 |
getEntity().setMicroReference(microReference.getText()); |
|
284 |
} else if (eventSource == checkbox_publish) { |
|
285 |
taxon.setPublish(checkbox_publish.getSelection()); |
|
286 |
} |
|
287 |
|
|
288 | 288 |
if (eventSource == checkbox_excluded) { |
289 | 289 |
excluded = checkbox_excluded.getSelection(); |
290 | 290 |
|
... | ... | |
306 | 306 |
|
307 | 307 |
complete = CdmUtils.isNotBlank(textNewTaxonName.getText()); |
308 | 308 |
} |
309 |
// if (eventSource == checkbox_openInEditor) { |
|
310 |
// setOpenInEditor(checkbox_openInEditor.getSelection()); |
|
311 |
// } |
|
309 |
|
|
312 | 310 |
if (eventSource == selectionNodeAgentRelation){ |
313 | 311 |
boolean allComplete = true; |
314 | 312 |
for (ICdmFormElement element : selectionNodeAgentRelation.getElements()){ |
... | ... | |
340 | 338 |
|
341 | 339 |
if (parentTreeNode.getTaxon() == null) { |
342 | 340 |
classification = parentTreeNode.getClassification(); |
343 |
if (selection_classification != null){ |
|
344 |
selection_classification.setEntity(classification); |
|
345 |
} |
|
341 |
// if (selection_classification != null){
|
|
342 |
// selection_classification.setEntity(classification);
|
|
343 |
// }
|
|
346 | 344 |
selection_parentTaxonNode.setEntity(classification.getRootNode()); |
347 | 345 |
selection_parentTaxonNode.setClassification(classification); |
348 | 346 |
selection_SecRef.setEntity(classification.getReference()); |
349 | 347 |
} else { |
350 | 348 |
classification = HibernateProxyHelper |
351 | 349 |
.deproxy(parentTreeNode.getClassification()); |
352 |
if (selection_classification != null){ |
|
353 |
selection_classification.setEntity(classification); |
|
354 |
} |
|
350 |
// if (selection_classification != null){
|
|
351 |
// selection_classification.setEntity(classification);
|
|
352 |
// }
|
|
355 | 353 |
selection_parentTaxonNode.setEntity(HibernateProxyHelper |
356 | 354 |
.deproxy(parentTreeNode)); |
357 | 355 |
selection_parentTaxonNode.setClassification(classification); |
Also available in: Unified diff
ref #8037: handle setting of microreference