delete of group in bulkeditor #4054
authorKatja Luther <k.luther@bgbm.org>
Wed, 12 Feb 2014 10:15:56 +0000 (10:15 +0000)
committerKatja Luther <k.luther@bgbm.org>
Wed, 12 Feb 2014 10:15:56 +0000 (10:15 +0000)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/DeleteHandler.java

index f08c60f92954a3edc7d4aaa0a1e212547b988190..5bce4bd3dd53f095ba819713b9f28675641a7532 100644 (file)
@@ -21,9 +21,11 @@ import org.eclipse.ui.handlers.HandlerUtil;
 import org.eclipse.ui.texteditor.IDocumentProvider;
 
 import eu.etaxonomy.cdm.api.application.CdmApplicationController;
+import eu.etaxonomy.cdm.api.service.IGroupService;
 import eu.etaxonomy.cdm.api.service.IOccurrenceService;
 import eu.etaxonomy.cdm.api.service.IReferenceService;
 import eu.etaxonomy.cdm.api.service.ITaxonService;
+import eu.etaxonomy.cdm.model.common.Group;
 import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
 import eu.etaxonomy.cdm.model.reference.Reference;
 import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
@@ -83,6 +85,9 @@ public class DeleteHandler extends AbstractHandler {
                                                } else if (object instanceof Reference){
                                                        IReferenceService service = controller.getReferenceService();
                                                        service.delete((Reference)object);
+                                               } else if (object instanceof Group){
+                                                       IGroupService service = controller.getGroupService();
+                                                       service.delete((Group) object);
                                                }
                                                
                                        } catch (Exception e){