ref #2380: implement usage of Dto for taxon navigator
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / model / MementoHelper.java
index 9a8c6ea870d42b98a94145ae5eed05c7e46a8e06..21c9caee7c95b661e2e8612570c2e8ac8a6746da 100644 (file)
@@ -1,4 +1,3 @@
-// $Id$
 /**
 * Copyright (C) 2007 EDIT
 * European Distributed Institute of Taxonomy 
@@ -24,7 +23,6 @@ import org.eclipse.ui.IMemento;
 import org.eclipse.ui.WorkbenchException;
 import org.eclipse.ui.XMLMemento;
 
-import eu.etaxonomy.taxeditor.store.StoreUtil;
 
 /**
  * <p>MementoHelper class.</p>
@@ -50,9 +48,9 @@ public class MementoHelper {
                                        new InputStreamReader(input, "utf-8")); //$NON-NLS-1$
                        return XMLMemento.createReadRoot(reader);
                } catch (WorkbenchException e) {
-                       StoreUtil.error(MementoHelper.class, "Exception while reading the memento", e);
+                       MessagingUtils.error(MementoHelper.class, "Exception while reading the memento", e);
                } catch (UnsupportedEncodingException e) {
-                       StoreUtil.error(MementoHelper.class, "Exception while reading the memento", e);
+                       MessagingUtils.error(MementoHelper.class, "Exception while reading the memento", e);
                }
 
                return null;
@@ -81,7 +79,7 @@ public class MementoHelper {
                        writer.close();
                } catch (IOException e) {
                        stateFile.delete();
-                       StoreUtil.error(MementoHelper.class, "Could not save datasource state", e);
+                       MessagingUtils.error(MementoHelper.class, "Could not save datasource state", e);
                        return null;
                }