]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/scl/Simantics/Misc.scl
System.currentTimeMillis to "Simantics/Misc" SCL-module
[simantics/platform.git] / bundles / org.simantics.modeling / scl / Simantics / Misc.scl
index 1ab714b789b9e635eb8ec8ab874daddfff8b1449..1aed9d43eacfda41b6f63be5dce29dc3ad52f0bf 100644 (file)
@@ -2,15 +2,6 @@ import "Simantics/Entity" hiding (nameOf)
 include "File"
 import "StandardLibrary" hiding (group)
 
-/*
-importJava "java.io.File" where
-    data File
-    
-    @JavaName "<init>"
-    file :: String -> File
-    
-*/
-
 importJava "java.util.Scanner" where
     data Scanner
     
@@ -29,22 +20,7 @@ importJava "java.util.Scanner" where
     @JavaName "nextLine"
     scanNextLine :: Scanner -> String
 
-importJava "java.util.regex.Pattern" where
-    data Pattern
-    
-    @JavaName "compile"
-    compile :: String -> <Proc> Pattern
-    
-    @JavaName "matcher"
-    matcher :: Pattern -> String -> Matcher
-
-importJava "java.util.regex.Matcher" where
-    data Matcher
-    
-    @JavaName "matches"
-    matches :: Matcher -> Boolean
-    
-    group :: Matcher -> String
+include "String"
 
 importJava "org.simantics.utils.ui.BundleUtils" where
     @JavaName "findFile"
@@ -141,7 +117,11 @@ loop4 testScan testList found = do
 importJava "java.lang.System" where
     @JavaName "getProperty"
     getSystemProperty :: String -> Maybe String
+    @JavaName setProperty
+    setSystemProperty :: String -> String -> <Proc> String
     
+    currentTimeMillis :: Long
+
 importJava "org.simantics.modeling.LifeCycleContext" where
     data LifeCycleContext
 
@@ -150,5 +130,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