X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fscl%2FSimantics%2FMisc.scl;h=e334852ab4dfdeb68241daf51273b977227e806c;hb=refs%2Fchanges%2F30%2F1630%2F3;hp=c00c564e839fb8d662134c0821e78baaa0f51689;hpb=51006ffec13cbf8e0d9c8b07212d69478e4bdd4e;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling/scl/Simantics/Misc.scl b/bundles/org.simantics.modeling/scl/Simantics/Misc.scl index c00c564e8..e334852ab 100644 --- a/bundles/org.simantics.modeling/scl/Simantics/Misc.scl +++ b/bundles/org.simantics.modeling/scl/Simantics/Misc.scl @@ -2,15 +2,6 @@ import "Simantics/Entity" hiding (nameOf) include "File" import "StandardLibrary" hiding (group) -/* -importJava "java.io.File" where - data File - - @JavaName "" - 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 -> 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,12 +117,19 @@ loop4 testScan testList found = do importJava "java.lang.System" where @JavaName "getProperty" getSystemProperty :: String -> Maybe String - + @JavaName setProperty + setSystemProperty :: String -> String -> String + importJava "org.simantics.modeling.LifeCycleContext" where data LifeCycleContext importJava "org.simantics.modeling.ModelingUtils" where trackDependencies :: () untrackDependencies :: () - + trackOntologicalRequirements :: () + untrackOntologicalRequirements :: () + +importJava "org.simantics.modeling.scl.SCLDependencyChangeListener" where + @JavaName "create" + createDependencyChangeListener :: ( Boolean) -> (MetadataI -> DependencyChanges -> ()) -> ChangeListener \ No newline at end of file