-package org.simantics.modeling;\r
-\r
-import java.util.Set;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.scl.compiler.environment.LocalEnvironment;\r
-import org.simantics.scl.compiler.environment.specification.EnvironmentSpecification;\r
-\r
-public interface IComponentTypeScriptEnvironmentFactory {\r
-\r
- /**\r
- * Return the EnvironmentSpecification used to initialize the runtime environment for this script\r
- * \r
- * @param graph\r
- * @param componentType\r
- * @return the runtime enviroment\r
- * @throws DatabaseException\r
- */\r
- public EnvironmentSpecification getRuntimeEnvironmentSpecification(ReadGraph graph, Resource componentType) throws DatabaseException;\r
- \r
- /**\r
- * Return a local environment for this script if one is needed\r
- * \r
- * @param graph\r
- * @param componentType\r
- * @return the local environment or null\r
- * @throws DatabaseException\r
- */\r
- public LocalEnvironment getLocalEnvironment(ReadGraph graph, Resource componentType) throws DatabaseException;\r
- \r
- /**\r
- * Get the set of all modules the local environment returned by getLocalEnvironment reads from\r
- * \r
- * @param environment\r
- * @return a set of module names or null\r
- */\r
- public Set<String> getModuleReads(LocalEnvironment environment);\r
- \r
- /**\r
- * Get the set of all modules the local environment returned by getLocalEnvironment writes to\r
- * \r
- * @param environment\r
- * @return a set of module names or null\r
- */\r
- public Set<String> getModuleWrites(LocalEnvironment environment);\r
- \r
-}\r
+package org.simantics.modeling;
+
+import java.util.Set;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.scl.compiler.environment.LocalEnvironment;
+import org.simantics.scl.compiler.environment.specification.EnvironmentSpecification;
+
+public interface IComponentTypeScriptEnvironmentFactory {
+
+ /**
+ * Return the EnvironmentSpecification used to initialize the runtime environment for this script
+ *
+ * @param graph
+ * @param componentType
+ * @return the runtime enviroment
+ * @throws DatabaseException
+ */
+ public EnvironmentSpecification getRuntimeEnvironmentSpecification(ReadGraph graph, Resource componentType) throws DatabaseException;
+
+ /**
+ * Return a local environment for this script if one is needed
+ *
+ * @param graph
+ * @param componentType
+ * @return the local environment or null
+ * @throws DatabaseException
+ */
+ public LocalEnvironment getLocalEnvironment(ReadGraph graph, Resource componentType) throws DatabaseException;
+
+ /**
+ * Get the set of all modules the local environment returned by getLocalEnvironment reads from
+ *
+ * @param environment
+ * @return a set of module names or null
+ */
+ public Set<String> getModuleReads(LocalEnvironment environment);
+
+ /**
+ * Get the set of all modules the local environment returned by getLocalEnvironment writes to
+ *
+ * @param environment
+ * @return a set of module names or null
+ */
+ public Set<String> getModuleWrites(LocalEnvironment environment);
+
+}