X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fscl%2FSimantics%2FSCL.scl;h=d636ca8eff2a1c99574ec15125c5691f7ab0f852;hp=05fbc0ee21af000cfe89cd769532796185956f3a;hb=3edbf85ff8a7f1bd596857a24b1bdebd66943d6b;hpb=28383a4302178eb8aaac0c0e870fec438dbca935 diff --git a/bundles/org.simantics.modeling/scl/Simantics/SCL.scl b/bundles/org.simantics.modeling/scl/Simantics/SCL.scl index 05fbc0ee2..d636ca8ef 100644 --- a/bundles/org.simantics.modeling/scl/Simantics/SCL.scl +++ b/bundles/org.simantics.modeling/scl/Simantics/SCL.scl @@ -42,9 +42,58 @@ importJava "org.simantics.modeling.ModelingUtils" where createSCLModuleDefault :: Resource -> () createSCLScriptDefault :: Resource -> () createPGraphDefault :: Resource -> () + "Use [createSCLModuleR](#createSCLModuleR) instead." + @deprecated createSCLModule :: Resource -> String -> () + "Use [createSCLScriptR](#createSCLScriptR) instead." + @deprecated createSCLScript :: Resource -> String -> () + "Use [createPGraphR](#createPGraphR) instead." + @deprecated createPGraph :: Resource -> String -> () + """ + `createSCLModuleR container name` creates a new empty SCL module under + the specified `container` with the specified `name` and returns the created + module's Resource. + """ + @JavaName createSCLModule + createSCLModuleR :: Resource -> String -> Resource + """ + `createSCLScriptR container name` creates a new empty SCL script under + the specified `container` with the specified `name` and returns the created + script's Resource. + """ + @JavaName createSCLScript + createSCLScriptR :: Resource -> String -> Resource + """ + `createPGraphR container name` creates a new empty partial graph + ontology definition (PGraph) under the specified `container` with + the specified `name` and returns the created ontology definition's + Resource. + """ + @JavaName createPGraph + createPGraphR :: Resource -> String -> Resource + "`setSCLModuleDefinition module definition` sets the textual `definition` of the specified SCL `module`." + setSCLModuleDefinition :: Resource -> String -> Resource + "`setSCLScriptDefinition module definition` sets the textual `definition` of the specified SCL `module`." + setSCLScriptDefinition :: Resource -> String -> Resource + setPGraphDefinition :: Resource -> String -> Resource + +""" +`createSCLModuleWithDefinition container name definition` creates a new SCL module under +the specified `container` with the specified `name` and `definition` and returns +the created module's Resource. +""" +createSCLModuleWithDefinition :: Resource -> String -> String -> Resource +createSCLModuleWithDefinition container name definition = setSCLModuleDefinition (createSCLModuleR container name) definition + +""" +`createSCLScriptWithDefinition container name definition` creates a new SCL script under +the specified `container` with the specified `name` and `definition` and returns +the created script's Resource. +""" +createSCLScriptWithDefinition :: Resource -> String -> String -> Resource +createSCLScriptWithDefinition container name definition = setSCLScriptDefinition (createSCLScriptR container name) definition effect SCL "scl"