Project

General

Profile

Revision 4bd58693

ID4bd586937edebacc8106af55b49baa1e019a7a59
Parent 244b1fad
Child fa518bf8

Added by Katja Luther about 7 years ago

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/operation/DeleteOperation.java
58 58
		if (result.isError()){
59 59
			MessageDialog.openError(null, "Delete failed", result.getExceptions().get(0).getMessage());
60 60
			
61
		}else if(!result.getExceptions().isEmpty()){
62
			//TODO:Warning!
61
		}else if(result.isAbort()){
62
			MessageDialog.openWarning(null, "Delete abort", "The object could not be deleted, maybe there was no object selected.");
63 63
		}
64 64
		
65 65
		return postExecute(null);
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/DeleteOperation.java
114 114
						return null;
115 115
					}
116 116
				}*/
117

  
117
				
118 118
				DeleteResult result = CdmStore.getService(IClassificationService.class).delete(taxonomicTree);
119 119
				if (result.isError()){
120 120
					//TODO:Error message!
......
129 129
					}
130 130
				}*/
131 131
			} else {
132
				service.deleteTaxonNodes(treeNodes, config);
132
				
133
				DeleteResult result =service.deleteTaxonNodes(treeNodes, config);
134
				if (result.isError()){
135
					//TODO:Error message!
136
					MessageDialog.openError(null, "Delete failed", result.getExceptions().get(0).getMessage());
137
				}
133 138
			}
134 139

  
135 140
		monitor.worked(40);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)