Revision f682ffdd
Added by Katja Luther over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/SelectFeatureTreeWizardPage.java | ||
---|---|---|
11 | 11 |
package eu.etaxonomy.taxeditor.featuretree; |
12 | 12 |
|
13 | 13 |
import java.util.List; |
14 |
import java.util.logging.ErrorManager; |
|
14 | 15 |
|
15 | 16 |
import org.eclipse.jface.viewers.ISelectionChangedListener; |
16 | 17 |
import org.eclipse.jface.viewers.IStructuredSelection; |
... | ... | |
33 | 34 |
import eu.etaxonomy.cdm.api.service.DeleteResult; |
34 | 35 |
import eu.etaxonomy.cdm.api.service.IFeatureTreeService; |
35 | 36 |
import eu.etaxonomy.cdm.model.description.FeatureTree; |
37 |
import eu.etaxonomy.taxeditor.model.DeleteResultMessagingUtils; |
|
38 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
36 | 39 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
37 | 40 |
|
38 | 41 |
/** |
... | ... | |
170 | 173 |
DeleteResult result = CdmStore.getService(IFeatureTreeService.class).delete(((FeatureTree) element).getUuid()); |
171 | 174 |
|
172 | 175 |
if (result.isError()){ |
173 |
|
|
176 |
DeleteResultMessagingUtils.messageDialogWithDetails(result, "The delete of the feature tree was not successful.", null); |
|
174 | 177 |
} |
175 | 178 |
viewer.setSelection(new StructuredSelection(new Object[0])); |
176 | 179 |
} |
Also available in: Unified diff
fixing #5341