(no commit message)
authorn.hoffmann <n.hoffmann@localhost>
Tue, 9 Nov 2010 11:44:58 +0000 (11:44 +0000)
committern.hoffmann <n.hoffmann@localhost>
Tue, 9 Nov 2010 11:44:58 +0000 (11:44 +0000)
.gitignore
taxeditor-store/pom.xml
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/model/MementoHelper.java

index b0142a29424f866b3af06e5f053c72c050e3df44..8f1906be0d5f825961ed99d87d84a0ede1eb303a 100644 (file)
@@ -77,5 +77,6 @@ taxeditor-printpublisher/target
 taxeditor-store/.classpath
 taxeditor-store/.project
 taxeditor-store/.settings
+taxeditor-store/hibernate.log
 taxeditor-store/target
 /workspace
index a08c72ca601484e66034ddaa01afe3264001c88c..22fa54ba8cb6f2faf1140543531aeda0eaa34af4 100644 (file)
                <artifactId>cdmlib-services</artifactId>
                <version>2.5</version>
        </dependency>
+       <dependency>
+               <groupId>eu.etaxonomy</groupId>
+               <artifactId>cdmlib-io</artifactId>
+               <version>2.5</version>
+       </dependency>
+       <dependency>
+               <groupId>eu.etaxonomy</groupId>
+               <artifactId>cdmlib-ext</artifactId>
+               <version>2.5</version>
+       </dependency>
        <dependency>
                <groupId>eu.etaxonomy</groupId>
                <artifactId>cdmlib-persistence</artifactId>
                <scope>test</scope>
                <version>2.5</version>
        </dependency>
+       <dependency>
+               <groupId>org.eclipse.core</groupId>
+               <artifactId>commands</artifactId>
+               <version>3.6.0</version>
+       </dependency>
+       <dependency>
+               <groupId>org.eclipse.ui</groupId>
+               <artifactId>workbench</artifactId>
+               <version>3.6.0</version>
+       </dependency>
+       <dependency>
+               <groupId>org.eclipse.ui</groupId>
+               <artifactId>navigator</artifactId>
+               <version>3.5.0</version>
+       </dependency>
+       <dependency>
+               <groupId>org.eclipse.ui</groupId>
+               <artifactId>ide</artifactId>
+               <version>3.6.0</version>
+       </dependency>
+       <dependency>
+               <groupId>org.eclipse.equinox.p2.metadata</groupId>
+               <artifactId>repository</artifactId>
+               <version>1.1.0</version>
+       </dependency>
+       <dependency>
+               <groupId>org.eclipse.ecf</groupId>
+               <artifactId>filetransfer</artifactId>
+               <version>4.0.0</version>
+       </dependency>
+       <dependency>
+               <groupId>org.eclipse.ecf.provider</groupId>
+               <artifactId>filetransfer</artifactId>
+               <version>3.1.0</version>
+       </dependency>
+       <dependency>
+               <groupId>org.eclipse</groupId>
+               <artifactId>swt</artifactId>
+               <version>3.6.0</version>
+       </dependency>
+       <dependency>
+               <groupId>org.eclipse.swt.cocoa</groupId>
+               <artifactId>macosx</artifactId>
+               <version>3.6.0</version>
+       </dependency>
   </dependencies>
 </project>
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;