]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/scl/Simantics/Misc.scl
setSystemProperty function to Simantics/Misc SCL-module
[simantics/platform.git] / bundles / org.simantics.modeling / scl / Simantics / Misc.scl
index 1ab714b789b9e635eb8ec8ab874daddfff8b1449..8b76629928f2a3ffca982025af3378de13be89a3 100644 (file)
@@ -141,7 +141,9 @@ loop4 testScan testList found = do
 importJava "java.lang.System" where
     @JavaName "getProperty"
     getSystemProperty :: String -> Maybe String
-    
+    @JavaName setProperty
+    setSystemProperty :: String -> String -> <Proc> String
+
 importJava "org.simantics.modeling.LifeCycleContext" where
     data LifeCycleContext
 
@@ -150,5 +152,8 @@ importJava "org.simantics.modeling.ModelingUtils" where
     untrackDependencies :: <Proc> ()
     trackOntologicalRequirements :: <Proc> ()
     untrackOntologicalRequirements :: <Proc> ()
-    
+
+importJava "org.simantics.modeling.scl.SCLDependencyChangeListener" where
+    @JavaName "create"
+    createDependencyChangeListener :: (<Proc> Boolean) -> (MetadataI -> DependencyChanges -> <ReadGraph,Proc> ()) -> ChangeListener
     
\ No newline at end of file