X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fscl%2FSCL%2FCommandSession.scl;fp=bundles%2Forg.simantics.scl.compiler%2Fscl%2FSCL%2FCommandSession.scl;h=33b4dd7fcaa6982fcf6175a9cc85c7c1dc5f6878;hp=0000000000000000000000000000000000000000;hb=718558937433af8710e2e32402e3557eb67e3f43;hpb=036b555cbdd43f284be4818de93f11fdddf6d9f2 diff --git a/bundles/org.simantics.scl.compiler/scl/SCL/CommandSession.scl b/bundles/org.simantics.scl.compiler/scl/SCL/CommandSession.scl new file mode 100644 index 000000000..33b4dd7fc --- /dev/null +++ b/bundles/org.simantics.scl.compiler/scl/SCL/CommandSession.scl @@ -0,0 +1,19 @@ +// This module is meant to be imported with namespace +import "SCL/ModuleRepository" +import "SafeDynamic" + +importJava "org.simantics.scl.compiler.commands.CommandSession" where + data CommandSession + + @JavaName "" + create :: ModuleRepository -> CommandSession + + execute :: CommandSession -> String -> () + + @JavaName getVariableValueAndType + get :: CommandSession -> String -> Maybe SafeDynamic + @JavaName setVariable + set :: CommandSession -> String -> SafeDynamic -> () + + @JavaName removeVariable + remove :: CommandSession -> String -> () \ No newline at end of file