Revision c7d830cc
Added by Cherian Mathew about 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/operation/DeleteNodeOperation.java | ||
---|---|---|
52 | 52 |
IPolytomousKeyNodeService service = controller.getPolytomousKeyNodeService(); |
53 | 53 |
if (node.getChildren().size()>0){ |
54 | 54 |
if(! MessageDialog.openQuestion(null, "Confirm deletion of children", "The selected node has children, do you want to delete them, too?")) { |
55 |
service.delete(node, false, true);
|
|
55 |
service.delete(node.getUuid(), false);
|
|
56 | 56 |
} else{ |
57 |
service.delete(node, true, true);
|
|
57 |
service.delete(node.getUuid(), true);
|
|
58 | 58 |
} |
59 | 59 |
} else{ |
60 |
service.delete(node, true, true);
|
|
60 |
service.delete(node.getUuid(), true);
|
|
61 | 61 |
} |
62 | 62 |
return postExecute(null); |
63 | 63 |
} |
Also available in: Unified diff
CdmModelCacher : added recursive search in super classes
CdmTransientEntityCacher : corrected caching
EntityCacherDebugResult : new debug result object
CdmEntitySession, ICdmEntitySession, MockCdmEntitySession : added debug method
CdmEntitySessionInput : new super class for editor input objects
TaxonEditorInput : refactored and made sub class of CdmEntitySessionInput
DeleteNodeOperation : using new uuid service methods
TaxonNameEditor : removed unnecessary service call to retrieve taxon
TaxonLinkHelper : removed unnecessary second call to initialise input
AbstractCdmViewPart : now implements ISessionEnabled