package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
-import java.util.ArrayList;
-import java.util.List;
-
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.operations.IUndoContext;
import org.eclipse.core.runtime.IAdaptable;
monitor.worked(20);
if (description != null){
- List<String> propertyPaths = new ArrayList<String>();
- propertyPaths.add("taxon");
- TaxonDescription loadedDescription = (TaxonDescription) CdmStore.getService(IDescriptionService.class).load(description.getUuid(), propertyPaths);
- CdmStore.getService(IDescriptionService.class).deleteDescription(loadedDescription);
+ CdmStore.getService(IDescriptionService.class).deleteDescription(description.getUuid());
return postExecute(description);
}
return null;