Revision 83d4b229
Added by Niels Hoffmann over 12 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/DeleteHandler.java | ||
---|---|---|
63 | 63 |
for(Object object : structuredSelection.toList()){ |
64 | 64 |
|
65 | 65 |
LineAnnotation annotation = (LineAnnotation) model.getAnnotation(object); |
66 |
|
|
67 |
// persistenceService.delete(object); |
|
66 |
|
|
67 |
try { |
|
68 |
persistenceService.delete(object); |
|
69 |
} catch (Exception e){ |
|
70 |
BulkEditorUtil.errorDialog("Could not delete", getClass(), e.getMessage(), null); |
|
71 |
} |
|
68 | 72 |
((BulkEditor) editor).removeAnnotatedLine(annotation); |
69 | 73 |
|
70 | 74 |
} |
Also available in: Unified diff