- rename IDirtyMarkableSelectionProvider to IDirtyMarkable
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / ImageElement.java
index 6cd7677b4c1c944e18d32ca260baf149b03f0b8f..090413bb9fe20aea585212bfe59d5cfc7b5bce54 100644 (file)
@@ -32,8 +32,7 @@ import org.eclipse.swt.widgets.Event;
 import org.eclipse.ui.forms.widgets.TableWrapData;
 
 import eu.etaxonomy.cdm.common.UriUtils;
-import eu.etaxonomy.taxeditor.store.StoreUtil;
-import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
 
 /**
  * <p>ImageElement class.</p>
@@ -105,7 +104,7 @@ public class ImageElement extends AbstractCdmFormElement implements PaintListene
                                        try {
                                                runnable.run(monitor);
                                        } catch (Exception e) {
-                                               StoreUtil.errorDialog("Could not load image", getClass(), e.getMessage()  + ": " +  getImageUri(), e);
+                                               MessagingUtils.messageDialog("Could not load image", getClass(), e.getMessage()  + ": " +  getImageUri(), e);
                                        }
                                        
                                        return Status.OK_STATUS;
@@ -126,7 +125,7 @@ public class ImageElement extends AbstractCdmFormElement implements PaintListene
                                try {
                                        runnable.run(monitor);
                                } catch (Exception e) {
-                                       StoreUtil.errorDialog("Could not unload image", getClass(), e.getMessage()  + ": " +  getImageUri(), e);
+                                       MessagingUtils.messageDialog("Could not unload image", getClass(), e.getMessage()  + ": " +  getImageUri(), e);
                                }
                                
                                return Status.OK_STATUS;