X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2FIComponentTypeScriptEnvironmentFactory.java;h=65f4f1bb4d3adc5500155b9ea76fd117b2757613;hb=b055bfb36cca301ceed0591028d245e152c8c32d;hp=262143d1b19b452a1bea916fedc56ddf2ba225ec;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/IComponentTypeScriptEnvironmentFactory.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/IComponentTypeScriptEnvironmentFactory.java index 262143d1b..65f4f1bb4 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/IComponentTypeScriptEnvironmentFactory.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/IComponentTypeScriptEnvironmentFactory.java @@ -1,49 +1,49 @@ -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 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 getModuleWrites(LocalEnvironment environment); - -} +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 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 getModuleWrites(LocalEnvironment environment); + +}