fixing #5341
authorKatja Luther <k.luther@bgbm.org>
Thu, 5 Nov 2015 13:54:47 +0000 (14:54 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 5 Nov 2015 13:54:47 +0000 (14:54 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/SelectFeatureTreeWizardPage.java

index 0816291627acedec384f8911e8ede0898a54c5cc..8e8a12441070851c78350530f44210288d366ed6 100644 (file)
@@ -11,6 +11,7 @@
 package eu.etaxonomy.taxeditor.featuretree;
 
 import java.util.List;
+import java.util.logging.ErrorManager;
 
 import org.eclipse.jface.viewers.ISelectionChangedListener;
 import org.eclipse.jface.viewers.IStructuredSelection;
@@ -33,6 +34,8 @@ import org.eclipse.swt.widgets.Text;
 import eu.etaxonomy.cdm.api.service.DeleteResult;
 import eu.etaxonomy.cdm.api.service.IFeatureTreeService;
 import eu.etaxonomy.cdm.model.description.FeatureTree;
+import eu.etaxonomy.taxeditor.model.DeleteResultMessagingUtils;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
@@ -170,7 +173,7 @@ public class SelectFeatureTreeWizardPage extends WizardPage implements ISelectio
                                DeleteResult result =   CdmStore.getService(IFeatureTreeService.class).delete(((FeatureTree) element).getUuid());
 
                                if (result.isError()){
-
+                                       DeleteResultMessagingUtils.messageDialogWithDetails(result, "The delete of the feature tree was not successful.", null);
                                }
                                viewer.setSelection(new StructuredSelection(new Object[0]));
                        }