Revision 4e8d2362
Added by Katja Luther over 10 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/DeleteHandler.java | ||
---|---|---|
88 | 88 |
|
89 | 89 |
if (allEditorsClosed){ |
90 | 90 |
ITaxonTreeNode treeNode = treeNodes.iterator().next(); |
91 |
if (treeNode instanceof Classification){ |
|
91 |
/*if (treeNode instanceof Classification){
|
|
92 | 92 |
operation = new DeleteOperation( |
93 | 93 |
event.getCommand().getName(), NavigationUtil.getUndoContext(), |
94 | 94 |
treeNodes, new TaxonDeletionConfigurator(), taxonNavigator, taxonNavigator); |
95 | 95 |
|
96 | 96 |
NavigationUtil.executeOperation(operation); |
97 |
}else { |
|
98 |
TaxonNode taxonNode = (TaxonNode)treeNode;
|
|
97 |
}else {*/
|
|
98 |
ITaxonTreeNode taxonNode =treeNode;
|
|
99 | 99 |
operation = new DeleteOperation( |
100 | 100 |
event.getCommand().getName(), NavigationUtil.getUndoContext(), |
101 | 101 |
taxonNode, new TaxonDeletionConfigurator(), taxonNavigator, taxonNavigator); |
102 | 102 |
|
103 | 103 |
NavigationUtil.executeOperation(operation); |
104 |
} |
|
104 |
//}
|
|
105 | 105 |
} |
106 | 106 |
|
107 | 107 |
|
Also available in: Unified diff
improve delete of classifications