Revision 97e10b7c
Added by Katja Luther over 10 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/operation/DeleteOperation.java | ||
---|---|---|
18 | 18 |
|
19 | 19 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
20 | 20 |
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService; |
21 |
import eu.etaxonomy.cdm.api.service.exception.ReferencedObjectUndeletableException; |
|
21 | 22 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
22 | 23 |
import eu.etaxonomy.taxeditor.operation.AbstractPersistentPostOperation; |
23 | 24 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
... | ... | |
51 | 52 |
public IStatus execute(IProgressMonitor monitor, IAdaptable info) |
52 | 53 |
throws ExecutionException { |
53 | 54 |
bind(); |
54 |
CdmStore.getService(IPolytomousKeyService.class).delete(key); |
|
55 |
try{ |
|
56 |
CdmStore.getService(IPolytomousKeyService.class).delete(key); |
|
57 |
}catch(ReferencedObjectUndeletableException e){ |
|
58 |
throw new ExecutionException(e.getMessage()); |
|
59 |
} |
|
55 | 60 |
return postExecute(null); |
56 | 61 |
} |
57 | 62 |
|
Also available in: Unified diff
minor