]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/StatePersistor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui / src / org / simantics / browsing / ui / StatePersistor.java
index 49213b766a7e44eb360ed83fd9b9e2c4f1f8e743..b351bbabc28d019761afac8cc2f35e65df221804 100644 (file)
@@ -1,54 +1,54 @@
-/*******************************************************************************\r
- * Copyright (c) 2012 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     Semantum Oy - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.browsing.ui;\r
-\r
-import java.io.File;\r
-\r
-/**\r
- * @author Antti Villberg\r
- * @see GraphExplorer#setPersistor(StatePersistor)\r
- */\r
-public interface StatePersistor {\r
-\r
-       /**\r
-        * Deserializes a possibly stored state for the specified input from the\r
-        * specified location. The locality of the restored state is up to the\r
-        * implementation to decide (i.e. input-specific or more global).\r
-        * \r
-        * @param stateLocation\r
-        *            the base location to deserialize the possible state from\r
-        * @param root\r
-        *            the current input to deserialize the state for or\r
-        *            <code>null</code> if no input is defined\r
-        * @return the deserialized state, may not be <code>null</code>.\r
-        *         Implementations may return {@link ExplorerState#EMPTY} if there's\r
-        *         no state to restore.\r
-        * @see ExplorerState#EMPTY\r
-        */\r
-       ExplorerState deserialize(File stateLocation, NodeContext root);\r
-\r
-       /**\r
-        * Serializes the specified explorer state for the specified input to the\r
-        * specified location. The locality of the stored state is up to the\r
-        * implementation to decide (i.e. input-specific or more global).\r
-        * \r
-        * @param stateLocation\r
-        *            the base location to serialize the state to\r
-        * @param root\r
-        *            the current input to serialize the state for or\r
-        *            <code>null</code> if no input is defined\r
-        * @param state\r
-        *            the state to serialize\r
-        */\r
-       void serialize(File stateLocation, NodeContext root, ExplorerState state);\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2012 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     Semantum Oy - initial API and implementation
+ *******************************************************************************/
+package org.simantics.browsing.ui;
+
+import java.io.File;
+
+/**
+ * @author Antti Villberg
+ * @see GraphExplorer#setPersistor(StatePersistor)
+ */
+public interface StatePersistor {
+
+       /**
+        * Deserializes a possibly stored state for the specified input from the
+        * specified location. The locality of the restored state is up to the
+        * implementation to decide (i.e. input-specific or more global).
+        * 
+        * @param stateLocation
+        *            the base location to deserialize the possible state from
+        * @param root
+        *            the current input to deserialize the state for or
+        *            <code>null</code> if no input is defined
+        * @return the deserialized state, may not be <code>null</code>.
+        *         Implementations may return {@link ExplorerState#EMPTY} if there's
+        *         no state to restore.
+        * @see ExplorerState#EMPTY
+        */
+       ExplorerState deserialize(File stateLocation, NodeContext root);
+
+       /**
+        * Serializes the specified explorer state for the specified input to the
+        * specified location. The locality of the stored state is up to the
+        * implementation to decide (i.e. input-specific or more global).
+        * 
+        * @param stateLocation
+        *            the base location to serialize the state to
+        * @param root
+        *            the current input to serialize the state for or
+        *            <code>null</code> if no input is defined
+        * @param state
+        *            the state to serialize
+        */
+       void serialize(File stateLocation, NodeContext root, ExplorerState state);
+
+}