Revision feb6d41a
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/RemotingDeleteTaxonNodeOperation.java | ||
---|---|---|
57 | 57 |
*/ |
58 | 58 |
@Override |
59 | 59 |
protected UpdateResult doUpdateExecute(IProgressMonitor monitor, IAdaptable info) throws Exception { |
60 |
|
|
61 |
|
|
60 | 62 |
if(treeNodes.size() == 1) { |
61 | 63 |
// when single node this is either a taxon or a classification |
62 | 64 |
ITaxonTreeNode node = treeNodes.iterator().next(); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewTaxonNodeWizard.java | ||
---|---|---|
60 | 60 |
// by making the affected objects a set of ICdmBase |
61 | 61 |
// Also, this needs to be moved to the new operations |
62 | 62 |
// architecture. |
63 |
if(parent instanceof Classification) { |
|
64 |
affectedObjects.add((Classification)parent); |
|
63 |
|
|
64 |
TaxonNode parentNode = taxonNode.getParent(); |
|
65 |
if(parentNode.getParent() == null) { |
|
66 |
affectedObjects.add(taxonNode.getClassification()); |
|
65 | 67 |
} |
66 | 68 |
|
67 |
if(parent instanceof TaxonNode) { |
|
68 |
affectedObjects.add((TaxonNode)parent);
|
|
69 |
if(parentNode instanceof TaxonNode) {
|
|
70 |
affectedObjects.add(parentNode);
|
|
69 | 71 |
} |
70 | 72 |
|
71 | 73 |
CdmApplicationState.getCurrentDataChangeService() |
Also available in: Unified diff
#5234 Add correct updated objects to change event