(no commit message)
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / model / MementoHelper.java
index 99f01107b9731d815a33bf7224338c83a3c4a3cb..9a8c6ea870d42b98a94145ae5eed05c7e46a8e06 100644 (file)
@@ -27,12 +27,21 @@ import org.eclipse.ui.XMLMemento;
 import eu.etaxonomy.taxeditor.store.StoreUtil;
 
 /**
+ * <p>MementoHelper class.</p>
+ *
  * @author n.hoffmann
  * @created Mar 29, 2010
  * @version 1.0
  */
 public class MementoHelper {
        
+       /**
+        * <p>readMementoFromFile</p>
+        *
+        * @param stateFile a {@link java.io.File} object.
+        * @return a org.eclipse.ui.IMemento object.
+        * @throws java.io.FileNotFoundException if any.
+        */
        public static IMemento readMementoFromFile(File stateFile) throws FileNotFoundException{
                FileInputStream input;
                try {
@@ -52,6 +61,13 @@ public class MementoHelper {
        /*
         * Save the workbench UI in a persistence file.
         */
+       /**
+        * <p>saveMementoToFile</p>
+        *
+        * @param memento a org.eclipse.ui.IMemento object.
+        * @param stateFile a {@link java.io.File} object.
+        * @return a org.eclipse.ui.IMemento object.
+        */
        public static IMemento saveMementoToFile(IMemento memento, File stateFile) {
                if (stateFile == null || memento == null) {
                        return null;